|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-11-12 09:49 UTC] sean@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 07:00:01 2025 UTC |
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