Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47036 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70024 invoked from network); 23 Feb 2010 12:25:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Feb 2010 12:25:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:47713] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/62-00376-339C38B4 for ; Tue, 23 Feb 2010 07:25:23 -0500 Received: from localhost (xdebug.org [127.0.0.1]) by xdebug.org (Postfix) with ESMTPS id BD89CDFF20; Tue, 23 Feb 2010 12:25:20 +0000 (UTC) Date: Tue, 23 Feb 2010 12:25:20 +0000 (GMT) X-X-Sender: derick@kossu.derickrethans.nl To: Raphael Geissert cc: internals@lists.php.net In-Reply-To: <0D.F0.00376.23B238B4@pb1.pair.com> Message-ID: References: <7B.19.00376.96CD18B4@pb1.pair.com> <05.0C.00376.39F038B4@pb1.pair.com> <0D.F0.00376.23B238B4@pb1.pair.com> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Re: why not use strtol instead of php_filter_parse_{int,hex,octal}? From: derick@php.net (Derick Rethans) On Mon, 22 Feb 2010, Raphael Geissert wrote: > Derick Rethans wrote: > > > What exactly are you trying to fix here? > > gcc 4.4's optimiser removes the overflow check present in > php_filter_parse_int and ZEND_HANDLE_NUMERIC (but I can't touch that part of > the code anyway...) which prevents the overflow from being detected. Doesn't this sound like a GCC bug to you then? with kind regards, Derick -- http://derickrethans.nl | http://xdebug.org twitter: @derickr