Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25840 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66335 invoked by uid 1010); 27 Sep 2006 06:51:52 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 66319 invoked from network); 27 Sep 2006 06:51:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Sep 2006 06:51:52 -0000 Authentication-Results: pb1.pair.com header.from=markus@fischer.name; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=markus@fischer.name; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fischer.name from 213.46.255.18 cause and error) X-PHP-List-Original-Sender: markus@fischer.name X-Host-Fingerprint: 213.46.255.18 viefep16-int.chello.at Solaris 10 (beta) Received: from [213.46.255.18] ([213.46.255.18:45427] helo=viefep12-int.chello.at) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1C/4E-02907-68F1A154 for ; Wed, 27 Sep 2006 02:51:50 -0400 Received: from genuine ([80.108.128.16]) by viefep12-int.chello.at (InterMail vM.6.01.05.04 201-2131-123-105-20051025) with ESMTP id <20060927065147.SQOZ28651.viefep12-int.chello.at@genuine> for ; Wed, 27 Sep 2006 08:51:47 +0200 Received: from 62-99-200-226.sdsl-line.inode.at ([62.99.200.226] helo=[192.168.100.164]) by genuine with esmtpa (Exim 4.50) id 1GSTDf-000682-K1 for internals@lists.php.net; Wed, 27 Sep 2006 08:48:38 +0200 Message-ID: <451A1F7A.4080006@fischer.name> Date: Wed, 27 Sep 2006 08:51:38 +0200 User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: internals@lists.php.net X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: 0 X-Spam-Level: / X-Spam-Report: Spam detection software, running on the system "genuine", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I've trouble compiling the snapshot, it bails out in php_apache.c . [...] Content analysis details: (0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- Subject: Can't compile PHP6 snapshot From: markus@fischer.name (Markus Fischer) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I've trouble compiling the snapshot, it bails out in php_apache.c . =Configure= ./configure --prefix=/opt/php6 --enable-bcmath --enable-calendar - --enable-exif --enable-ftp --enable-gd-native-ttf --enable-pcntl - --enable-shmop --enable-soap --enable-sockets --enable-sqlite-utf8 - --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx - --enable-zip --enable-memory-limit --with-apxs --with-openssl - --with-zlib --with-bz2 --with-curl --with-gd --with-ldap --with-mcrypt - --with-mhash --with-mysql --with-pdo-mysql --with-tidy =Compile error= php6.0-200609261230/sapi/apache/php_apache.c: In function 'zif_apache_request_headers': php6.0-200609261230/sapi/apache/php_apache.c:364: error: expected expression before 'do' php6.0-200609261230/sapi/apache/php_apache.c: In function 'zif_apache_response_headers': php6.0-200609261230/sapi/apache/php_apache.c:384: error: expected expression before 'do' make: *** [sapi/apache/php_apache.lo] Error 1 =Source in php_apache.c= The line it fails is the one with add_assoc_string: PHP_FUNCTION(apache_request_headers) { array_header *env_arr; table_entry *tenv; int i; array_init(return_value); env_arr = table_elts(((request_rec *) SG(server_context))->headers_in); tenv = (table_entry *)env_arr->elts; for (i = 0; i < env_arr->nelts; ++i) { if (!tenv[i].key) { continue; } if (add_assoc_string(return_value, tenv[i].key, (tenv[i].val==NULL) ? "" : tenv[i].val, 1)==FAILURE) { RETURN_FALSE; } } } =System= I'm trying to compile on Debian testing with gcc version 4.1.2 20060901 (prerelease) (Debian 4.1.1-13) thanks for any pointers, - - Markus -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFGh961nS0RcInK9ARAucfAKDin6sCKxNMYwik2Pjd3S5VHTazQgCfWRhT EHRRc2x0k8qrkNuYrP5EiLw= =nHks -----END PGP SIGNATURE-----