Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31674 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44010 invoked by uid 1010); 17 Aug 2007 12:20:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 43986 invoked from network); 17 Aug 2007 12:20:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Aug 2007 12:20:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=ilia@prohost.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ilia@prohost.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain prohost.org from 64.233.184.227 cause and error) X-PHP-List-Original-Sender: ilia@prohost.org X-Host-Fingerprint: 64.233.184.227 wr-out-0506.google.com Linux 2.4/2.6 Received: from [64.233.184.227] ([64.233.184.227:24564] helo=wr-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 07/A2-28909-29295C64 for ; Fri, 17 Aug 2007 08:20:38 -0400 Received: by wr-out-0506.google.com with SMTP id 58so446788wri for ; Fri, 17 Aug 2007 05:20:30 -0700 (PDT) Received: by 10.90.25.3 with SMTP id 3mr4238034agy.1187353229024; Fri, 17 Aug 2007 05:20:29 -0700 (PDT) Received: from ?192.168.1.164? ( [204.101.63.110]) by mx.google.com with ESMTPS id n26sm2977796ele.2007.08.17.05.20.27 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 17 Aug 2007 05:20:28 -0700 (PDT) In-Reply-To: <46C59114.4000102@zend.com> References: <46C19531.7020003@zend.com> <46C59114.4000102@zend.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: <81EF619B-D47D-4FFA-9D57-6768272B0177@prohost.org> Cc: php-dev , Gregory Beaver Content-Transfer-Encoding: 7bit Date: Fri, 17 Aug 2007 08:20:24 -0400 To: Antony Dovgal X-Mailer: Apple Mail (2.752.3) Subject: Re: [PHP-DEV] [Fwd: [PHP-CVS] cvs: php-src /ext/standard formatted_print.c] From: ilia@prohost.org (Ilia Alshanetsky) I think the C behaviour is correct and we need to make a (hopefully) slight adjustment to the pear installer code. On 17-Aug-07, at 8:14 AM, Antony Dovgal wrote: > > Ilia? Greg? > Any comments? > > On 14.08.2007 15:42, Antony Dovgal wrote: >> This patch breaks PEAR phar install on 64bit. >>> From what I can see in the source code, it compares data in the >>> phar with >> the result of sprintf("%u"..), which is different on 32bit and >> 64bit because of this patch. >> Either phar should be changed to detect this situation or this >> patch should be reverted. >> -------- Original Message -------- >> Subject: [PHP-CVS] cvs: php-src /ext/standard formatted_print.c >> Date: Sun, 03 Jun 2007 09:11:52 -0000 >> From: Brian Shire >> To: php-cvs@lists.php.net >> shire Sun Jun 3 09:11:52 2007 UTC >> Modified files: /php-src/ext/standard >> formatted_print.c Log: >> Change printf %u behavior so that it does not truncate numbers >> at 32-bits. (Reported by Aditya Agarwal.) >> http://cvs.php.net/viewvc.cgi/php-src/ext/standard/ >> formatted_print.c?r1=1.100&r2=1.101&diff_format=u >> Index: php-src/ext/standard/formatted_print.c >> diff -u php-src/ext/standard/formatted_print.c:1.100 php-src/ext/ >> standard/formatted_print.c:1.101 >> --- php-src/ext/standard/formatted_print.c:1.100 Thu May 17 >> 17:29:09 2007 >> +++ php-src/ext/standard/formatted_print.c Sun Jun 3 09:11:52 2007 >> @@ -16,7 +16,7 @@ >> >> +-------------------------------------------------------------------- >> --+ >> */ >> -/* $Id: formatted_print.c,v 1.100 2007/05/17 17:29:09 tony2001 >> Exp $ */ >> +/* $Id: formatted_print.c,v 1.101 2007/06/03 09:11:52 shire Exp $ */ >> #include /* modf() */ >> #include "php.h" >> @@ -278,7 +278,7 @@ >> PRINTF_DEBUG(("sprintf: appenduint(%x, %x, %x, %d, %d, '%c', %d) >> \n", >> *buffer, pos, size, number, width, padding, alignment)); >> - magn = (unsigned int) number; >> + magn = (unsigned long) number; >> /* Can't right-pad 0's on integers */ >> if (alignment == 0 && padding == '0') padding = ' '; > > > -- > Wbr, Antony Dovgal Ilia Alshanetsky