|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-06-24 10:10 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 15:00:01 2025 UTC |
Description: ------------ When you try to compare an empty string with any number who begins with 09 or 08 (booth includes) it returns true. I have it tested on Windows and Linux and it happends (I'm Sorry for my English, it's very bad,I hope you to understand me) Mart?n Gonz?lez Reproduce code: --------------- $string = false; if ($string == 09) { echo "Match<br>\n"; } if ($string == 08) { echo "Match<br>\n"; } if ($string == 09547856) { echo "Match<br>\n"; } if ($string == 08625131) { echo "Match<br>\n"; } /* It will return: Match Match Match Match */ Expected result: ---------------- Nothing Actual result: -------------- Match Match Match Match