mirror of
https://github.com/danog/jit_bugs.git
synced 2024-11-26 12:04:52 +01:00
Add revoltphp reproducer
This commit is contained in:
parent
243b169cae
commit
f51ada0b1f
@ -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
|
||||
|
||||
|
23
bugs/10_amp.sh
Executable file
23
bugs/10_amp.sh
Executable file
@ -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!"
|
Loading…
Reference in New Issue
Block a user