Re: ZE2 and Exceptions - One for Zeev/Andi

From: Date: Tue, 11 Jun 2002 16:07:55 +0000
Subject: Re: ZE2 and Exceptions - One for Zeev/Andi
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-85140@lists.php.net to get a copy of this message
At 07:55 AM 6/11/2002 -0400, l0t3k wrote:
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
line 2175
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....
Use zend_object_handlers. Andi

« previous php.dev (#85140) next »