Bug #10633 Updated: settype(.., "double") not work as expected(or documented)

From: Date: Sat, 19 May 2001 16:51:43 +0000
Subject: Bug #10633 Updated: settype(.., "double") not work as expected(or documented)
Groups: php.dev 
Request: Send a blank email to php-dev+get-55902@lists.php.net to get a copy of this message
ID: 10633 Updated by: jeroen Reported By: tf@tfromm.com Old-Status: Open Status: Bogus Old-Bug Type: *Programming Data Structures Bug Type: Documentation problem Operating system: PHP Version: 4.0.4 Assigned To: Comments: Correct behaviour. Documentation could be better indeed. I'm working on it. http://www.php.net/manual/en/language.types.string.php#language.types.string.conversion Previous Comments: --------------------------------------------------------------------------- [2001-05-03 10:13:01] tf@tfromm.com $tmp = "1111111t11t"; settype($tmp, "double"); echo $tmp; returns '1111111' imho it should be 0 ?? (alike settype(... "integer")) using with 'double' the string is cuttet at the fist non-number-character --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10633&edit=2

« previous php.dev (#55902) next »