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

Bug #8593 if no statename "const 1=1" inserted
Submitted: 2006-08-30 20:09 UTC
From: cellog Assigned: cellog
Status: Closed Package: PHP_LexerGenerator (version 0.2.1)
PHP Version: Irrelevant OS: n/a
Roadmaps: (Not assigned)    
Subscription  


 [2006-08-30 20:09 UTC] cellog (Greg Beaver)
Description: ------------ if a lexer has no %statename processing instruction, the output const 1 = 1; is inserted, which is invalid. A simple fix is to change if ($statename) to if (is_string($statename)) in the generation of the lexer code.

Comments

 [2006-08-30 20:10 UTC] cellog (Greg Beaver)
This bug has been fixed in CVS. 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.