Re: empty("0")
| From: | Yasuo Ohgaki | Date: | Tue, 30 Oct 2001 22:59:42 +0000 |
| Subject: | Re: empty("0") | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-69360@lists.php.net to get a copy of this message | ||
Sterling Hughes wrote:
I don't know if this has been discussed yet, but while we're getting all
crazy with breaking compat in 4.1 and/or 5.0, why not go ahead and
finally fix empty("0") to return false, like it really should (a
string with 0 in it, is *not* imho an empty string).
$_POST/$_GET/$_COOKIE data has string type by default. It should return false for empty("0"), I suppose...
--
Yasuo Ohagaki