ID: 12554 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type: Feature/Change Request Operating System: linux PHP Version: 4.0.6 New Comment:
This bug has already been fixed in the latest released version of PHP, which you can download at http://www.php.net/downloads.php Previous Comments: ------------------------------------------------------------------------ [2001-08-03 14:48:36] [EMAIL PROTECTED] Ignore my comments, I misread it. Sorry ------------------------------------------------------------------------ [2001-08-03 14:46:26] [EMAIL PROTECTED] error_reporting has been set to E_ALL in your config. Set to E_ALL & ~E_NOTICE to prevent this warning, but the point is that $search has no value in your script! Always var_dump your variables to see what they are first. Not a bug -> bogus ------------------------------------------------------------------------ [2001-08-03 11:42:34] [EMAIL PROTECTED] reclassified (This is not a "bug") ------------------------------------------------------------------------ [2001-08-03 10:15:28] [EMAIL PROTECTED] <? switch($search) { case 'date': echo 'date'; break; case 'people': echo 'people'; break; case 'keyword': echo 'keyword'; break; default: echo 'default'; break; } ?> Warning: Undefined variable: search in /home/httpd/vhosts/mediawaveonline/test2.php on line 4 Warning: Undefined variable: search in /home/httpd/vhosts/mediawaveonline/test2.php on line 7 Warning: Undefined variable: search in /home/httpd/vhosts/mediawaveonline/test2.php on line 10 if you ask me, I should get a warning on line 2 where the switch is, not on 4, 7, 10 where the case statements are. php 4.0.5 cgi does not do this. Chris Lee [EMAIL PROTECTED] ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=12554&edit=1