Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42067 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64175 invoked from network); 28 Nov 2008 10:35:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Nov 2008 10:35:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 88.198.8.16 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 88.198.8.16 bigtime.backendmedia.com Linux 2.6 Received: from [88.198.8.16] ([88.198.8.16:51796] helo=bigtime.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5F/73-43065-B79CF294 for ; Fri, 28 Nov 2008 05:35:40 -0500 Received: from localhost (unknown [127.0.0.1]) by bigtime.backendmedia.com (Postfix) with ESMTP id 710B84144064; Fri, 28 Nov 2008 10:38:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from bigtime.backendmedia.com ([127.0.0.1]) by localhost (bigtime.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i2aI9ueCqoFd; Fri, 28 Nov 2008 11:38:31 +0100 (CET) Received: from [192.168.80.161] (unknown [195.226.16.50]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by bigtime.backendmedia.com (Postfix) with ESMTP id EDA584144063; Fri, 28 Nov 2008 11:38:30 +0100 (CET) Cc: internals@lists.php.net Message-ID: To: Benjamin Schwarze In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Fri, 28 Nov 2008 11:33:45 +0100 References: X-Mailer: Apple Mail (2.929.2) Subject: Re: [PHP-DEV] Bug in interbase.c "invalid BLOB ID" From: mls@pooteeweet.org (Lukas Kahwe Smith) On 28.11.2008, at 06:15, Benjamin Schwarze wrote: > Hi! > > As some other users recognized, there is a bug in the implementation > of the function "_php_ibase_quad_to_string". (imho since version > 5.2.1) > > The line > "spprintf(&result, BLOB_ID_LEN+1, "0x%0*" LL_MASK "x", 16, > *(ISC_UINT64*)(void *) &qd);" > doesnt work as estimated. The result stored inside qd isnt the > value convertet from the string, but something else. Normally this > should work, but it doesnt. > > One possible solution is, to change the line into > "spprintf(&result, BLOB_ID_LEN+1, "0x%0*x%0*x", 8, qd.gds_quad_low, > 8, qd.gds_quad_high);" > > Of course, there might be a smarter way, but this solution worked > for me. My system is a Fedora Core 8 64bit. is there a bug opened for this? if not please open one. also please add your patch regards, Lukas Kahwe Smith mls@pooteeweet.org