zeev Sun Jan 5 11:10:36 2003 EDT
Modified files:
/php4/sapi/cgi cgi_main.c
/php4/sapi/cli php_cli.c
Log:
Initialize lineno using the new infrastructure
Index: php4/sapi/cgi/cgi_main.c
diff -u php4/sapi/cgi/cgi_main.c:1.204 php4/sapi/cgi/cgi_main.c:1.205
--- php4/sapi/cgi/cgi_main.c:1.204 Tue Dec 31 10:59:05 2002
+++ php4/sapi/cgi/cgi_main.c Sun Jan 5 11:10:34 2003
@@ -1413,7 +1413,7 @@
while (c != 10 && c != 13) {
c = fgetc(file_handle.handle.fp); /*
skip to end of line */
}
- CG(zend_lineno) = -2;
+ CG(start_lineno) = 2;
} else {
rewind(file_handle.handle.fp);
}
Index: php4/sapi/cli/php_cli.c
diff -u php4/sapi/cli/php_cli.c:1.59 php4/sapi/cli/php_cli.c:1.60
--- php4/sapi/cli/php_cli.c:1.59 Tue Dec 31 10:59:06 2002
+++ php4/sapi/cli/php_cli.c Sun Jan 5 11:10:35 2003
@@ -695,7 +695,7 @@
while (c != 10 && c != 13) {
c = fgetc(file_handle.handle.fp); /*
skip to end of line */
}
- CG(zend_lineno) = -2;
+ CG(start_lineno) = 2;
} else {
rewind(file_handle.handle.fp);
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php