language: c

env:
    - phpver=5.6.6 CCASFLAGS=-m64 CPPFLAGS=-m64 CFLAGS=-m64 CXXFLAGS=-m64 LDFLAGS=-m64
    - phpver=5.6.6 CCASFLAGS=-m32 CPPFLAGS=-m32 CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32
    - phpver=5.5.22 CCASFLAGS=-m64 CPPFLAGS=-m64 CFLAGS=-m64 CXXFLAGS=-m64 LDFLAGS=-m64
    - phpver=5.5.22 CCASFLAGS=-m32 CPPFLAGS=-m32 CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32

before_install:
    - sudo apt-get update

install:
    - sudo apt-get install gcc-multilib
    - curl -L http://php.net/get/php-$phpver.tar.xz/from/this/mirror | tar xJ
    - cd php-$phpver
    - ./configure --disable-xml --disable-libxml --disable-simplexml --disable-dom --disable-xmlreader --disable-xmlwriter --without-pear
    - make
    - cd ..

script:
    - php-$phpver/sapi/cli/php -r "var_dump(PHP_INT_SIZE);"
    - truncate -s 5G test.bin
    - php-$phpver/sapi/cli/php -r "var_dump(filesize('test.bin'));"

language: c

env:
    - phpver=5.6.6 CCASFLAGS=-m64 CPPFLAGS=-m64 CFLAGS=-m64 LDFLAGS=-m64
    - phpver=5.6.6 CCASFLAGS=-m32 CPPFLAGS=-m32 CFLAGS=-m32 LDFLAGS=-m32
    - phpver=5.5.22 CCASFLAGS=-m64 CPPFLAGS=-m64 CFLAGS=-m64 LDFLAGS=-m64
    - phpver=5.5.22 CCASFLAGS=-m32 CPPFLAGS=-m32 CFLAGS=-m32 LDFLAGS=-m32

before_install:
    - sudo apt-get update

install:
    - sudo apt-get install gcc-multilib
    - curl -L http://php.net/get/php-$phpver.tar.xz/from/this/mirror | tar xJ
    - cd php-$phpver
    - ./configure --disable-xml --disable-libxml --disable-simplexml --disable-dom --disable-xmlreader --disable-xmlwriter --without-pear
    - make
    - cd ..

script:
    - php-$phpver/sapi/cli/php -r "var_dump(PHP_INT_SIZE);"
    - truncate -s 5G test.bin
    - php-$phpver/sapi/cli/php -r "var_dump(filesize('test.bin'));"

Remove CXXFLAGS as we are not installing g++-multilib.
Remove CXXFLAGS as we are not installing g++-multilib.
