[Typo3-dev] PHP5

Martin T. Kutschker Martin.T.Kutschker at blackbox.net
Wed Apr 21 15:04:49 CEST 2004


Kasper Skårhøj wrote:
> Can it work if we define out own "is_array()" function?
> 
> function is_array($var)	{
> 	return isset($var) && is_array($var);
> }
> 
> I never tried this but could it work?

Without acutally trying, but would not the argument be evaluated at 
passing? So isset() wouldn't make much sense.

The same would be true for passing as ref, but without the penalty of 
copying the array.

About how many places in Typo3 are we talking? Do we really need a 
workaround or is it sufficient to rewrite a few lines in the current code?

Masi





More information about the TYPO3-dev mailing list