[PHP-DEV] 4.0.1 break existing classes. From: Mike Waychison (mwaychison <email protected>)
Date: 06/29/00

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>