|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[1999-09-22 12:47 UTC] pmarquis at iname dot com
I'd like to reopen bug report 2088 (I didn't know of a better way than doing this), since the semantics are changing between PHP 3.0 and PHP 4.0. Is the string '0' non-zero? I personally think so, as it's not a number. I know of at least one application (phpMyAdmin) which breaks because of this inconsistency. If you're going to change the semantics of empty, I think it would be a good idea to at least document it. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 10 11:00:01 2026 UTC |
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.