Re: [PHP4BETA] Testing ... PHP 4.0RC2 tarball

From: Date: Sat, 06 May 2000 13:41:06 +0000
Subject: Re: [PHP4BETA] Testing ... PHP 4.0RC2 tarball
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-14585@lists.php.net to get a copy of this message
> Why do you think it isn't correct? Shouldn't you initialize $obj before > accessing it anyway? No, I don't need to initialize $obj in PHP 4 Beta 3. > It probably should warn about using NULL as an > object, That is the point! In PHP 3 there will be a warning. We have got very big code segments (>40000 lines) which uses this Beta 3 feature (it is a feature not a bug :-) ). Without warnings it is very hard to debug such code and changing it to the > Beta 3 status. >but I'm almost sure it shouldn't be able to use NULL as a valid > object. Why not ? There is no reason for it! With the great PHP array behaviour it is the same: $myarray["test"]="something" works without initialization too. It would result in a bit more elegant and smaller PHP code. Nicolay

« previous php.version4 (#14585) next »