ID: 28998 Updated by: [EMAIL PROTECTED] Reported By: zpiranha at piranhaweb dot xgt dot us -Status: Open +Status: Closed Bug Type: Arrays related Operating System: Redhat 7.3 PHP Version: 4.3.7 New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2004-07-03 02:44:48] zpiranha at piranhaweb dot xgt dot us Description: ------------ When using PHP 4.3.7, foreach() will produce error messages when glob() returns false. However, it will still function. The error message is very unsightly. Download the script in question from http://piranhaweb.xgt.us/dl/zChat_1.4.zip Note: The script works perfectly fine in previous versions of PHP. Reproduce code: --------------- http://www.familytables.net/chat Expected result: ---------------- In the right-hand frame, where the error is mostly occuring, you will see (assuming nobody is in the chat room): x Active Users INVALID ARGUMENT FOR FOREACH() ERROR name (y) name (y) ... Actual result: -------------- 1 Active Users Error: Invalid argument supplied for foreach() in online.php ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28998&edit=1