Re: PHP 4.0 Bug #2356 Updated: empty() does not work (see 2088)
| From: | Andrei Zmievski | Date: | Mon, 15 Nov 1999 14:17:10 +0000 |
| Subject: | Re: PHP 4.0 Bug #2356 Updated: empty() does not work (see 2088) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-12566@lists.php.net to get a copy of this message | ||
On Sun, 14 Nov 1999, Bug Database wrote:
> ID: 2356
> Updated by: joey
> Reported By: pmarquis@iname.com
> Status: Open
> Bug Type: Misbehaving function
> Assigned To:
> Comments:
>
> I am betting that this is bcz of the dynamnic tying.
> Either way, marking it as "Misbehaving Function"
>
> Note that:
> <?
>
> $name=0;
> echo empty($name);
> ?>
>
> prints 1 under php3 && 4.
Check the documentation again. empty() will return 1 if the argument is
"" or 0.
-Andrei
Any sufficiently advanced bug is
indistinguishable from a feature.
-- Rich Kulawiec