4.0.6 apxs
warning = E_ALL;

<?
 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]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to