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
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php