Date: 06/29/00
- Next message: Zeev Suraski: "Re: [PHP-DEV] Problem with CGI on Windows in 4.0.1!"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #5228 Updated: missing reg file"
- Next in thread: Stanislav Malyshev: "Re: [PHP-DEV] 4.0.1 break existing classes."
- Reply: Stanislav Malyshev: "Re: [PHP-DEV] 4.0.1 break existing classes."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
It seems that the new release breaks existing classes.
in 4.0.0:
class MyClass {
function MyClass( $bleh ) {
//nothing here...
}
}
$MyObject = new MyClass();
would work even without the argument supplied. I believe that it used
to initialize $bleh to a blank (my understanding). Whether or not this
is a 'bug', it should be clarified that optional arguments MUST
explicitly be declared as such.
-- /usr/bin/whatis rtfm > /dev/null-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Zeev Suraski: "Re: [PHP-DEV] Problem with CGI on Windows in 4.0.1!"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #5228 Updated: missing reg file"
- Next in thread: Stanislav Malyshev: "Re: [PHP-DEV] 4.0.1 break existing classes."
- Reply: Stanislav Malyshev: "Re: [PHP-DEV] 4.0.1 break existing classes."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

