PHP 4.0 Bug #8489 Updated: Function empty() does not work

From: Date: Mon, 08 Jan 2001 18:52:53 +0000
Subject: PHP 4.0 Bug #8489 Updated: Function empty() does not work
Groups: php.dev 
Request: Send a blank email to php-dev+get-43427@lists.php.net to get a copy of this message
ID: 8489 Updated by: stas Reported By: wangbo999@hotmail.com Old-Status: Open Status: Feedback Bug Type: *Function Specific Assigned To: Comments: What is your register_globals setting? if you insert var_dump($demo1) before if, what it prints? Previous Comments: --------------------------------------------------------------------------- [2000-12-30 00:29:06] wangbo999@hotmail.com a Form is as follow: <form method="POST" action="accept_form.php"> <input name="demo1" type="text" value=""> <input type="submit" name="submit" value="go"> </form> In the server, accept_form.php is as follow: .... <script language="PHP"> if(empty($demo1) { echo "demo1 is empty"; } </script> .... Although I entered something is "demo1", empty() always returns true, and isset() works properly. what is the problem? thank you. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8489

« previous php.dev (#43427) next »