|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-04-04 13:58 UTC] nikic@php.net
-Status: Open
+Status: Closed
-Package: Feature/Change Request
+Package: *General Issues
-Assigned To:
+Assigned To: nikic
[2013-04-04 13:58 UTC] nikic@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 09 03:00:01 2025 UTC |
Description: ------------ When developing I find that comparison of a scalar and non-scalar is often unintentional and usually indicates a mistake elsewhere in the program. It would be nice if comparing scalars and non-scalars generated a low-priority error message. Reproduce code: --------------- <?php class A {} $a = new A; $b = 3; echo $a > $b; ?> Expected result: ---------------- Notice: Comparison of scalar and non-scalar without a typecast. in test.php on line 8 1 Actual result: -------------- 1