On Thu, 26 Feb 2004, Marcus Boerger wrote: > well for normal methods we must do that. The derived class must support the > same signature that the base class supports. In you example that would only > work if the derived method would have a default parameter for the additional > parameter: > > <?php > class Foo { > function connect($server) { > } > } > > class Bar extends Foo { > function connect($server, $port = NULL) { > } > } > ?>
When was this change made? I have a CVS check out from yesterday and this is not enforced. This will breaks lots of PHP 4 code. -adam -- [EMAIL PROTECTED] author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php