Bug #55300 [Com]: \DirectoryIterator, parent::__construct() and \LogicException

From: Date: Mon, 29 Aug 2011 08:04:54 +0000
Subject: Bug #55300 [Com]: \DirectoryIterator, parent::__construct() and \LogicException
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-163016@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55300&edit=1

 ID:                 55300
 Comment by:         good821 at 126 dot com
 Reported by:        frederic dot hardy at mageekbox dot net
 Summary:            \DirectoryIterator, parent::__construct() and
                     \LogicException
 Status:             Assigned
 Type:               Bug
 Package:            SPL related
 Operating System:   Linux
 PHP Version:        5.4.0alpha2
 Assigned To:        cataphract
 Block user comment: N
 Private report:     N

 New Comment:

http://www.officialoaklandraiders.com/darrius-heywardbey-jersey-c-11_21.html	Darrius
Heyward-Bey Jersey
http://www.officialoaklandraiders.com/fred-biletnikoff-jersey-c-11_39.html	Fred
Biletnikoff Throwback Jersey
http://www.officialoaklandraiders.com/george-blanda-jersey-c-11_35.html	George
Blanda Throwback Jersey


Previous Comments:
------------------------------------------------------------------------
[2011-08-29 08:03:12] good821 at 126 dot com

http://www.officialoaklandraiders.com/bo-jackson-jersey-c-11_22.html	Bo
Jackson Throwback Jersey
http://www.officialoaklandraiders.com/darren-mcfadden-jersey-c-11_15.html	Darren
McFadden Jersey

------------------------------------------------------------------------
[2011-08-29 08:02:18] good821 at 126 dot com

http://www.officialoaklandraiders.com/	Oakland
Raiders Jerseys
http://www.officialoaklandraiders.com/art-shell-jersey-c-11_19.html	Art
Shell Throwback Jersey

------------------------------------------------------------------------
[2011-08-09 08:52:19] cataphract@php.net

I wouldn't consider these duplicates. #55175 is an actual problem, this is simply an intended
BC break that turned out to have a larger impact than I expected. I'll take care of both not
after the beginning of next week.

------------------------------------------------------------------------
[2011-08-09 08:46:37] seld@php.net

Actually according to my test case in https://bugs.php.net/bug.php?id=55175 - it's
even happening if you don't redefine the constructor at all. It prevents extending the class
altogether, which makes no sense to me.

------------------------------------------------------------------------
[2011-08-09 08:44:46] seld@php.net

The main issue is not that it's a BC break I'd say, it's that apparently adding the
call to parent::__construct does not fix the issue, the exception is always thrown if you try to
have your own constructor in the extending class.

BTW: This is a duplicate of https://bugs.php.net/bug.php?id=55175 IMO.

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


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=55300


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


Thread (16 messages)

« previous php.bugs (#163016) next »