summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2003-01-05 16:10:35 +0000
committerZeev Suraski <zeev@php.net>2003-01-05 16:10:35 +0000
commit19d47d9f6ea981c4805572525544e77f0093e289 (patch)
treeaae3137f072f79206eaa5b49bdc9ebe56f75f888 /sapi
parentcf05f34c660526ea202c76e5f7563107d1a15266 (diff)
downloadphp-git-19d47d9f6ea981c4805572525544e77f0093e289.tar.gz
Initialize lineno using the new infrastructure
Diffstat (limited to 'sapi')
-rw-r--r--sapi/cgi/cgi_main.c2
-rw-r--r--sapi/cli/php_cli.c2
2 files changed, 2 insertions, 2 deletions
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);
}