Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.1.7

Bug #17382 Empty action causes undefined function
Submitted: 2010-05-08 02:52 UTC
From: thue Assigned: jespino
Status: Closed Package: PHP_ParserGenerator (version 0.1.6)
PHP Version: 5.2.4 OS: Ubuntu 8.04
Roadmaps: (Not assigned)    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 38 - 3 = ?

 
 [2010-05-08 02:52 UTC] thue (Thue Kristensen)
Description: ------------ if you have an empty statement such as a::= b. {} Then the parser will try to call a non-existent function. Test script: --------------- %name TEST_ %token_prefix TEST_ %declare_class {class test} %include { $a = new test(); $a->lala(); } %include_class { public function lala() { $this->doParse(0, 0); } } start ::= . {} Expected result: ---------------- works Actual result: -------------- Fatal error: Call to undefined method test::yy_r0() in test.php on line 748

Comments

 [2010-08-04 01:48 UTC] jespino (Jesús Espino)
 [2010-08-04 01:50 UTC] jespino (Jesús Espino)
The patch added is for add space between { and } when it apear as {} That fix the bug
 [2010-08-08 20:54 UTC] jespino (Jesús Espino)
-Status: Open +Status: Closed -Assigned To: +Assigned To: jespino
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. Applied the patch https://pear.php.net/bugs/bug.php? id=17382&edit=12&patch=patch&revision=1280872099