From: Zeev Suraski Date: Sun, 5 Jan 2003 16:10:35 +0000 (+0000) Subject: Initialize lineno using the new infrastructure X-Git-Tag: PHP_5_0_dev_before_13561_fix~452 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=19d47d9f6ea981c4805572525544e77f0093e289;p=php Initialize lineno using the new infrastructure --- diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index c0e3256e30..c4b71f2c47 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -1413,7 +1413,7 @@ consult the installation file that came with this distribution, or visit \n\ 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); } diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 0ed1509596..a98865f531 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -695,7 +695,7 @@ int main(int argc, char *argv[]) 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); }