[PHP-DEV] Bug #10633: settype(.., "double") not work as expected(or documented) From: tf <email protected>
Date: 05/03/01

From: tf <email protected>
Operating system: linux
PHP version: 4.0.4
PHP Bug Type: *Programming Data Structures
Bug description: settype(.., "double") not work as expected(or documented)

$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

-- 
Edit Bug report at: http://bugs.php.net/?id=10633&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>