Re: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h zend_execute.c zend_execute.h zend_execute_API.c zend_language_parser.y
| From: | Zeev Suraski | Date: | Wed, 04 Feb 2004 18:44:55 +0000 |
| Subject: | Re: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h zend_execute.c zend_execute.h zend_execute_API.c zend_language_parser.y | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-7561@lists.php.net to get a copy of this message | ||
The snippet you sent works fine here (errors out with Fatal error: Class 'gdObject' not found in C:\Projects\php5\tests\testcase.php on line 2).
Judging by your trace, either it's a bigger piece of code that really throws an exception (in which case, please send me a reproducing test case), or you have throw-exceptions-on-errors or something like that, which may very well be broken.
Thanks!
Zeev
At 20:34 04/02/2004, John Coggeshall wrote:
Not quite... if it did, something else broke because now I get a Segfault: #0 0x403247cc in zend_throw_exception_internal (exception=0x0,tsrm_ls=0x81aa958) at /home/john/working/php-src/Zend/zend_execute_API.c:1205#1 0x403236e3 in zend_call_function (fci=0xbfffe9f0, fci_cache=0xbfffe9d0,tsrm_ls=0x80de480) at /home/john/working/php-src/Zend/zend_execute_API.c:789#2 0x4033912b in zend_call_method (object_pp=0xbfffea7c, obj_ce=0x80e201c,fn_proxy=0x0, function_name=0x4041d700 "__destruct",function_name_len=10,retval_ptr_ptr=0x0, param_count=135012600, arg1=0x0, arg2=0x0, tsrm_ls=0x80de480) at/home/john/working/php-src/Zend/zend_interfaces.c:79 #3 0x40339d88 in zend_objects_destroy_object (object=0x80eaba4,handle=135012600, tsrm_ls=0x80de480) at /home/john/working/php-src/Zend/zend_objects.c:71#4 0x4033bc81 in zend_objects_store_call_destructors (objects=0x80c23a8,tsrm_ls=0x80de480) at/home/john/working/php-src/Zend/zend_objects_API.c:54 #5 0x40322afb in shutdown_executor (tsrm_ls=0x80de480)at /home/john/working/php-src/Zend/zend_execute_API.c:211#6 0x4032beeb in zend_deactivate (tsrm_ls=0x80de480)at /home/john/working/php-src/Zend/zend.c:812#7 0x402f6ec8 in php_request_shutdown (dummy=0x0)at /home/john/working/php-src/main/main.c:1241#8 0x4035258a in apache_php_module_main (r=0x820bd8c, display_source_mode=0,tsrm_ls=0x80de480)On Wed, 2004-02-04 at 13:26, Zeev Suraski wrote: Fixed. Zeev At 20:02 04/02/2004, John Coggeshall wrote:I'm still getting that for an abstract class: Fatal error: Invalid binding type in /web/php5/sandbox/adv_gd/classes/gdFontObject.class.php on line 12http://phpOpenTracker.de/abstract class gdFontObject extends gdObject implementsgdFontInterface {/* Catch API differences for methods beyond the interface*/function __call($m, $a) { $classname = get_class($this); throw new Exception("Method $m is not implemented when usingFont Class $classname");return false; }}On Wed, 2004-02-04 at 12:14, Zeev Suraski wrote:Try now. Zeev At 18:55 04/02/2004, Sebastian Bergmann wrote:Zeev Suraski wrote:1 <?php 2 interface PHPUnit_Framework_Test {zeev Wed Feb 4 11:30:17 2004 EDTModified files:/ZendEngine2 zend_compile.c zend_compile.h zend_execute.c zend_execute.h zend_execute_API.c zend_language_parser.yLog: Reinstate early-binding for classes.3 public function countTestCases(); 4 public function run(PHPUnit_Framework_TestResult $result);5 } 6 ?> results inFatal error: Invalid binding type in E:\home\php\pear\PHPUnit\Framework\Test.php on line 5-- Sebastian Bergmann http://sebastian-bergmann.de/http://professionelle-softwareentwicklung-mit-php5.de/Das Buch zu PHP 5:-- -=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--- -=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.phpJohn Coggeshall http://www.coggeshall.org/ The PHP Developer's Handbook http://www.php-handbook.com/-=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=-John Coggeshall http://www.coggeshall.org/ The PHP Developer's Handbook http://www.php-handbook.com/-=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=-