Bug #10437: casting is not consistent

From: Date: Sun, 22 Apr 2001 08:06:03 +0000
Subject: Bug #10437: casting is not consistent
Groups: php.dev 
Request: Send a blank email to php-dev+get-52129@lists.php.net to get a copy of this message
From: goba@php.net Operating system: win2k PHP version: 4.0.4pl1 PHP Bug Type: Strings related Bug description: casting is not consistent Casting is not consistent with doubles: $foo = "5.31abc"; $foo2 = (double) $foo; $foo3 = $foo + 0; The first gives 5.31 the second gives 5, although it should notice the full 5.31 number in the string. -- Edit Bug report at: http://bugs.php.net/?id=10437&edit=1

« previous php.dev (#52129) next »