[PHP-DEV] Bug #10508 Updated: Wrong result when comparing two specific strings via "==".

2001-04-26 Thread hholzgra

ID: 10508
Updated by: hholzgra
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: Scripting Engine problem
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

use === to compare strings without auto-conversion

Previous Comments:
---

[2001-04-26 05:49:31] [EMAIL PROTECTED]
this (mis- but shh, don't tell anyone :)feature has already caused much confusion. the 
reason: "d0" is automagically converted to 0, just like the other string.

you're welcome.

---

[2001-04-26 05:41:21] [EMAIL PROTECTED]
Hi!

This seems to be a bug:



This will produce the output "Why?" on my system ... but: why?
"00" isn't equal "D0"!?

If I'm wrong, please tell me why ... thanks!!

 ... tobias wiersch


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10508&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10508 Updated: Wrong result when comparing two specific strings via "==".

2001-04-26 Thread cynic

ID: 10508
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Scripting Engine problem
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

this (mis- but shh, don't tell anyone :)feature has already caused much confusion. the 
reason: "d0" is automagically converted to 0, just like the other string.

you're welcome.

Previous Comments:
---

[2001-04-26 05:41:21] [EMAIL PROTECTED]
Hi!

This seems to be a bug:



This will produce the output "Why?" on my system ... but: why?
"00" isn't equal "D0"!?

If I'm wrong, please tell me why ... thanks!!

 ... tobias wiersch


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10508&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]