|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55421 0=="%"
Submitted: 2011-08-14 22:12 UTC Modified: 2011-08-14 22:29 UTC
From: php at jasonborro dot com Assigned:
Status: Not a bug Package: Variables related
PHP Version: 5.3.6 OS: Windows 7
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: php at jasonborro dot com
New email:
PHP Version: OS:


 [2011-08-14 22:12 UTC] php at jasonborro dot com
Seriously, try it.

Test script:
if (0=="%") echo "FAIL!";

Expected result:
no FAIL!

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-08-14 22:29 UTC]
-Status: Open +Status: Bogus
 [2011-08-14 22:29 UTC]
This is the expected and documented behaviour. To compare the string to an integer as in the test script, the string is translated to integer [1] as described in "String conversion to numbers" [2]. 

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 01:01:32 2024 UTC