FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=17382&edit=1

ID: 17382
Updated by: jespinog@gmail.com
Reported By: thuejk at gmail dot com
Summary: Empty action causes undefined function
Status: Open
Type: Bug
Package: PHP_ParserGenerator
Operating System: Ubuntu 8.04
Package Version: 0.1.6
PHP Version: 5.2.4
Roadmap Versions:
New Comment:

The patch added is for add space between { and } when it apear as {}

That fix the bug


Previous Comments:
------------------------------------------------------------------------

[2010-08-03 21:48:19] jespino

Added #patch bug:17382;patch:patch;revision:1280872099;.

------------------------------------------------------------------------

[2010-05-07 22:52:48] thue

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

------------------------------------------------------------------------

Search Discussions

  • Jespinog at Aug 8, 2010 at 4:54 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=17382&edit=1

    ID: 17382
    Updated by: jespinog@gmail.com
    Reported By: thuejk at gmail dot com
    Summary: Empty action causes undefined function
    -Status: Open
    +Status: Closed
    Type: Bug
    Package: PHP_ParserGenerator
    Operating System: Ubuntu 8.04
    Package Version: 0.1.6
    PHP Version: 5.2.4
    -Assigned To:
    +Assigned To: jespino
    Roadmap Versions:
    New Comment:

    -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


    Previous Comments:
    ------------------------------------------------------------------------

    [2010-08-03 21:50:12] jespino

    The patch added is for add space between { and } when it apear as {}

    That fix the bug

    ------------------------------------------------------------------------

    [2010-08-03 21:48:19] jespino

    Added #patch bug:17382;patch:patch;revision:1280872099;.

    ------------------------------------------------------------------------

    [2010-05-07 22:52:48] thue

    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

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedAug 3, '10 at 9:50p
activeAug 8, '10 at 4:54p
posts2
users1
websitepear.php.net

1 user in discussion

Jespinog: 2 posts

People

Translate

site design / logo © 2022 Grokbase