Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71404 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13654 invoked from network); 22 Jan 2014 10:56:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jan 2014 10:56:55 -0000 Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.181 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 209.85.220.181 mail-vc0-f181.google.com Received: from [209.85.220.181] ([209.85.220.181:41335] helo=mail-vc0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 30/00-13626-7F3AFD25 for ; Wed, 22 Jan 2014 05:56:55 -0500 Received: by mail-vc0-f181.google.com with SMTP id ie18so115876vcb.26 for ; Wed, 22 Jan 2014 02:56:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=Ghzv1/Rmtfmlnu9gsKx8PzNKtz45du40sbaJytjuABE=; b=IaknWeRnWZfqXogWjPwK+FEB/7+wKM0h2O2lU6kbQ9NXhOM1LqOKE7erwdkXjV3Qsb hPD6ltTxIaKVnBpKVpuZhocdnTlH3W5us/bOdaf+831py7Me0wzxHic4PyVGuiTDu2ah c+X1G1xDLEwwZANHWDzxebtnjpsd4PULQbeSip0Uw041f/vCb31Wls6pifOsg+IjW9Pn RkjzDpSQ614ncQNbJbsPH9CTCocyBzd9owmb5Fo7PDJo5w4Qfnq64lW49QaL8c8U+Y7w NE7hZ8dls/Yq76kmNH20G8L8PLrGX9j3ahshhyeVOyXuPChDhZfSqljyR6qzsjrBuzj/ 12PQ== X-Received: by 10.58.227.38 with SMTP id rx6mr464958vec.10.1390388212176; Wed, 22 Jan 2014 02:56:52 -0800 (PST) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.220.158.206 with HTTP; Wed, 22 Jan 2014 02:56:12 -0800 (PST) In-Reply-To: References: Date: Wed, 22 Jan 2014 11:56:12 +0100 X-Google-Sender-Auth: UV1qD8LcQbsi2l5ExF3vJCNn7lM Message-ID: To: Anatol Belski Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [RFC] 64 bit improvements, open questions From: jpauli@php.net (Julien Pauli) On Wed, Jan 22, 2014 at 9:20 AM, Anatol Belski wrote: > Hi, > > as the discussion phase for this RFC nears to the finish and the patch > itself is huge, I'd like to use the last chance to discuss the open > questions and concerns. Here are once more the links to the RFC (with > several updates) and the porting guide > > https://wiki.php.net/rfc/size_t_and_int64 > http://git.php.net/?p=php-src.git;a=blob;f=compat/PECL_PORTING;hb=refs/heads/str_size_and_int64 > > The big open question from the previous discussion is how to handle > changed ZPP formats. The way I've suggested in the porting doc is using > ternary operator like (COMP ? "l" : "i"). Another way were to put the old > ZPP formats "lLsp" back and make them redundant to the new ones "iISP". > Both ways have their pro and contra, the second variant isn't done, but > can be done quickly. That's a good question. Having to check for a macro and adapt parameters at every zpp() call would be painful, however we already do such things in other scenarios to take care of compatibility, so ... I would however rename the macro to something more meaningfull, same for PHP_NEED_COMPAT which should be named something like PHP_NEED_STRSIZE_COMPAT > Also one big question from the RFC which haven't been addressed is the > handling of the stale SAPIs. While porting it turned out, that more than > 50% of SAPIs reference no more actively supported web servers, some of > them are even not available anymore, no packages in the current > distributions seem to exist, no chance to check if they even complaint > with PHP mainstream. The SAPIs ported so far - apache2handler, CGI, CLI, > embed, FPM, phpdbg. I would suggest getting rid of those old SAPIs nobody use anymore. Late 90's SAPI that are not used/maintained anymore can die , IMO. I also have a memory usage question. Have we measured the impact of extending all 32 ints to 64 ? Memory usage should be higher, but how many higher ? Then is all that compatible with OPCache ? I guess yes and see nothing which would be blocking, anyway better ask. Anyway I'm all OK to merge this to 5.6 (should the RFC be accepted), this is a great push in PHP crossplatform handling, thanks for the huge work done so far ! Julien