Re: com php-src: Fix bug #66015 by reverting "Removed operations on constant arrays.": Zend/tests/bug66015.phpt Zend/tests/errmsg_040.phpt
Zend/tests/ns_059.phpt Zend/zend.h Zend/zend_API.c Zend/zend_ast.c Zend/zend_ast.h Zend/zend_compile.c ...

From: Date: Sun, 13 Apr 2014 09:11:42 +0000
Subject: Re: com php-src: Fix bug #66015 by reverting "Removed operations on constant arrays.": Zend/tests/bug66015.phpt Zend/tests/errmsg_040.phpt
Zend/tests/ns_059.phpt Zend/zend.h Zend/zend_API.c Zend/zend_ast.c Zend/zend_ast.h Zend/zend_compile.c ...
References: 1 2 3 4 5 6  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-76821@lists.php.net to get a copy of this message
Am 13.4.2014 um 11:03 schrieb Stas Malyshev <smalyshev@sugarcrm.com>:
> Hi!
> 
>> Stas, did you get my previous change?
>> The reverted change was introduced in php 5.6, so I don't think we have
>> to mention anything in the UPGRADING.
>> Am I missing something?
> 
> Yes. After this patch, the behavior of 5.6 and previous versions is
> different. If you have this:
> 
> class Test
> {
>    const FIRST = 1;
>    public $array = array(
>        self::FIRST => 'first',
>        'second',
>        'third'
>    );
> }
> 
> Then in current 5.6, the array has 3 elements, with indexes 1, 2 and 3,
> while in 5.5 and before, the array has 2 elements with indexes 0 and 1.
> It is a significant behavior change which should be noted.
> 
> -- 
> Stanislav Malyshev, Software Architect
> SugarCRM: http://www.sugarcrm.com/
> (408)454-6900 ext. 227


The revert was PHP-5.6 only, but the bug fix is unrelated to the revert.
That revert just was technically necessary to fix that bug.
It's just a side effect of this.

I agree that it's worth some note; I'll add it in a few minutes.

Bob






Thread (9 messages)

« previous php.cvs (#76821) next »