Re: cvs: php-src(PHP_5_2) / NEWS /ext/spl spl_array.c /ext/spl/tests array_026.phpt
| From: | Etienne Kneuss | Date: | Sun, 05 Oct 2008 17:31:48 +0000 |
| Subject: | Re: cvs: php-src(PHP_5_2) / NEWS /ext/spl spl_array.c /ext/spl/tests array_026.phpt | ||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-53374@lists.php.net to get a copy of this message | ||
Hello,
On Sun, Oct 5, 2008 at 7:21 PM, Gregory Beaver <greg@chiaraquartet.net> wrote:
> Etienne Kneuss wrote:
>
>>
>> http://cvs.php.net/viewvc.cgi/php-src/ext/spl/tests/array_026.phpt?view=markup&rev=1.1
>> Index: php-src/ext/spl/tests/array_026.phpt
>> +++ php-src/ext/spl/tests/array_026.phpt
>> --TEST--
>> SPL: ArrayObject indirect offsetGet overwriting EG(uninitialized_zvar_ptr)
>> --FILE--
>> <?php
>> $test = new ArrayObject();
>> $test['d1']['d2'] = 'hello';
>> $test['d1']['d3'] = 'world';
>> var_dump($test, $test3['mmmmm']);
>> ?>
>> --EXPECTF--
>> Notice: Undefined variable: test3 in %s%earray_026.php on line 5
>> object(ArrayObject)#%d (1) {
>> [u"storage":u"ArrayObject":private]=>
>> array(1) {
>> [u"d1"]=>
>> array(2) {
>> [u"d2"]=>
>> unicode(5) "hello"
>> [u"d3"]=>
>> unicode(5) "world"
>> }
>> }
>> }
>> NULL
>>
>>
>
> I'm pretty sure this test was not actually run on php 5.2 - see the
> [u"d3"] for instance :). May want to fix it up. Great work though,
> this was a good catch by Rasmus and fix by you.
Strange stuff, this is not the test that I commited. The mail is
wrong, here is the correct file:
http://cvs.php.net/viewvc.cgi/php-src/ext/spl/tests/array_026.phpt?revision=1.1.4.2&view=markup&pathrev=PHP_5_2
Regards
>
> Thanks,
> Greg
>
>
--
Etienne Kneuss
http://www.colder.ch
Men never do evil so completely and cheerfully as
when they do it from a religious conviction.
-- Pascal