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:03:25 +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  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-76820@lists.php.net to get a copy of this message
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


Thread (9 messages)

« previous php.cvs (#76820) next »