Re: Source type.c says settype($var, "double") is deprecated

From: Date: Sun, 06 Jan 2008 20:23:06 +0000
Subject: Re: Source type.c says settype($var, "double") is deprecated
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-34540@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Hannes Magnusson wrote: | No, the comment is correct. | | "for historical [read: BC] reasons "double" is returned in case of a | float, and not simply "float"" | | See http://docs.php.net/settype && http://docs.php.net/gettype Thanks for the pointers, but I don't quite understand what "deprecate" now means. Doing gettype(1.5) returns "double". There's not way that gettype() returns "float". I don't see the implications of this "deprecation" here. What does it say? The comment in the sourceis there since around 2002 or so. But there aren't plans to change the behavior or gettype(), are there? Sorry if I seem nitpicking, I just got more confused after your mail :) - - Markus -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHgTiq1nS0RcInK9ARAjkiAKDbBA66+XnNJ8RhgmdHHlonUW1MJgCg43wp /YJJZkmsY1lqKV4lzfGoCxs= =CQZj -----END PGP SIGNATURE-----

« previous php.internals (#34540) next »