Re: PHP5 bloats the code

From: Date: Sat, 24 Apr 2004 18:22:23 +0000
Subject: Re: PHP5 bloats the code
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-184533@lists.php.net to get a copy of this message
Mark Charette wrote:
From: Marek Kilimajer [mailto:kilimajer@webglobe.sk]
Well, what I always know about my variables is if they are arrays or scalar ;) And I don't consider warning to be much nicer then error
Hmmm ... my current methods and functions in PHP 4.x oftentimes adapt to the type passed to them since PHP doesn't have method signatures, meaning I _don't_ know a priori what will be passed to them. Currently type checking is mandatory if you want to avail yourself of a single method name. Mark C.
So you have to check the type of the passed variable anyway, even in php4. You won't be affected by the new behavior in php5.

« previous php.general (#184533) next »