Date: 10/26/99
- Next message: kk: "[PHPLIB-DEV] cvs commit"
- Previous message: carmelo: "[PHPLIB-DEV] cvs commit"
- Next in thread: kk: "[PHPLIB-DEV] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: kk
Date: Tue Oct 26 20:41:14 1999
Modified files:
php-lib/doc/sgml/documentation.sgml
php-lib/php/template.inc
Log message:
Debugging output is now harder to read, but more accurate.
Index: php-lib/doc/sgml/documentation.sgml
diff -u php-lib/doc/sgml/documentation.sgml:1.6 php-lib/doc/sgml/documentation.sgml:1.7
--- php-lib/doc/sgml/documentation.sgml:1.6 Sun Oct 24 15:29:34 1999
+++ php-lib/doc/sgml/documentation.sgml Tue Oct 26 20:40:43 1999
@@ -42,15 +42,15 @@
<!ENTITY f06ack SYSTEM "06-ack.sgml">
]>
-<!-- $Id: documentation.sgml,v 1.6 1999/10/24 13:29:34 kk Exp $ -->
+<!-- $Id: documentation.sgml,v 1.7 1999/10/26 18:40:43 kk Exp $ -->
<article>
-<title>PHP Base Library Documentation, Release phplib_7
+<title>PHP Base Library Documentation, Release phplib_7_2
<author>Boris Erdmann, be <email protected>,
Kristian Köhntopp, kk <email protected>
and Sascha Schumann, sascha <email protected>
-<date>$Id: documentation.sgml,v 1.6 1999/10/24 13:29:34 kk Exp $
+<date>$Id: documentation.sgml,v 1.7 1999/10/26 18:40:43 kk Exp $
<toc>
Index: php-lib/php/template.inc
diff -u php-lib/php/template.inc:1.6 php-lib/php/template.inc:1.7
--- php-lib/php/template.inc:1.6 Tue Oct 26 20:12:16 1999
+++ php-lib/php/template.inc Tue Oct 26 20:40:44 1999
@@ -5,7 +5,7 @@
* (C) Copyright 1999 NetUSE GmbH
* Kristian Koehntopp
*
- * $Id: template.inc,v 1.6 1999/10/26 18:12:16 kk Exp $
+ * $Id: template.inc,v 1.7 1999/10/26 18:40:44 kk Exp $
*
*/
@@ -126,14 +126,16 @@
function set_var($varname, $value = "") {
if (!is_array($varname)) {
if (!empty($varname))
- if ($this->debug & 1) print "scalar: set *$varname* to *$value*<br>\n";
+ if ($this->debug & 1)
+ printf("<b>set_var:</b> (with scalar) <b>%s</b> = *%s*<br>\n", $varname, htmlentities($value));
$this->varkeys[$varname] = "/".$this->varname($varname)."/";
$this->varvals[$varname] = $value;
} else {
reset($varname);
while(list($k, $v) = each($varname)) {
if (!empty($k))
- if ($this->debug & 1) print "array: set *$k* to *$v*<br>\n";
+ if ($this->debug & 1)
+ printf("<b>set_var:</b> (with array) <b>%s</b> = *%s*<br>\n", $k, htmlentities($v));
$this->varkeys[$k] = "/".$this->varname($k)."/";
$this->varvals[$k] = $v;
}
@@ -220,7 +222,7 @@
$this->implode_block($varname);
}
if ($this->debug & 2)
- printf ("scalar: get %s = *%s*<br>\n", $varname, $this->varvals[$varname]);
+ printf ("<b>get_var</b> (with scalar) <b>%s</b> = *%s*<br>\n", $varname, htmlentities($this->varvals[$varname]));
return $this->varvals[$varname];
} else {
@@ -237,7 +239,7 @@
$this->implode_block($v);
}
if ($this->debug & 2)
- printf ("array: get %s = *%s*<br>\n", $v, $this->varvals[$v]);
+ printf ("<b>get_var:</b> (with array) <b>%s</b> = *%s*<br>\n", $v, htmlentities($this->varvals[$v]));
$result[$v] = $this->varvals[$v];
}
@@ -337,7 +339,7 @@
}
if ($this->debug & 4)
- printf("loadfile: loaded $filename into $varname<br>\n");
+ printf("<b>loadfile:</b> loaded $filename into $varname<br>\n");
$this->set_var($varname, $str);
return true;
}
@@ -360,7 +362,7 @@
$str = preg_replace($reg, "{$alias}", $str);
if ($this->debug & 4)
- printf("implode_block: extract $varname from $parent, left $alias<br>\n");
+ printf("<b>implode_block:</b> extract <b>$varname</b> from <b>$parent</b>, leaving {$alias}<br>\n");
/* update variables */
$this->set_var($varname, $m[1][0]);
-
PHPLIB Developers Mailing List. Send messages to <phplib-dev <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-dev-request <email protected>> in
the body, not the subject, of your message.
- Next message: kk: "[PHPLIB-DEV] cvs commit"
- Previous message: carmelo: "[PHPLIB-DEV] cvs commit"
- Next in thread: kk: "[PHPLIB-DEV] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

