PHP 4.0 Bug #3462 Updated: foreach behavior on a non-array

From: Date: Mon, 31 Jul 2000 20:41:22 +0000
Subject: PHP 4.0 Bug #3462 Updated: foreach behavior on a non-array
Groups: php.dev 
Request: Send a blank email to php-dev+get-27117@lists.php.net to get a copy of this message
ID: 3462 Updated by: waldschrott Reported By: leon@leonatkinson.com Status: Analyzed Bug Type: Feature/Change Request Assigned To: Comments: Why don´t you let your cache function return an empty array? I think you should take care about passing foreach() the right types... Anyway PHPs handling of conversion unfortunately differs a lot from function to function and statement to statement. Thus I really don´t know what to do with this one I´ll mark it analyzed. Full Bug description available at: http://bugs.php.net/?id=3462

« previous php.dev (#27117) next »