ZE2 and Exceptions - One for Zeev/Andi

From: Date: Tue, 11 Jun 2002 11:55:13 +0000
Subject: ZE2 and Exceptions - One for Zeev/Andi
Groups: php.dev 
Request: Send a blank email to php-dev+get-85134@lists.php.net to get a copy of this message
ive been looking over the ZE2 alpha release code for clues on porting my OO extension over to the new engine, but a few things are not clicking yet.... how do i raise an exception from C. last time i asked, Andi said that it would be sufficient to do a EG(exception) = error_object_i_created; but looking through zend_execute.c there seems to be no explicit check for (NULL != EG(exception)) in the main interpreter loop one other (unrelated) thing : there seems to be an overlap between members of the zend_object_handlers struct and the zend_class_entry stuct (function pointers for property access and method calls). is the current state transitional (i.e. should all code going forward use only the zend_object_handlers way ?) then again i guess thats what macros and such are for.... l0t3k

« previous php.dev (#85134) next »