|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-11-03 16:16 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2017-11-03 16:16 UTC] requinix@php.net
[2017-11-03 16:18 UTC] spam2 at rhsoft dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 24 17:00:01 2025 UTC |
Description: ------------ bug on comparation betwen integer and string parset from same variable. Test script: --------------- //Enter your code here, enjoy! $COMPANY ="942clud_clinic"; $a = ((int)$COMPANY); $b = (string)$COMPANY; echo gettype($a); echo "\n"; echo $a; echo "\n"; echo gettype($b); echo "\n"; echo $b; echo "\n"; if( $a != $b ){ echo 'aaaa'; } else { echo 'bbbb'; } Expected result: ---------------- 'aaaa' Actual result: -------------- 'bbbb'