Edit report at https://bugs.php.net/bug.php?id=54384&edit=1

 ID:                 54384
 Comment by:         maciej dot sz at gmail dot com
 Reported by:        lbarn...@php.net
 Summary:            Several SPL classes crash when parent constructor is
                     not called
 Status:             Closed
 Type:               Bug
 Package:            SPL related
 PHP Version:        trunk-SVN-2011-03-25 (SVN)
 Assigned To:        cataphract
 Block user comment: N
 Private report:     N

 New Comment:

This bug is still present in 5.4.0
Should I report this as separate bug?


Previous Comments:
------------------------------------------------------------------------
[2011-10-29 23:17:14] cataphr...@php.net

Automatic comment from SVN on behalf of cataphract
Revision: http://svn.php.net/viewvc/?view=revision&revision=318566
Log: - Reverted changes that required constructor overrides to invoke the parent
  constructor in several SPL classes and applied 5.3 fixes instead.
  Related bugs: #54384, #55175 and #55300

------------------------------------------------------------------------
[2011-04-04 04:51:15] cataphr...@php.net

Commited (different) fix in 5.3.

------------------------------------------------------------------------
[2011-04-04 04:50:30] cataphr...@php.net

Automatic comment from SVN on behalf of cataphract
Revision: http://svn.php.net/viewvc/?view=revision&revision=309929
Log: - Fixed bug #54384 (Dual iterators, GlobIterator, SplFileObject and
  SplTempFileObject crash when user-space classes don't call the paren
  constructor).

------------------------------------------------------------------------
[2011-03-28 00:44:36] cataphr...@php.net

Automatic comment from SVN on behalf of cataphract
Revision: http://svn.php.net/viewvc/?view=revision&revision=309751
Log: - Improved upon r309729.
- Extented strategy to remaining the classes on spl_directory.c, even those 
that don't crash.
- UPGRADING.
- Better bug54384.phpt, with all the classes covered.

------------------------------------------------------------------------
[2011-03-27 06:21:09] cataphr...@php.net

Automatic comment from SVN on behalf of cataphract
Revision: http://svn.php.net/viewvc/?view=revision&revision=309729
Log: - 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).

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=54384


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=54384&edit=1

Reply via email to