#34426 [NEW]: implicit string casting problem

From: Date: Thu, 08 Sep 2005 10:44:54 +0000
Subject: #34426 [NEW]: implicit string casting problem
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-84719@lists.php.net to get a copy of this message
From: mbphp at netzone dot ch Operating system: Linux PHP version: 4.4.0 PHP Bug Type: Scripting Engine problem Bug description: implicit string casting problem Description: ------------ compare of 2 string with numbers >> implicit casting $a="1.5"; $b="1.50"; $a==$b gives true. which is not correct both are strings, so casting to another type is not ucorrect i think. if the variables are of different type casting is ok but not if both are of the same type. -- Edit bug report at http://bugs.php.net/?id=34426&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34426&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34426&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34426&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34426&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34426&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34426&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34426&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34426&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34426&r=support Expected behavior: http://bugs.php.net/fix.php?id=34426&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34426&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34426&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34426&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34426&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34426&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34426&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34426&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34426&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34426&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34426&r=mysqlcfg

« previous php.bugs (#84719) next »