Re: Zend Engine question

From: Date: Thu, 30 Oct 2003 14:47:42 +0000
Subject: Re: Zend Engine question
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-5114@lists.php.net to get a copy of this message
Moriyoshi Koizumi wrote:
Nope, it was decided long ago that the bug won't be fixed in ZE1. AFAIC there's been no definite cure so far, but perhaps it can be fixed somehow though I didn't managed to conceive anything reasonable.
It seams that enabling this helps: #if 0 /* Will be fixed in ZE2, too dangerous to touch in the context of ZE1 */
                                                if (*retval_ptr_ptr == EG(uninitialized_zval_ptr) && PZVAL_IS_REF(*retval_ptr_ptr)) {
                                                        zend_error(E_ERROR, "Cannot modify a reference to NULL");
                                                }
#endif Do you know why it is dengerous? BC? This of course doesn't solve prolbem with assigning reference from return value of function which doesn't return reference, but it can be supported with additional opcode. How about it? Regards, Wojtek

« previous php.internals (#5114) next »