diff --git a/Dockerfile b/Dockerfile index de181ea..78f31b2 100755 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,6 @@ ENV CXX=clang++-16 ENV LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/lib/llvm-16/lib/clang/16/lib/linux/" -ADD php.ini /etc/php/php.ini - RUN true \ && apt update \ && apt install -y --no-install-recommends \ @@ -33,7 +31,7 @@ RUN true \ libpcre2-dev libargon2-dev libedit-dev libsodium-dev llvm-16 libonig-dev \ gdb libcapstone-dev -RUN git clone https://github.com/php/php-src -b PHP-8.3 --depth 1 && cd php-src \ +RUN git clone https://github.com/php/php-src -b master --depth 1 && cd php-src \ && ./buildconf \ && ./configure --prefix=/usr \ --includedir=/usr/include --mandir=/usr/share/man --infodir=/usr/share/info --sysconfdir=/etc \ @@ -58,6 +56,8 @@ RUN git clone https://github.com/php/php-src -b PHP-8.3 --depth 1 && cd php-src && make -j100 \ && make install +ADD php.ini /etc/php/php.ini + RUN php -r "readfile('https://getcomposer.org/installer');" | php \ && mv composer.phar /usr/bin/composer diff --git a/bugs/10_amp.sh b/bugs/10_amp.sh new file mode 100755 index 0000000..1c16627 --- /dev/null +++ b/bugs/10_amp.sh @@ -0,0 +1,23 @@ +#!/bin/bash -e + +composer update + +standalone=$PWD/bugs/wrap.php +refactor=$PWD/refactor.php + +cd /tmp + +rm -rf event-loop + +git clone https://github.com/revoltphp/event-loop +cd event-loop + +cp $standalone . + +composer i --ignore-platform-reqs + +sleep 3 + +docker run -v $PWD:/app --rm --privileged -it asan_tests bash -c 'export USE_ZEND_ALLOC=1; /usr/bin/php -d opcache.jit=0 --repeat 2 -f /app/wrap.php /app/vendor/bin/phpunit' + +echo "OK, no bugs!"