Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70435 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37742 invoked from network); 27 Nov 2013 08:37:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Nov 2013 08:37:18 -0000 Authentication-Results: pb1.pair.com header.from=ab@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ab@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 85.214.73.107 as permitted sender) X-PHP-List-Original-Sender: ab@php.net X-Host-Fingerprint: 85.214.73.107 klapt.com Received: from [85.214.73.107] ([85.214.73.107:50088] helo=klapt.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E4/E1-24795-A3FA5925 for ; Wed, 27 Nov 2013 03:37:18 -0500 Received: by klapt.com (Postfix, from userid 33) id 3B3E523D609E; Wed, 27 Nov 2013 09:37:11 +0100 (CET) Received: from 178.7.235.222 (SquirrelMail authenticated user anatol@belski.net) by webmail.klapt.com with HTTP; Wed, 27 Nov 2013 09:37:11 +0100 Message-ID: In-Reply-To: References: Date: Wed, 27 Nov 2013 09:37:11 +0100 To: "Jakub Zelenka" Cc: "PHP internals" Reply-To: "Anatol Belski" User-Agent: SquirrelMail/1.5.2 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] size_t and 64 bit integer branch From: ab@php.net ("Anatol Belski") Hi Jakub, On Sun, November 24, 2013 22:21, Jakub Zelenka wrote: > I have been playing with openssl a bit and made it work with this > configuration: > > > --disable-all --enable-cli --enable-debug --with-openssl > > > The commit is here > > > https://github.com/bukka/php-src/commit/215811e3fdb7b4f2786576851c8687c62 > 49c4725 > > > It's just an initial work but it works fine for all tests. However there > are lots of issues that need to be properly tested. I made notes about all > possible issues that could be a problem: > > https://gist.github.com/bukka/7617548 > > > Lots of them are just possible loss of data that won't be really > problematic but testing is required anyway IMHO. But some issues could be > a problem and they need a proper testing. > > I currently work on my php-crypto ext that I plan to propose for PECL > soon. So I will be doing testing for more versions of OpenSSL anyway. I > could prepare some tests for edge cases and do it together though. > > Let me know what you think about the patch! > > your patch looks fine. Unfortunately I've overseen your mail in the daily flood and made some changes to openssl too. Why didn't you update the wiki page by going on? It's exactly for the purpose of knowing what's currently going on :) In any case, could you please merge with the current state and do a PR? I'll merge it then. One thing though about openssl and issues you mention in the gist - the 'int' vs. php_int_t overflows on 64 bit should be fixed on run time checking against INT_MAX. Maybe that's what you could extend for the openssl ext. That's an issue in many other libs too. Thanks for you work Anatol