Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34536 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51458 invoked by uid 1010); 6 Jan 2008 19:37:46 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 51442 invoked from network); 6 Jan 2008 19:37:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jan 2008 19:37:46 -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 213.46.255.22 cause and error) X-PHP-List-Original-Sender: markus@fischer.name X-Host-Fingerprint: 213.46.255.22 viefep18-int.chello.at Solaris 10 (beta) Received: from [213.46.255.22] ([213.46.255.22:2947] helo=viefep14-int.chello.at) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6E/84-16968-70E21874 for ; Sun, 06 Jan 2008 14:37:44 -0500 Received: from genuine.home ([84.112.136.139]) by viefep14-int.chello.at (InterMail vM.7.08.02.00 201-2186-121-20061213) with ESMTP id <20080106193744.QKAX23496.viefep14-int.chello.at@genuine.home> for ; Sun, 6 Jan 2008 20:37:44 +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 1JBbBa-0002zI-7E for internals@lists.php.net; Sun, 06 Jan 2008 20:29:33 +0100 Message-ID: <47812E04.3070705@fischer.name> Date: Sun, 06 Jan 2008 20:37:40 +0100 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: php-dev List 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: -25 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, accidentally I came across settype() in ext/standard/type.c which says [...] Content analysis details: (-2.6 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -3.3 ALL_TRUSTED Did not pass through any untrusted hosts -2.0 BAYES_20 BODY: Bayesian spam probability is 5 to 20% [score: 0.0728] 2.0 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address [84.112.136.139 listed in dnsbl.sorbs.net] 0.7 AWL AWL: From: address is in the auto white-list Subject: Source type.c says settype($var, "double") is deprecated From: markus@fischer.name (Markus Fischer) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, accidentally I came across settype() in ext/standard/type.c which says ~ } else if (!strcasecmp(new_type, "float")) { ~ convert_to_double(*var); ~ } else if (!strcasecmp(new_type, "double")) { /* deprecated */ ~ convert_to_double(*var); This is the context of calling ~ settype($val, "double"); I don't understand the comment, because in gettype() there is ~ case IS_DOUBLE: ~ RETVAL_ASCII_STRING("double", 1); ~ break; There's no possibility that gettype() returns "float", so maybe this comment is just in the wrong line? All in all a pretty superfluously mail but I thought I bring some diversification in the type hint debate ;) - - Markus -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHgS4E1nS0RcInK9ARArFQAKDBW9vqTA9QpA0LIVa/o18gZ1p0wACfQafo KlyHR+2BYlk2Oj9B8KrQan4= =vyS0 -----END PGP SIGNATURE-----