Update of /cvsroot/phpvortex/phpvortex
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4391
Modified Files:
debug.php
Log Message:
Fixed a bug and improved a bit the debug functions
Index: debug.php
===================================================================
RCS file: /cvsroot/phpvortex/phpvortex/debug.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** debug.php 28 Sep 2004 18:43:24 -0000 1.2
--- debug.php 30 Sep 2004 19:27:47 -0000 1.3
***************
*** 28,34 ****
if (!is_null($var)) {
if (is_array($var)) {
! print_a($var);
} else {
! print_a(array(gettype($var) => $var));
}
}
--- 28,34 ----
if (!is_null($var)) {
if (is_array($var)) {
! print_a($var, 0, TRUE);
} else {
! print_a(array(gettype($var) => $var), 0, TRUE);
}
}
***************
*** 44,47 ****
--- 44,48 ----
function dv($lvl, $msg, $var = NULL) // Only output if $debug >= $lvl
{
+ global $debug;
if ($debug >= $lvl) {
d($msg, $var);
|