]> granicus.if.org Git - php/commitdiff
Make zend return a proper exit error code when it encounters a parse error.
authorIlia Alshanetsky <iliaa@php.net>
Sun, 15 Sep 2002 23:34:03 +0000 (23:34 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 15 Sep 2002 23:34:03 +0000 (23:34 +0000)
Zend/zend.c

index 09cf2294da53054db4a28125ce0f670f5042c267..e420d1a7dfb22ea44f7e3d13f53f8a72d3be17de 100644 (file)
@@ -781,6 +781,7 @@ ZEND_API void zend_error(int type, const char *format, ...)
        va_end(args);
 
        if (type==E_PARSE) {
+               EG(exit_status) = 255;
                zend_init_compiler_data_structures(TSRMLS_C);
        }
 }