|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-10-09 09:50 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 17 14:00:02 2025 UTC |
Description: ------------ string casting and comparison with == with === it is ok, but both types are strings Reproduce code: --------------- if ( (string)'0X2BAD' == (string)'11181' ) { echo "php sucks"; } else { echo "php is ok"; } Expected result: ---------------- php is ok Actual result: -------------- php sucks