cvs: php4 /sapi/cgi cgi_main.c /sapi/cli php_cli.c
| From: | Zeev Suraski | Date: | Sun, 05 Jan 2003 16:10:36 +0000 |
| Subject: | cvs: php4 /sapi/cgi cgi_main.c /sapi/cli php_cli.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-17642@lists.php.net to get a copy of this message | ||
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);
}