php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57319 parsekit_compile_* fails when extending internal classes
Submitted: 2006-10-23 15:00 UTC Modified: 2008-11-12 09:49 UTC
From: rckenned at yahoo-inc dot com Assigned:
Status: Not a bug Package: parsekit (PECL)
PHP Version: 5.1.4 OS: FreeBSD 4
Private report: No CVE-ID: None
View Add Comment Developer Edit
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:
12 + 4 = ?
Subscribe to this entry?

 
 [2006-10-23 15:00 UTC] rckenned at yahoo-inc dot com
Description:
------------
parsekit is failing to compile a file where I extend an internal class (extending Exception, I believe).

Fatal error: parsekit_compile_string(): Unable to remove pollution from function table: Found ZEND_INTERNAL_FUNCTION where ZEND_USER_FUNCTION was expected. in /home/rckenned/devel/yahoo/f11/rocket/php/yahoo_ws_container/tools/verify_files.php on line 20

Reproduce code:
---------------
Create a file named test_file.php:

<?php

class FooException extends Exception {
    function foof() {
        print("foof");
    }
}

?>

Create a separate file named test_parsekit.php:

<?php

parsekit_compile_file("test_file.php");

?>

Expected result:
----------------
Expected it to succeed.

Actual result:
--------------
Fatal error: parsekit_compile_file(): Unable to remove pollution from function table: Found ZEND_INTERNAL_FUNCTION where ZEND_USER_FUNCTION was expected. in /home/rckenned/devel/yahoo/f11/rocket/php/yahoo_ws_container/test_parsekit.php on line 3

Call Stack:
    0.0005   1. {main}() /home/rckenned/devel/yahoo/f11/rocket/php/yahoo_ws_container/test_parsekit.php:0
    0.0006   2. parsekit_compile_file() /home/rckenned/devel/yahoo/f11/rocket/php/yahoo_ws_container/test_parsekit.php:3

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-12 09:49 UTC] sean@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PECL.

This works properly for me on 5.2.6 + parsekit-HEAD.

Please reopen if this persists for you.

S
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 04:01:27 2024 UTC