PHP 4.0 Bug #8415 Updated: - if - returns an error!

From: Date: Thu, 28 Dec 2000 11:14:42 +0000
Subject: PHP 4.0 Bug #8415 Updated: - if - returns an error!
Groups: php.dev 
Request: Send a blank email to php-dev+get-42374@lists.php.net to get a copy of this message
ID: 8415 Updated by: sniper Reported By: flow@flowsworld.com Old-Status: Open Status: Bogus Bug Type: *General Issues Assigned To: Comments: This is no bug. Use something like this instead: if(!isset($action) || $action == "") { And there is also empty(). (try looking for it in the manual) --Jani Previous Comments: --------------------------------------------------------------------------- [2000-12-25 08:18:37] flow@flowsworld.com hi! i'm not a user who is doing so much with php but is think i found a bug in the newest version. i can't belive that its really one but i can't find anywhere an answer! (sorry for my bad english! i come from austria :)) a normal if-condition like that: <script language="php"> if ($action=="") { </script> returns this error: Warning: Undefined variable: action in G:[...path...]index.php on line 42 i don't know if this is a bug or not - the QA has tested this version very hard so i can't belive it!!! in all the past php-versions it worked! - if its not a bug, i' sorry for teasing you! cu your flow nex --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8415

« previous php.dev (#42374) next »