|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-09-06 23:49 UTC] drm at melp dot nl
[2011-02-17 08:58 UTC] kissifrot at gmail dot com
[2011-03-11 09:43 UTC] delphists at apollo dot lv
[2012-01-16 14:29 UTC] michael dot kluge at wundermedia dot de
[2012-01-16 15:53 UTC] delphists at apollo dot lv
[2012-01-16 16:49 UTC] michael dot kluge at wundermedia dot de
[2015-01-09 00:58 UTC] ajf@php.net
[2018-05-05 19:07 UTC] requinix@php.net
-Status: Open
+Status: Wont fix
-Package: Feature/Change Request
+Package: *General Issues
[2018-05-05 19:07 UTC] requinix@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 18 15:00:01 2025 UTC |
Description: ------------ Casting during comparison should only happen if values of different types are being compared. For example: "42" == "+42" should not return true. This result is not very intuitive and probably leads to a number of subtle errors in various scripts. Reproduce code: --------------- <?php echo "Should Return False:".("400" == "+400")."<BR>"; echo "Should Return False:".((string) "400" == (string) "+400")."<BR>"; echo "Does Return False:".("400" === "+400")."<BR>"; ?>