Re: #31098 [Csd]: isset false positive

From: Date: Wed, 12 Jan 2005 20:05:25 +0000
Subject: Re: #31098 [Csd]: isset false positive
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-14368@lists.php.net to get a copy of this message
Hi Dmitry, On 2005/01/12, at 18:28, dmitry@php.net wrote:
patch for HEAD is incorrect. You must not edit zend_vm_execute.h directly. You must edit zend_vm_def.h and then generate zend_vm_execute.h with zend_vm_gen.php. See README.ZEND_VM for more details.
Excuse me for my ignorance & thank you for the fix.
Also isset($str['str']) returned true, that is wrong from my point of view.
I don't quite agree with you. Indeed it's semantically wrong, yet I think we leave it to behave as in ZE1, in terms of backwards compatibility.
I modified the patch to return false and notification in zend_fetch_dimension_address(). Although I had the same idea to warn incorrect usage of
dimension operators, I didn't for the same reason as above. Regards, Moriyoshi

« previous php.internals (#14368) next »