Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34563 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6561 invoked by uid 1010); 6 Jan 2008 22:50:18 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 6545 invoked from network); 6 Jan 2008 22:50:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jan 2008 22:50:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=markus@fischer.name; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=markus@fischer.name; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fischer.name from 62.179.121.50 cause and error) X-PHP-List-Original-Sender: markus@fischer.name X-Host-Fingerprint: 62.179.121.50 viefep32-int.chello.at Solaris 10 (beta) Received: from [62.179.121.50] ([62.179.121.50:39158] helo=viefep32-int.chello.at) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D9/6E-16968-52B51874 for ; Sun, 06 Jan 2008 17:50:16 -0500 Received: from genuine.home ([84.112.136.139]) by viefep32-int.chello.at (InterMail vM.7.08.02.02 201-2186-121-104-20070414) with ESMTP id <20080106225013.YGPG26521.viefep32-int.chello.at@genuine.home>; Sun, 6 Jan 2008 23:50:13 +0100 Received: from chello084112136139.36.11.vie.surfer.at ([84.112.136.139] helo=[192.168.1.51]) by genuine.home with esmtpa (Exim 4.50) id 1JBeBp-0003Qs-Pq; Sun, 06 Jan 2008 23:42:00 +0100 Message-ID: <47815B23.6090401@fischer.name> Date: Sun, 06 Jan 2008 23:50:11 +0100 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Hannes Magnusson CC: php-dev List References: <47812E04.3070705@fischer.name> <7f3ed2c30801061204h2c1cf64dwb3a2e207e89e0f9b@mail.gmail.com> <478138AA.4050101@fischer.name> <7f3ed2c30801061430o25c1a01ua1f489a5e141598a@mail.gmail.com> In-Reply-To: <7f3ed2c30801061430o25c1a01ua1f489a5e141598a@mail.gmail.com> X-Enigmail-Version: 0.95.6 OpenPGP: id=C2272BD0; url=http://markus.fischer.name/my_public_key.txt Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -28 X-Spam-Level: -- X-Spam-Report: Spam detection software, running on the system "genuine.home", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Hannes Magnusson wrote: | It means that in PHP the type name is 'float' and referred to as | 'float' throughout the manual | For convenience you can use "double" (is_double($f), (double)$f, | settype($f, "double")..), just like you can use is_integer() instead | of is_int()... :) [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -3.3 ALL_TRUSTED Did not pass through any untrusted hosts -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0055] 2.0 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address [84.112.136.139 listed in dnsbl.sorbs.net] 1.0 AWL AWL: From: address is in the auto white-list Subject: Re: [PHP-DEV] Source type.c says settype($var, "double") is deprecated From: markus@fischer.name (Markus Fischer) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Hannes Magnusson wrote: | It means that in PHP the type name is 'float' and referred to as | 'float' throughout the manual | For convenience you can use "double" (is_double($f), (double)$f, | settype($f, "double")..), just like you can use is_integer() instead | of is_int()... :) Ok, I got it. I think :) So the manual says only float everywhere but throughout the source the internal type (the #define) is DOUBLE and gettype() is also returns "double". Basically, the manual says it's deprecated and documents it different when in fact PHP actually doesn't implement it that way ... Phew :) - - Markus -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHgVsj1nS0RcInK9ARAqgsAJ0U/upO0t48xLWvvAjCqAs2RZOf7QCeIVK8 /JrmagWizxWsGK5C4PhY3s0= =D7QP -----END PGP SIGNATURE-----