]> granicus.if.org Git - php/commit
- Fixed bug #54384: Several SPL classes crash when parent constructor is
authorGustavo André dos Santos Lopes <cataphract@php.net>
Sun, 27 Mar 2011 04:21:06 +0000 (04:21 +0000)
committerGustavo André dos Santos Lopes <cataphract@php.net>
Sun, 27 Mar 2011 04:21:06 +0000 (04:21 +0000)
commitc2fe893985f619fdb4f8d17c16405e8ce7926db5
tree4101c77fce358b27a85f569b8255301c8e142489
parent3acdca47030e6dc973cffc0063d45e1bef354a3e
- Fixed bug #54384: Several SPL classes crash when parent constructor is
  not called.
#Merge to 5.3 pending (slight BC break on AppendIterator, as it's no
#longer possible to defer the call to the parent constructor until
#after the constructor is performed).
#Bugs fixed in an atypical way for SPL. The parent constructor call
#check is performed at construction time by using a wrapper constructor
#instead of a check on the beginning of each instance method.
#Perhaps this should be uniformized in trunk; this method was mainly
#applied only to the ones crashing, except a few iterators (at least
#AppendIterator and RecursiveIteratorIterator).
ext/spl/php_spl.c
ext/spl/php_spl.h
ext/spl/spl_directory.c
ext/spl/spl_iterators.c
ext/spl/tests/bug41828.phpt
ext/spl/tests/bug54281.phpt
ext/spl/tests/bug54384.phpt [new file with mode: 0644]
ext/spl/tests/iterator_031.phpt