|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-09-13 16:57 UTC] eriksson@php.net
[2000-09-13 17:00 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 07:00:01 2025 UTC |
if i have define("_DEFINED_CONSTANT", 0) function xyz ($committype = _DEFINED_CONSTANT) { if ($committype = _DEFINED_CONSTANT) { ...do stuff... } } then the if statement fails to recognise that when a 0 = 0, the statement should be true, instead it returns zero, which is rather anoying... Its a pretty obvious problem - you can try it yourself just put $pug = 0 if ($pug = 0) { echo "foo"; } an it won't recognise it... (it crashes if you ask it for 'if (0 = 0) {...}' for some reason - perhaps another bug? IcK