]> granicus.if.org Git - php/commitdiff
Do init CG(in_compilation) here until someone finds a better place
authorMarcus Boerger <helly@php.net>
Sat, 19 Apr 2003 13:54:01 +0000 (13:54 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 19 Apr 2003 13:54:01 +0000 (13:54 +0000)
sapi/cli/php_cli.c

index 2c2b786fbc3f99002217f8f53e50db6522734fe2..4f6cd97bbc4a301b9b2868693b795e8f25b8d350 100644 (file)
@@ -608,6 +608,7 @@ int main(int argc, char *argv[])
                /*zend_alter_ini_entry("<name>", len, "<value>", 1, PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE);*/
 
                zend_uv.html_errors = 0; /* tell the engine we're in non-html mode */
+               CG(in_compilation) = 0; /* not initialized but needed for several options */
 
                if (cli_sapi_module.php_ini_path_override && cli_sapi_module.php_ini_ignore) {
                        SG(headers_sent) = 1;