]> granicus.if.org Git - php/commitdiff
Initialize lineno using the new infrastructure
authorZeev Suraski <zeev@php.net>
Sun, 5 Jan 2003 16:10:35 +0000 (16:10 +0000)
committerZeev Suraski <zeev@php.net>
Sun, 5 Jan 2003 16:10:35 +0000 (16:10 +0000)
sapi/cgi/cgi_main.c
sapi/cli/php_cli.c

index c0e3256e30587928a0b9a3a6736ebe18d95d949d..c4b71f2c473cd9d55aa57acb041e0718ce9ac174 100644 (file)
@@ -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);
                        }
index 0ed1509596682d51539c55d7ba0763da4e55c87d..a98865f5311b4610fa2e3d6d03e24b95d258ca16 100644 (file)
@@ -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);
                        }