colder                                   Fri, 09 Jul 2010 13:07:12 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=301126

Log:
bailout on error

Changed paths:
    U   php/php-src/branches/LEMON/Zend/zend_language_parser.y

Modified: php/php-src/branches/LEMON/Zend/zend_language_parser.y
===================================================================
--- php/php-src/branches/LEMON/Zend/zend_language_parser.y      2010-07-09 
12:30:15 UTC (rev 301125)
+++ php/php-src/branches/LEMON/Zend/zend_language_parser.y      2010-07-09 
13:07:12 UTC (rev 301126)
@@ -31,11 +31,12 @@
 //%name lemon_

 %syntax_error {
-       zend_error(E_PARSE, "syntax error, unexpected '%.*s'", 
LANG_SCNG(yy_leng), LANG_SCNG(yy_text));
+    zend_error(E_PARSE, "syntax error, unexpected '%.*s'", LANG_SCNG(yy_leng), 
LANG_SCNG(yy_text));
+    zend_bailout();
 }

 %stack_overflow {
-     fprintf(stderr,"Woops, parser stack overflow\n");
+    fprintf(stderr,"Woops, parser stack overflow\n");
 }

 %stack_size 500

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to