-----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-----

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to