Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39072 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86830 invoked from network); 18 Jul 2008 02:37:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jul 2008 02:37:20 -0000 Authentication-Results: pb1.pair.com header.from=steph@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=steph@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 64.99.136.143 as permitted sender) X-PHP-List-Original-Sender: steph@php.net X-Host-Fingerprint: 64.99.136.143 smtprelay-virgin0143.hostedemail.com Linux 2.5 (sometimes 2.4) (4) Received: from [64.99.136.143] ([64.99.136.143:60580] helo=smtprelay-virgin.hostedemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AA/6C-31728-FD100884 for ; Thu, 17 Jul 2008 22:37:20 -0400 Received: from filter.hostedemail.com (ff-bigip1 [10.5.19.254]) by smtprelay07.hostedemail.com (Postfix) with SMTP id E577F645C3 for ; Fri, 18 Jul 2008 02:37:16 +0000 (UTC) X-SpamScore: 1 Received: from foxbox (77-97-189-167.cable.ubr07.shef.blueyonder.co.uk [77.97.189.167]) (Authenticated sender: steph.fox) by omf13.hostedemail.com (Postfix) with ESMTP for ; Fri, 18 Jul 2008 02:37:16 +0000 (UTC) Message-ID: <043f01c8e87f$63257930$a7bd614d@foxbox> To: "internals" Date: Fri, 18 Jul 2008 03:38:37 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-session-marker: 73746570682E666F78 X-Spam-Summary: 2,0,0,922bdb881504ba31,a0044eb5feb5d6a2,steph@php.net,,RULES_HIT:152:355:379:539:540:541:542:543:567:967:973:988:989:1155:1156:1260:1277:1311:1313:1314:1345:1437:1515:1516:1518:1534:1541:1587:1593:1594:1676:1711:1730:1747:1766:1792:2073:2075:2078:2198:2199:2393:2553:2559:2562:3353:3636:3865:3866:3867:3868:3869:3870:3871:3872:3874:4250:4321:4362:5007:6119:6261:7653:7682:7875:7903,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:none,DNSBL:none Subject: Apache builds From: steph@php.net ("Steph Fox") Hi all, I've been struggling a bit with Apache tonight. I'd hoped to send real patches at the end of it, but... I got sapi/apache to build by adding a direct include for zend_globals.h to php_apache_http.h. I have no idea why the apache sapi would suddenly want that, I just know it showed no interest in anything else on offer - up to and including giving it the entire Zend library. This could be just my setup (experimental at present) and is almost certainly Windows-only even if it isn't, so I'll leave that one for others to comment. The apachefilter sapi must have been broken across all platforms since the arrival of re2c. I got it to build like so (patch inlined because it shouldn't be used, just demonstrating the problem): Index: sapi/apache2filter/sapi_apache2.c =================================================================== RCS file: /repository/php-src/sapi/apache2filter/sapi_apache2.c,v retrieving revision 1.136.2.2.2.8.2.2 diff -u -r1.136.2.2.2.8.2.2 sapi_apache2.c --- sapi/apache2filter/sapi_apache2.c 18 Mar 2008 22:23:20 -0000 1.136.2.2.2.8.2.2 +++ sapi/apache2filter/sapi_apache2.c 18 Jul 2008 02:20:05 -0000 @@ -523,8 +523,7 @@ zfd.handle.stream.handle = pbb; zfd.handle.stream.reader = php_apache_read_stream; zfd.handle.stream.closer = php_apache_close_stream; - zfd.handle.stream.fteller = php_apache_fteller_stream; - zfd.handle.stream.interactive = 0; + zfd.handle.stream.fsizer = php_apache_fteller_stream; zfd.filename = f->r->filename; zfd.opened_path = NULL; Obviously this is not a correct fix, but it appears to work; it gives me a build with only 2 minor warnings from the PHP side of the equation under VC6. If someone with a working brain could supply a proper fix before the 5.3 beta 'twould be good. No other sapis in core are affected by the fteller/fsizer changes. Thanks, - Steph