mirror of
https://github.com/php/flowfusion.git
synced 2026-03-23 22:42:06 +01:00
update: support new extensions
This commit is contained in:
@@ -49,6 +49,10 @@ RUN apt-get update && \
|
||||
libsodium-dev \
|
||||
libzip-dev \
|
||||
libxslt-dev \
|
||||
libwebp-dev \
|
||||
libjpeg-dev \
|
||||
libfreetype-dev \
|
||||
libpq-dev \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ print("Dependencies are ready")
|
||||
|
||||
print("===start configuring===")
|
||||
os.system("./buildconf")
|
||||
os.system('CC="clang-12" CXX="clang++-12" CFLAGS="-DZEND_VERIFY_TYPE_INFERENCE" CXXFLAGS="-DZEND_VERIFY_TYPE_INFERENCE" ./configure --enable-debug --enable-address-sanitizer --enable-undefined-sanitizer --enable-re2c-cgoto --enable-fpm --enable-litespeed --enable-phpdbg-debug --enable-zts --enable-bcmath --enable-calendar --enable-dba --enable-dl-test --enable-exif --enable-ftp --enable-gd --enable-gd-jis-conv --enable-mbstring --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-zend-test --with-zlib --with-bz2 --with-curl --with-enchant --with-gettext --with-gmp --with-mhash --with-ldap --with-libedit --with-readline --with-snmp --with-sodium --with-xsl --with-zip')
|
||||
os.system('CC="clang-12" CXX="clang++-12" CFLAGS="-DZEND_VERIFY_TYPE_INFERENCE" CXXFLAGS="-DZEND_VERIFY_TYPE_INFERENCE" ./configure --enable-debug --enable-address-sanitizer --enable-undefined-sanitizer --enable-re2c-cgoto --enable-fpm --enable-litespeed --enable-phpdbg-debug --enable-zts --enable-bcmath --enable-calendar --enable-dba --enable-dl-test --enable-exif --enable-ftp --enable-gd --enable-gd-jis-conv --enable-mbstring --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-zend-test --with-zlib --with-bz2 --with-curl --with-enchant --with-gettext --with-gmp --with-mhash --with-ldap --with-libedit --with-readline --with-snmp --with-sodium --with-xsl --with-zip --with-mysqli --with-pdo-mysql --with-pdo-pgsql --with-pgsql --with-sqlite3 --with-pdo-sqlite --with-webp --with-jpeg --with-freetype --enable-sigchild --with-readline --with-pcre-jit --with-iconv')
|
||||
print("configuring finished")
|
||||
print("start compiling")
|
||||
os.system("make -j16 --silent")
|
||||
|
||||
10
reduce.py
10
reduce.py
@@ -160,7 +160,7 @@ def reduce_php(testpath, phppath, config, bug_output):
|
||||
if not found_shorter_config:
|
||||
break
|
||||
|
||||
return reducedphp, reduced_config
|
||||
return reducedphp, reduced_config.strip('\n')
|
||||
|
||||
|
||||
|
||||
@@ -174,7 +174,7 @@ if __name__ == "__main__":
|
||||
phppath = "/home/phpfuzz/WorkSpace/flowfusion/php-src/sapi/cli/php"
|
||||
|
||||
# Configuration options for the PHP test run
|
||||
config = '-d "memory_limit=2M"'
|
||||
config = ''
|
||||
|
||||
# The expected bug output that we are trying to reproduce
|
||||
# if sanitizers' alerts
|
||||
@@ -184,6 +184,8 @@ if __name__ == "__main__":
|
||||
|
||||
reducedphp, reduced_config = reduce_php(testpath, phppath, config, bug_output)
|
||||
|
||||
reduced_config = f'./php-src/sapi/cli/php {reduced_config} ./test.php'
|
||||
|
||||
# auto generate bug report
|
||||
report_template = "\nThe following code:\n\n```php\n{poc}\n```\n\nResulted in this output:\n```\n{stdouterr}\n```\n\nTo reproduce:\n```\n{config}\n```\n\nCommit:\n```\n{commit}\n```\n\nConfigurations:\n```\n{php_config}\n```\n\nOperating System:\n```\n{os}\n```\n\n*This report is automatically generated by [FlowFusion](https://github.com/php/flowfusion)*\n"
|
||||
|
||||
@@ -192,7 +194,7 @@ if __name__ == "__main__":
|
||||
commit = f.read()
|
||||
f.close()
|
||||
|
||||
php_config = 'CC="clang-12" CXX="clang++-12" CFLAGS="-DZEND_VERIFY_TYPE_INFERENCE" CXXFLAGS="-DZEND_VERIFY_TYPE_INFERENCE" ./configure --enable-debug --enable-address-sanitizer --enable-undefined-sanitizer --enable-re2c-cgoto --enable-fpm --enable-litespeed --enable-phpdbg-debug --enable-zts --enable-bcmath --enable-calendar --enable-dba --enable-dl-test --enable-exif --enable-ftp --enable-gd --enable-gd-jis-conv --enable-mbstring --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-zend-test --with-zlib --with-bz2 --with-curl --with-enchant --with-gettext --with-gmp --with-mhash --with-ldap --with-libedit --with-readline --with-snmp --with-sodium --with-xsl --with-zip'
|
||||
php_config = 'CC="clang-12" CXX="clang++-12" CFLAGS="-DZEND_VERIFY_TYPE_INFERENCE" CXXFLAGS="-DZEND_VERIFY_TYPE_INFERENCE" ./configure --enable-debug --enable-address-sanitizer --enable-undefined-sanitizer --enable-re2c-cgoto --enable-fpm --enable-litespeed --enable-phpdbg-debug --enable-zts --enable-bcmath --enable-calendar --enable-dba --enable-dl-test --enable-exif --enable-ftp --enable-gd --enable-gd-jis-conv --enable-mbstring --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-zend-test --with-zlib --with-bz2 --with-curl --with-enchant --with-gettext --with-gmp --with-mhash --with-ldap --with-libedit --with-readline --with-snmp --with-sodium --with-xsl --with-zip --with-mysqli --with-pdo-mysql --with-pdo-pgsql --with-pgsql --with-sqlite3 --with-pdo-sqlite --with-webp --with-jpeg --with-freetype --enable-sigchild --with-readline --with-pcre-jit --with-iconv'
|
||||
|
||||
os = "Ubuntu 20.04 Host, Docker 0599jiangyc/flowfusion:latest"
|
||||
|
||||
@@ -205,4 +207,4 @@ if __name__ == "__main__":
|
||||
os = os
|
||||
)
|
||||
|
||||
print('\033[94m'+bug_report+'\033[0m')
|
||||
print('\033[94m'+bug_report+'\033[0m')
|
||||
|
||||
Reference in New Issue
Block a user