Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44133 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36159 invoked from network); 3 Jun 2009 18:00:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jun 2009 18:00:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=php_lists@realplain.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=php_lists@realplain.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain realplain.com from 209.151.69.1 cause and error) X-PHP-List-Original-Sender: php_lists@realplain.com X-Host-Fingerprint: 209.151.69.1 liberty.vosn.net Linux 2.4/2.6 Received: from [209.151.69.1] ([209.151.69.1:35680] helo=liberty.vosn.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0B/48-19828-A4AB62A4 for ; Wed, 03 Jun 2009 14:00:43 -0400 Received: from 75-120-255-76.dyn.centurytel.net ([75.120.255.76]:62185 helo=pc1) by liberty.vosn.net with smtp (Exim 4.69) (envelope-from ) id 1MBulS-0003w6-8h; Wed, 03 Jun 2009 12:00:38 -0600 Message-ID: To: Cc: "Dmitry Stogov" , "Stas Malyshev" , "Lukas Kahwe Smith" , =?iso-8859-1?Q?Johannes_Schl=FCter?= References: <49D468CA.5050200@zend.com> <49D65752.6020207@zend.com> Date: Wed, 3 Jun 2009 13:00:35 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - liberty.vosn.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - realplain.com Subject: Re: [PHP-DEV] Re: [PATCH] double to long conversion change From: php_lists@realplain.com ("Matt Wilmas") Hi again, OK, I will go ahead and commit the patch + test updates in about 24 hours... - Matt ----- Original Message ----- From: "Matt Wilmas" Sent: Friday, May 29, 2009 > Hi all, > > ----- Original Message ----- > From: "Matt Wilmas" > Sent: Friday, April 10, 2009 > >> Hi Dmitry, >> >> I finally updated the patches: >> http://realplain.com/php/dval_to_lval.diff >> http://realplain.com/php/dval_to_lval_5_3.diff > > The patches were updated again, against current CVS (no changes by me). > > After some off- and on-list discussion weeks ago, it sounds like (from > Stas) these changes are acceptable to restore float->int conversion to the > long-standing behavior that exists through PHP 5.2 (for most > users/platforms), as long as the necessary tests were updated, which I've > done for ones I checked. At least I haven't heard any negative feedback > since my final proposal? :-) > > Patches for test updates: > http://realplain.com/php/dval_to_lval_tests.diff > http://realplain.com/php/dval_to_lval_tests_5_3.diff > > ext/standard/tests/url/parse_url_variation_002.phpt was split into 32- and > 64-bit versions again (like 5.2). If other failing tests are found, let > me know. > > I guess I could go ahead and commit the changes next week if there aren't > objections... Was wondering about two minor parts, explained previously, > OK to keep?: > > 1) Configure check for whether just a simple (long) cast gives the desired > result, to save runtime range checking. (Not sure how many platforms > would pass this, other than Windows' VC6.) > 2) The 'L' conversion specifier for zend_parse_parameters() (I've updated > README.PARAMETER_PARSING_API). Like I said, some functions could be > updated to use this (with "limit" or "length" type params) to prevent > overflow-related weirdness if huge numbers are passed. It should be noted > that such unexpected behavior has existed through 5.2, however, though the > changes in 5.3 started to prevent it in a lot of cases (very inconsistent > though; Bug #47854, etc.). > > > Thanks, > Matt