php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13111 compare two string via ==
Submitted: 2001-09-03 12:20 UTC Modified: 2001-09-03 12:36 UTC
From: olivier dot sow at alias dot fr Assigned:
Status: Closed Package: Strings related
PHP Version: 4.0.5 OS: WINDOWS 2000 SERVER
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
17 - 9 = ?
Subscribe to this entry?

 
 [2001-09-03 12:20 UTC] olivier dot sow at alias dot fr
<?
if( '00d000000000000' == '00e000000000000' ) {
	echo "For Mr PhP '00d000000000000' == '00e000000000000' :)<BR>";
}
?>

try this script ! You will see the problem :)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-03 12:36 UTC] hholzgra@php.net
try using the === operator to avoid type conversion
and you will see the solution
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 18:02:40 2024 UTC