Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c /tests bug30332.phpt

From: Date: Fri, 29 Apr 2005 17:57:05 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c /tests bug30332.phpt
References: 1 2  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3628@lists.php.net to get a copy of this message
Hello Jani, reading all thoss E_STRICT on fixe, shouldn't we just change the default in run-tests.php? i think it is just never changed. marcus Friday, April 29, 2005, 10:15:12 AM, you wrote: > On Fri, 29 Apr 2005, Dmitry Stogov wrote: >> +--TEST-- >> +Bug #30332 (zend.ze1_compatibility_mode isnt fully compatable with array_push()) >> +--INI-- >> +zend.ze1_compatibility_mode=on >> +--FILE-- > Don't forget forcing E_STRICT on with error_reporting=4095 there.. > --Jani >> +<?php >> +class x { }; >> + >> +$first = new x; >> +$second = $first; >> +$container = array(); >> +array_push($container, $first); >> + >> +$first->first = " im in the first"; >> + >> +print_r($first); >> +print_r($second); >> +print_r($container); >> +?> >> +--EXPECTF-- >> +Strict Standards: Implicit cloning object of class 'x' because of >> 'zend.ze1_compatibility_mode' in %sbug30332.php on line 4 >> + >> +Strict Standards: Implicit cloning object of class 'x' because of >> 'zend.ze1_compatibility_mode' in %sbug30332.php on line 5 >> + >> +Strict Standards: Implicit cloning object of class 'x' because of >> 'zend.ze1_compatibility_mode' in %sbug30332.php on line 7 >> +x Object >> +( >> + [first] => im in the first >> +) >> +x Object >> +( >> +) >> +Array >> +( >> + [0] => x Object >> + ( >> + ) >> + >> +) >> >> > -- > Donate @ http://pecl.php.net/wishlist.php/sniper -- Best regards, Marcus mailto:mail@marcus-boerger.de

« previous php.zend-engine.cvs (#3628) next »