|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #10633 settype(.., "double") not work as expected(or documented)
Submitted: 2001-05-03 10:13 UTC Modified: 2001-05-19 12:51 UTC
From: tf at tfromm dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 4.0.4 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
27 + 13 = ?
Subscribe to this entry?

 [2001-05-03 10:13 UTC] tf at tfromm dot 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 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-19 12:51 UTC]
Correct behaviour. Documentation could be better indeed. I'm working on it.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Sep 26 04:03:36 2021 UTC