Re: PHP Bug 48215

From: Date: Thu, 18 Jun 2009 13:39:37 +0000
Subject: Re: PHP Bug 48215
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-44351@lists.php.net to get a copy of this message
The patch looks fine to me. Ilia Alshanetsky On 17-Jun-09, at 11:43 AM, Scott MacVicar wrote:
Hey, Bug 48215 was a BC break from the previous 5.2 behaviour, it stemmed from a change for bug #39127. class a { function a($arg='') { echo $arg; } } class b extends a {} $b = new b; $b->b('foo'); $b->__construct('foo'); This prints out an error in 5.3 which is fine, the unexpected change was that if a __construct() method was actually defined as well as a method that matched the class name it would alias the parent method to the constructor. The test is attached in the patch. Just sending off to internals first since we're so late in the RC stage. Scott <bug48215.patch.txt> --PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.internals (#44351) next »