├── .github └── workflows │ └── ci.yml ├── .gitignore ├── LICENSE ├── README.md ├── config ├── debian │ ├── changelog │ ├── compat │ └── control ├── default_apache ├── default_nginx ├── definitions │ ├── 5.6 │ ├── 7.0 │ ├── 7.1 │ ├── 7.2 │ ├── 7.3 │ ├── 7.4 │ ├── 8.0 │ ├── 8.1 │ ├── 8.2 │ ├── 8.3 │ ├── 8.4 │ ├── 8.5 │ ├── sapi │ │ ├── apache2 │ │ ├── cgi │ │ ├── cli │ │ ├── embed │ │ ├── fpm │ │ └── phpdbg │ └── zts │ │ ├── 5.6 │ │ ├── 7.0 │ │ ├── 7.1 │ │ ├── 7.2 │ │ ├── 7.3 │ │ ├── 7.4 │ │ ├── 8.0 │ │ ├── 8.1 │ │ ├── 8.2 │ │ ├── 8.3 │ │ ├── 8.4 │ │ └── 8.5 ├── extensions │ ├── 5.6 │ ├── 7.0 │ ├── 7.1 │ ├── 7.2 │ ├── 7.3 │ ├── 7.4 │ ├── 8.0 │ ├── 8.1 │ ├── 8.2 │ ├── 8.3 │ ├── 8.4 │ └── 8.5 ├── modules │ ├── amqp.ini │ ├── apcu.ini │ ├── ast.ini │ ├── bcmath.ini │ ├── bz2.ini │ ├── calendar.ini │ ├── ctype.ini │ ├── curl.ini │ ├── dba.ini │ ├── dom.ini │ ├── ds.ini │ ├── enchant.ini │ ├── exif.ini │ ├── ffi.ini │ ├── fileinfo.ini │ ├── ftp.ini │ ├── gd.ini │ ├── gettext.ini │ ├── gmp.ini │ ├── iconv.ini │ ├── igbinary.ini │ ├── imagick.ini │ ├── imap.ini │ ├── intl.ini │ ├── json.ini │ ├── ldap.ini │ ├── mbstring.ini │ ├── memcache.ini │ ├── memcached.ini │ ├── mongo.ini │ ├── mongodb.ini │ ├── msgpack.ini │ ├── mysqli.ini │ ├── mysqlnd.ini │ ├── odbc.ini │ ├── opcache.ini │ ├── pcov.ini │ ├── pdo.ini │ ├── pdo_dblib.ini │ ├── pdo_firebird.ini │ ├── pdo_mysql.ini │ ├── pdo_odbc.ini │ ├── pdo_pgsql.ini │ ├── pdo_sqlite.ini │ ├── pdo_sqlsrv.ini │ ├── pgsql.ini │ ├── phar.ini │ ├── posix.ini │ ├── pspell.ini │ ├── readline.ini │ ├── redis.ini │ ├── shmop.ini │ ├── simplexml.ini │ ├── snmp.ini │ ├── soap.ini │ ├── sockets.ini │ ├── sqlite3.ini │ ├── sqlsrv.ini │ ├── swoole.ini │ ├── sysvmsg.ini │ ├── sysvsem.ini │ ├── sysvshm.ini │ ├── tidy.ini │ ├── tokenizer.ini │ ├── xdebug.ini │ ├── xml.ini │ ├── xmlreader.ini │ ├── xmlrpc.ini │ ├── xmlwriter.ini │ ├── xsl.ini │ ├── yaml.ini │ ├── zip.ini │ └── zmq.ini ├── os_releases.csv ├── patches │ ├── .gitkeep │ ├── 5.6 │ │ ├── 0001-libtool_fixes.patch │ │ ├── 0002-static_openssl.patch │ │ ├── 0003-debian_quirks.patch │ │ ├── 0004-libtool2.2.patch │ │ ├── 0005-we_WANT_libtool.patch │ │ ├── 0006-php-5.4.9-phpinfo.patch │ │ ├── 0007-extension_api.patch │ │ ├── 0008-no_apache_installed.patch │ │ ├── 0009-recode_is_shared.patch │ │ ├── 0010-proc_open.patch │ │ ├── 0011-php.ini_securitynotes.patch │ │ ├── 0012-php-5.4.7-libdb.patch │ │ ├── 0013-use_embedded_timezonedb.patch │ │ ├── 0014-force_libmysqlclient_r.patch │ │ ├── 0015-strcmp_null-OnUpdateErrorLog.patch │ │ ├── 0016-dont-gitclean-in-build.patch │ │ ├── 0017-qdbm-is-usr_include_qdbm.patch │ │ ├── 0018-session_save_path.patch │ │ ├── 0019-php-fpm-man-section-and-cleanup.patch │ │ ├── 0020-fpm-config.patch │ │ ├── 0021-php-fpm-sysconfdir.patch │ │ ├── 0022-lp564920-fix-big-files.patch │ │ ├── 0023-temporary-path-fixes-for-multiarch.patch │ │ ├── 0024-hurd-noptrace.patch │ │ ├── 0025-php-5.3.9-mysqlnd.patch │ │ ├── 0026-php-5.3.9-gnusrc.patch │ │ ├── 0027-php-5.3.3-macropen.patch │ │ ├── 0028-php-5.2.4-norpath.patch │ │ ├── 0029-php-5.2.4-embed.patch │ │ ├── 0030-php-fpm-m68k.patch │ │ ├── 0031-expose_all_built_and_installed_apis.patch │ │ ├── 0032-Use-system-timezone.patch │ │ ├── 0033-zlib-largefile-function-renaming.patch │ │ ├── 0034-php-fpm-do-reload-on-SIGHUP.patch │ │ ├── 0035-php-5.4.8-ldap_r.patch │ │ ├── 0036-php-5.4.9-fixheader.patch │ │ ├── 0037-php-5.6.0-noNO.patch │ │ ├── 0038-php-5.6.0-oldpcre.patch │ │ ├── 0039-hack-phpdbg-to-explicitly-link-with-libedit.patch │ │ ├── 0040-Fix-ZEND_MM_ALIGNMENT-on-m64k.patch │ │ ├── 0041-Add-patch-to-remove-build-timestamps-from-generated-.patch │ │ ├── 0042-Remove-W3C-validation-icon-to-not-expose-the-reader-.patch │ │ ├── 0043-strtod_arm_fix.patch │ │ ├── 0044-sybase-alias.patch │ │ ├── 0045-use_embedded_timezonedb_fixes.patch │ │ ├── 0046-php-5.4.0-dlopen.patch │ │ ├── 0047-Disable-apxs2-module-activation-on-sapi-install.patch │ │ ├── 0048-Remove-warning-about-mysql-library-minor-version-mis.patch │ │ ├── 0049-XMLRPC-EPI-library-has-to-be-linked-as-lxmlrpc-epi.patch │ │ ├── 0050-Don-t-put-INSTALL_ROOT-into-phar.phar-exec-stanza.patch │ │ ├── 0051-make-opcache-lockfile-path-configurable.patch │ │ ├── 0052-Really-expand-libdir-datadir-into-EXPANDED_LIBDIR-DA.patch │ │ ├── 0053-Adjust-tidy-extension-for-tidy-html5.patch │ │ ├── 0054-Fix-check-for-CURL-include-in-M-A-directory.patch │ │ ├── 0055-Use-OpenSSL-1.1-compatibility-patch-when-built-with-.patch │ │ ├── 0056-Fix-PHP-bug-64827-Segfault-in-zval_mark_grey-zend_gc.patch │ │ ├── 0057-Use-pkg-config-for-FreeType2-detection.patch │ │ ├── 0058-Fix-bug-77396-Null-Pointer-Dereference-in-phar_creat.patch │ │ ├── 0059-Fix-77431-SplFileInfo-__construct-accepts-NUL-bytes.patch │ │ ├── 0060-Fix-test.patch │ │ ├── 0061-Fix-integer-overflows-on-32-bits.patch │ │ ├── 0062-Fix-bug-77540-Invalid-Read-on-exif_process_SOFn.patch │ │ ├── 0063-Fix-bug-77563-Uninitialized-read-in-exif_process_IFD.patch │ │ ├── 0064-Fix-test-error-message.patch │ │ ├── 0065-Fix-bug-77586-phar_tar_writeheaders_int-buffer-overf.patch │ │ ├── 0066-Fix-test.patch │ │ ├── 0067-Fix-bug-77630-safer-rename-procedure.patch │ │ ├── 0068-Fix-test-portability.patch │ │ ├── 0069-Update-NEWS.patch │ │ ├── 0070-Use-pkg-config-for-ICU-as-the-old-icu-config-has-bee.patch │ │ ├── 0071-ext-intl-Use-C-namespaces-for-ICU-63.1.patch │ │ ├── 0072-Fix-rl_completion_matches-compilation-with-newer-lib.patch │ │ ├── 0073-SQLite3-add-DEFENSIVE-config-for-SQLite-3.26.0-as-a-.patch │ │ ├── 0074-Fix-bug-77753-Heap-buffer-overflow-in-php_ifd_get32s.patch │ │ ├── 0075-Fixed-bug-77831-Heap-buffer-overflow-in-exif_iif_add.patch │ │ ├── 0076-Pointer-arithmetic-on-void-pointers-is-illegal.patch │ │ ├── 0077-Amend-C-11-for-intl-compilation-on-older-distributio.patch │ │ ├── 0078-Skip-test-on-PostgreSQL-10.patch │ │ ├── 0079-Fix-tests-wrt.-internationalization.patch │ │ ├── 0080-Fix-bug-77950-Heap-buffer-overflow-in-_estrndup-via-.patch │ │ ├── 0081-Fix-potential-expanded-command-line-too-long-build-e.patch │ │ ├── 0082-Fix-77973-Uninitialized-read-in-gdImageCreateFromXbm.patch │ │ ├── 0083-Fix-bug-78069-Out-of-bounds-read-in-iconv.c-_php_ico.patch │ │ ├── 0084-fix-test-output.patch │ │ ├── 0085-Fix-bug-77988-heap-buffer-overflow-on-php_jpg_get16.patch │ │ ├── 0086-Fix-bug-77967-Bypassing-open_basedir-restrictions-vi.patch │ │ ├── 0087-fix-tests.patch │ │ ├── 0088-Upgrade-to-SQLite-3.28.0.patch │ │ ├── 0089-Add-support-for-xfail-to-phpt-SKIPIF-sections.patch │ │ ├── 0090-xfail-phar-tests.patch │ │ ├── 0091-Fix-bug-78222-heap-buffer-overflow-on-exif_scan_thum.patch │ │ ├── 0092-Fix-bug-78256-heap-buffer-overflow-on-exif_process_u.patch │ │ ├── 0093-Fix-77919-Potential-UAF-in-Phar-RSHUTDOWN.patch │ │ ├── 0094-Make-use-of-pkg-config-for-libxml2.patch │ │ ├── 0095-Fix-75457-heap-use-after-free-in-php7.0.25.patch │ │ ├── 0096-Fix-CVE-2019-13224-don-t-allow-different-encodings-f.patch │ │ ├── 0097-NEWS.patch │ │ ├── 0098-relax-test-offset-may-be-different-on-various-system.patch │ │ ├── 0099-Fix-erroneous-test-expectation.patch │ │ ├── 0100-Fix-getColumnMeta-test.patch │ │ ├── 0101-test-fixes.patch │ │ ├── 0102-Fixed-test-on-32-bit-systems.patch │ │ ├── 0103-Prevent-test-case-failure.patch │ │ ├── 0104-Fix-bug-78599-env_path_info-underflow-can-lead-to-RC.patch │ │ ├── 0105-add-NEWS-entry.patch │ │ ├── 0106-Fix-78878-Buffer-underflow-in-bc_shift_addsub.patch │ │ ├── 0107-Fix-78862-link-silently-truncates-after-a-null-byte-.patch │ │ ├── 0108-Fix-78863-DirectoryIterator-class-silently-truncates.patch │ │ ├── 0109-Fix-bug-78793.patch │ │ ├── 0110-Fixed-bug-78910.patch │ │ ├── 0111-Fix-tests.patch │ │ ├── 0112-fork-tests.patch │ │ ├── 0113-Fix-tests.patch │ │ ├── 0114-fix-test.patch │ │ ├── 0117-Sync-test-with-changes-in-libcurl-7.64.0.patch │ │ ├── 0118-Fix-ext-mysql-tests.patch │ │ ├── 0119-Clean-up-server-tests.php-remains.patch │ │ ├── 0120-refix-test.patch │ │ ├── 0121-Fix-test-when-it-s-run-on-another-drive.patch │ │ ├── 0122-Fix-test.patch │ │ ├── 0123-fix-remaining-tests-for-Opcache-runs.patch │ │ ├── 0124-Fix-79099-OOB-read-in-php_strip_tags_ex.patch │ │ ├── 0125-Fix-bug-79037-global-buffer-overflow-in-mbfl_filt_co.patch │ │ ├── 0126-update-NEWS.patch │ │ ├── 0127-Fix-MSVC-build.patch │ │ ├── 0128-More-checks-for-php_strip_tags_ex.patch │ │ ├── 0129-Fix-test-cases.patch │ │ ├── 0130-Fix-bug-79221-Null-Pointer-Dereference-in-PHP-Sessio.patch │ │ ├── 0131-Fix-bug-79082-Files-added-to-tar-with-Phar-buildFrom.patch │ │ ├── 0132-NEWS.patch │ │ ├── 0133-renew-certs-for-openssl-tests.patch │ │ ├── 0134-Use-pkg-config-for-PHP_SETUP_LIBXML.patch │ │ ├── 0135-Fixed-bug-79282.patch │ │ ├── 0136-Fix-test.patch │ │ ├── 0137-fix-test.patch │ │ ├── 0138-Fix-bug-79329-get_headers-should-not-accept-0.patch │ │ ├── 0139-Update-NEWS.patch │ │ ├── 0140-Fix-bug-79330-make-all-execution-modes-consistent-in.patch │ │ ├── 0141-Fix-bug-79465-use-unsigneds-as-indexes.patch │ │ ├── 0142-NEWS.patch │ │ ├── 0143-ZTS.patch │ │ ├── 0144-Fix-bug-72333-fwrite-on-non-blocking-SSL-sockets-doe.patch │ │ ├── 0145-Backport-the-aarch64-ZEND_SIGNED_MULTIPLY_LONG-assem.patch │ │ ├── 0146-Fix-Bug-79296-ZipArchive-open-fails-on-empty-file.patch │ │ ├── 0147-Backports-from-7.2.31.patch │ │ ├── 0148-Allow-numeric-UG-ID-in-FPM-listen.-owner-group.patch │ │ ├── 0149-Fix-79797-Use-of-freed-hash-key-in-the-phar_parse_zi.patch │ │ ├── 0150-Fix-79877-getimagesize-function-silently-truncates-a.patch │ │ ├── 0151-ZTS-fix.patch │ │ ├── 0152-Fixed-phpdbg-build-broken-when-dtrace-enabled.patch │ │ ├── 0153-Do-not-decode-cookie-names-anymore.patch │ │ ├── 0154-NEWS.patch │ │ ├── 0155-Add-pkg-config-m4-files-to-phpize-script.patch │ │ ├── 0156-In-phpize-also-copy-config.guess-config.sub-ltmain.s.patch │ │ ├── 0157-Fix-77423-parse_url-will-deliver-a-wrong-host-to-use.patch │ │ ├── 0158-NEWS.patch │ │ ├── 0159-Alternative-fix-for-bug-77423.patch │ │ ├── 0160-Fix-bug-80672-Null-Dereference-in-SoapClient.patch │ │ ├── 0161-Fix-build.patch │ │ ├── 0162-Use-libenchant-2-when-available.patch │ │ ├── 0163-remove-deprecated-call-and-deprecate-function-to-be-.patch │ │ ├── 0164-Patch-mysql-with-utf8mb4-character-set.patch │ │ ├── 0167-Fix-80710-imap_mail_compose-header-injection.patch │ │ ├── 0168-Add-missing-NEWS-entry-for-80710.patch │ │ ├── 0170-Fixed-bug-73512-Fails-to-find-firebird-headers.patch │ │ ├── 0171-Fix-81122-SSRF-bypass-in-FILTER_VALIDATE_URL.patch │ │ ├── 0172-Fix-warning.patch │ │ ├── 0173-Fix-bug-76488-Memory-leak-when-fetching-a-BLOB-field.patch │ │ ├── 0174-Fix-76452-Crash-while-parsing-blob-data-in-firebird_.patch │ │ ├── 0175-Fix-76450-SIGSEGV-in-firebird_stmt_execute.patch │ │ ├── 0176-Fix-76449-SIGSEGV-in-firebird_handle_doer.patch │ │ ├── 0177-Fix-76448-Stack-buffer-overflow-in-firebird_info_cb.patch │ │ ├── 0178-Update-NEWS.patch │ │ ├── 0179-Fixes-65689.-PDO_Firebrid-exec-does-not-free-allocat.patch │ │ ├── 0180-fix-ibase-handle-initialization-mostly-compiler-warn.patch │ │ ├── 0181-adapt-for-5.6-without-ZEND_ULONG_MAX.patch │ │ ├── 0182-Fix-81211-Symlinks-are-followed-when-creating-PHAR-a.patch │ │ ├── 0183-Fix-test.patch │ │ ├── 0184-NEWS.patch │ │ ├── 0185-Fix-bug-81026-PHP-FPM-oob-R-W-in-root-process-leadin.patch │ │ ├── 0186-NEWS.patch │ │ ├── 0187-Fix-81420-ZipArchive-extractTo-extracts-outside-of-d.patch │ │ ├── 0188-NEWS.patch │ │ ├── 0189-Fix-79971-special-character-is-breaking-the-path-in-.patch │ │ ├── 0190-fix-new-tests.patch │ │ ├── 0191-NEWS.patch │ │ ├── 0192-fix-ZTS.patch │ │ ├── 0193-Add-minimal-OpenSSL-3.0-patch.patch │ │ ├── 0194-Use-true-false-instead-of-TRUE-FALSE-in-intl.patch │ │ ├── 0195-Change-UBool-to-bool-for-equality-operators-in-ICU-7.patch │ │ ├── 0196-Fix-81720-Uninitialized-array-in-pg_query_params-lea.patch │ │ ├── 0197-Fix-bug-81719-mysqlnd-pdo-password-buffer-overflow.patch │ │ ├── 0198-NEWS.patch │ │ ├── 0199-Fix-bug-79589-ssl3_read_n-unexpected-eof-while-readi.patch │ │ ├── 0200-Fix-81727-Don-t-mangle-HTTP-variable-names-that-clas.patch │ │ ├── 0201-Fix-81726-phar-wrapper-DOS-when-using-quine-gzip-fil.patch │ │ ├── 0202-Fix-regression-introduced-by-fixing-bug-81726.patch │ │ ├── 0203-fix-NEWS.patch │ │ ├── 0204-Fix-81740-PDO-quote-may-return-unquoted-string.patch │ │ ├── 0205-adapt-test-for-5.x.patch │ │ ├── 0206-NEWS.patch │ │ ├── 0207-crypt-Fix-validation-of-malformed-BCrypt-hashes.patch │ │ ├── 0208-crypt-Fix-possible-buffer-overread-in-php_crypt.patch │ │ ├── 0209-Fix-array-overrun-when-appending-slash-to-paths.patch │ │ ├── 0210-NEWS.patch │ │ ├── 0211-Increase-random-bytes-in-HTTP-Digest-authentication-.patch │ │ └── series │ ├── 7.0 │ │ ├── 0001-libtool_fixes.patch │ │ ├── 0002-static_openssl.patch │ │ ├── 0003-debian_quirks.patch │ │ ├── 0004-libtool2.2.patch │ │ ├── 0005-we_WANT_libtool.patch │ │ ├── 0006-php-5.4.9-phpinfo.patch │ │ ├── 0007-extension_api.patch │ │ ├── 0008-no_apache_installed.patch │ │ ├── 0009-recode_is_shared.patch │ │ ├── 0010-proc_open.patch │ │ ├── 0011-php.ini_securitynotes.patch │ │ ├── 0012-php-5.4.7-libdb.patch │ │ ├── 0013-Add-support-for-use-of-the-system-timezone-database.patch │ │ ├── 0014-force_libmysqlclient_r.patch │ │ ├── 0015-strcmp_null-OnUpdateErrorLog.patch │ │ ├── 0016-dont-gitclean-in-build.patch │ │ ├── 0017-qdbm-is-usr_include_qdbm.patch │ │ ├── 0018-session_save_path.patch │ │ ├── 0019-php-fpm-man-section-and-cleanup.patch │ │ ├── 0020-fpm-config.patch │ │ ├── 0021-php-fpm-sysconfdir.patch │ │ ├── 0022-lp564920-fix-big-files.patch │ │ ├── 0023-temporary-path-fixes-for-multiarch.patch │ │ ├── 0024-hurd-noptrace.patch │ │ ├── 0025-php-5.3.9-mysqlnd.patch │ │ ├── 0026-php-5.3.9-gnusrc.patch │ │ ├── 0027-php-5.3.3-macropen.patch │ │ ├── 0028-php-5.2.4-norpath.patch │ │ ├── 0029-php-5.2.4-embed.patch │ │ ├── 0030-php-fpm-m68k.patch │ │ ├── 0031-expose_all_built_and_installed_apis.patch │ │ ├── 0032-Use-system-timezone.patch │ │ ├── 0033-zlib-largefile-function-renaming.patch │ │ ├── 0034-php-fpm-do-reload-on-SIGHUP.patch │ │ ├── 0035-php-5.4.8-ldap_r.patch │ │ ├── 0036-php-5.4.9-fixheader.patch │ │ ├── 0037-php-5.6.0-noNO.patch │ │ ├── 0038-php-5.6.0-oldpcre.patch │ │ ├── 0039-hack-phpdbg-to-explicitly-link-with-libedit.patch │ │ ├── 0040-Fix-ZEND_MM_ALIGNMENT-on-m64k.patch │ │ ├── 0041-Add-patch-to-install-php7-module-directly-to-APXS_LI.patch │ │ ├── 0042-Remove-W3C-validation-icon-to-not-expose-the-reader-.patch │ │ ├── 0043-Don-t-put-INSTALL_ROOT-into-phar.phar-exec-stanza.patch │ │ ├── 0044-XMLRPC-EPI-library-has-to-be-linked-as-lxmlrpc-epi.patch │ │ ├── 0045-Really-expand-libdir-datadir-into-EXPANDED_LIBDIR-DA.patch │ │ ├── 0046-Fix-ext-date-lib-parse_tz-PATH_MAX-HURD-FTBFS.patch │ │ ├── 0047-Adjust-tidy-extension-for-tidy-html5.patch │ │ ├── 0048-Use-pkg-config-for-FreeType2-detection.patch │ │ ├── 0049-Use-SOURCE_DATE_EPOCH-as-PHP_BUILD_DATE-if-available.patch │ │ ├── 0050-CVE-2019-9020.patch │ │ ├── 0051-CVE-2019-9021.patch │ │ ├── 0052-CVE-2019-9022-caa.patch │ │ ├── 0053-CVE-2019-9022.patch │ │ ├── 0054-CVE-2019-9023-1.patch │ │ ├── 0055-CVE-2019-9023-2.patch │ │ ├── 0056-CVE-2019-9023-3.patch │ │ ├── 0057-CVE-2019-9023-4.patch │ │ ├── 0058-CVE-2019-9024.patch │ │ ├── 0059-Fix-bug-77396-Null-Pointer-Dereference-in-phar_creat.patch │ │ ├── 0060-Fix-77431-SplFileInfo-__construct-accepts-NUL-bytes.patch │ │ ├── 0061-Fix-integer-overflows-on-32-bits.patch │ │ ├── 0062-Fix-bug-77540-Invalid-Read-on-exif_process_SOFn.patch │ │ ├── 0063-Fix-bug-77563-Uninitialized-read-in-exif_process_IFD.patch │ │ ├── 0064-Fix-test-error-message.patch │ │ ├── 0065-Fix-bug-77586-phar_tar_writeheaders_int-buffer-overf.patch │ │ ├── 0066-Fix-bug-77630-safer-rename-procedure.patch │ │ ├── 0067-Fix-test-portability.patch │ │ ├── 0068-Update-NEWS.patch │ │ ├── 0069-Use-pkg-config-for-ICU-as-the-old-icu-config-has-bee.patch │ │ ├── 0070-Fix-C-11-and-up-compatibility-for-zend_finite-and-mo.patch │ │ ├── 0071-ext-intl-Use-C-namespaces-for-ICU-63.1.patch │ │ ├── 0072-Fix-rl_completion_matches-compilation-with-newer-lib.patch │ │ ├── 0073-SQLite3-add-DEFENSIVE-config-for-SQLite-3.26.0-as-a-.patch │ │ ├── 0074-Fix-bug-77753-Heap-buffer-overflow-in-php_ifd_get32s.patch │ │ ├── 0075-Fixed-bug-77831-Heap-buffer-overflow-in-exif_iif_add.patch │ │ ├── 0076-Pointer-arithmetic-on-void-pointers-is-illegal.patch │ │ ├── 0077-Amend-C-11-for-intl-compilation-on-older-distributio.patch │ │ ├── 0078-Fix-tests-wrt.-internationalization.patch │ │ ├── 0079-Fix-bug-77950-Heap-buffer-overflow-in-_estrndup-via-.patch │ │ ├── 0080-Fix-77821-Potential-heap-corruption-in-TSendMail.patch │ │ ├── 0081-Fix-77973-Uninitialized-read-in-gdImageCreateFromXbm.patch │ │ ├── 0082-Fix-bug-78069-Out-of-bounds-read-in-iconv.c-_php_ico.patch │ │ ├── 0083-fix-test-output.patch │ │ ├── 0084-Fix-bug-77988-heap-buffer-overflow-on-php_jpg_get16.patch │ │ ├── 0085-Fix-bug-77967-Bypassing-open_basedir-restrictions-vi.patch │ │ ├── 0086-Fixes-3-Updated-tests-to-have-less-fails-due-to-the-.patch │ │ ├── 0087-Upgrade-to-SQLite-3.28.0.patch │ │ ├── 0088-Fix-bug-78222-heap-buffer-overflow-on-exif_scan_thum.patch │ │ ├── 0089-Fix-bug-78256-heap-buffer-overflow-on-exif_process_u.patch │ │ ├── 0090-Fix-77919-Potential-UAF-in-Phar-RSHUTDOWN.patch │ │ ├── 0091-CS.patch │ │ ├── 0092-Fix-CVE-2019-13224-don-t-allow-different-encodings-f.patch │ │ ├── 0093-Fix-75457-heap-use-after-free-in-php7.0.25.patch │ │ ├── 0094-NEWS.patch │ │ ├── 0095-relax-test-offset-may-be-different-on-various-system.patch │ │ ├── 0096-Fix-Opcache-test-fails-regarding-to-AppVeyor-image-u.patch │ │ ├── 0097-Fixed-test-on-32-bit-systems.patch │ │ ├── 0098-Remove-unstable-dns-tests.patch │ │ ├── 0099-Prevent-test-case-failure.patch │ │ ├── 0100-Fix-module-name-in-test-cases.patch │ │ ├── 0101-Fix-test-expectations-to-match-the-implementation.patch │ │ ├── 0102-Fix-bug-78599-env_path_info-underflow-can-lead-to-RC.patch │ │ ├── 0103-add-NEWS-entry.patch │ │ ├── 0104-Fix-78878-Buffer-underflow-in-bc_shift_addsub.patch │ │ ├── 0105-Fix-78862-link-silently-truncates-after-a-null-byte-.patch │ │ ├── 0106-Fix-78863-DirectoryIterator-class-silently-truncates.patch │ │ ├── 0107-Fix-bug-78793.patch │ │ ├── 0108-Fixed-bug-78910.patch │ │ ├── 0109-Fix-tests.patch │ │ ├── 0110-Fix-79099-OOB-read-in-php_strip_tags_ex.patch │ │ ├── 0111-Fix-bug-79037-global-buffer-overflow-in-mbfl_filt_co.patch │ │ ├── 0112-update-NEWS.patch │ │ ├── 0113-More-checks-for-php_strip_tags_ex.patch │ │ ├── 0114-Fix-77569-Write-Acess-Violation-in-DomImplementation.patch │ │ ├── 0115-Fix-typo-in-recent-bugfix.patch │ │ ├── 0116-Fix-bug-79221-Null-Pointer-Dereference-in-PHP-Sessio.patch │ │ ├── 0117-Fix-bug-79082-Files-added-to-tar-with-Phar-buildFrom.patch │ │ ├── 0118-NEWS.patch │ │ ├── 0119-renew-certs-for-openssl-tests.patch │ │ ├── 0120-Use-pkg-config-for-PHP_SETUP_LIBXML.patch │ │ ├── 0121-Fixed-bug-79282.patch │ │ ├── 0122-Fix-test.patch │ │ ├── 0123-fix-test.patch │ │ ├── 0124-Fix-bug-79329-get_headers-should-not-accept-0.patch │ │ ├── 0125-Update-NEWS.patch │ │ ├── 0126-Fix-bug-79330-make-all-execution-modes-consistent-in.patch │ │ ├── 0127-Fix-bug-79465-use-unsigneds-as-indexes.patch │ │ ├── 0128-NEWS.patch │ │ ├── 0129-Fix-bug-76895.patch │ │ ├── 0130-Fix-Bug-79296-ZipArchive-open-fails-on-empty-file.patch │ │ ├── 0131-Fix-78875-Long-filenames-cause-OOM-and-temp-files-ar.patch │ │ ├── 0132-Fix-78876-Long-variables-cause-OOM-and-temp-files-ar.patch │ │ ├── 0133-Update-NEWS.patch │ │ ├── 0134-Allow-numeric-UG-ID-in-FPM-listen.-owner-group.patch │ │ ├── 0135-Fix-79797-Use-of-freed-hash-key-in-the-phar_parse_zi.patch │ │ ├── 0136-Fix-79877-getimagesize-function-silently-truncates-a.patch │ │ ├── 0137-Do-not-decode-cookie-names-anymore.patch │ │ ├── 0138-NEWS.patch │ │ ├── 0139-Add-pkg-config-m4-files-to-phpize-script.patch │ │ ├── 0140-In-phpize-also-copy-config.guess-config.sub-ltmain.s.patch │ │ ├── 0141-Fix-77423-parse_url-will-deliver-a-wrong-host-to-use.patch │ │ ├── 0142-NEWS.patch │ │ ├── 0143-Alternative-fix-for-bug-77423.patch │ │ ├── 0144-Fix-bug-80672-Null-Dereference-in-SoapClient.patch │ │ ├── 0145-Fix-build.patch │ │ ├── 0146-Use-libenchant-2-when-available.patch │ │ ├── 0147-remove-deprecated-call-and-deprecate-function-to-be-.patch │ │ ├── 0150-Fix-80710-imap_mail_compose-header-injection.patch │ │ ├── 0151-Add-missing-NEWS-entry-for-80710.patch │ │ ├── 0153-Fixed-bug-73512-Fails-to-find-firebird-headers.patch │ │ ├── 0154-Fix-81122-SSRF-bypass-in-FILTER_VALIDATE_URL.patch │ │ ├── 0155-Fix-warning.patch │ │ ├── 0156-Fix-bug-76488-Memory-leak-when-fetching-a-BLOB-field.patch │ │ ├── 0157-Fix-76452-Crash-while-parsing-blob-data-in-firebird_.patch │ │ ├── 0158-Fix-76450-SIGSEGV-in-firebird_stmt_execute.patch │ │ ├── 0159-Fix-76449-SIGSEGV-in-firebird_handle_doer.patch │ │ ├── 0160-Fix-76448-Stack-buffer-overflow-in-firebird_info_cb.patch │ │ ├── 0161-Update-NEWS.patch │ │ ├── 0162-Fix-81211-Symlinks-are-followed-when-creating-PHAR-a.patch │ │ ├── 0163-Fix-test.patch │ │ ├── 0164-NEWS.patch │ │ ├── 0165-Fix-bug-81026-PHP-FPM-oob-R-W-in-root-process-leadin.patch │ │ ├── 0166-NEWS.patch │ │ ├── 0167-Fix-81420-ZipArchive-extractTo-extracts-outside-of-d.patch │ │ ├── 0168-NEWS.patch │ │ ├── 0169-Fix-79971-special-character-is-breaking-the-path-in-.patch │ │ ├── 0170-NEWS.patch │ │ ├── 0171-fix-new-tests.patch │ │ ├── 0172-Add-minimal-OpenSSL-3.0-patch.patch │ │ ├── 0173-Use-true-false-instead-of-TRUE-FALSE-in-intl.patch │ │ ├── 0174-Change-UBool-to-bool-for-equality-operators-in-ICU-7.patch │ │ ├── 0175-Fix-81720-Uninitialized-array-in-pg_query_params-lea.patch │ │ ├── 0176-Fix-bug-81719-mysqlnd-pdo-password-buffer-overflow.patch │ │ ├── 0177-NEWS.patch │ │ ├── 0178-Fix-bug-79589-ssl3_read_n-unexpected-eof-while-readi.patch │ │ ├── 0179-Fix-81727-Don-t-mangle-HTTP-variable-names-that-clas.patch │ │ ├── 0180-Fix-81726-phar-wrapper-DOS-when-using-quine-gzip-fil.patch │ │ ├── 0181-Fix-regression-introduced-by-fixing-bug-81726.patch │ │ ├── 0182-fix-NEWS.patch │ │ ├── 0183-Fix-81740-PDO-quote-may-return-unquoted-string.patch │ │ ├── 0184-NEWS.patch │ │ ├── 0185-crypt-Fix-validation-of-malformed-BCrypt-hashes.patch │ │ ├── 0186-crypt-Fix-possible-buffer-overread-in-php_crypt.patch │ │ ├── 0187-Fix-array-overrun-when-appending-slash-to-paths.patch │ │ ├── 0188-NEWS.patch │ │ ├── 0189-Fix-missing-randomness-check-and-insufficient-random.patch │ │ ├── 0190-Fix-GH-11382-add-missing-hash-header-for-bin2hex.patch │ │ └── series │ ├── 7.1 │ │ ├── 0001-libtool_fixes.patch │ │ ├── 0002-static_openssl.patch │ │ ├── 0003-debian_quirks.patch │ │ ├── 0004-libtool2.2.patch │ │ ├── 0005-we_WANT_libtool.patch │ │ ├── 0006-php-5.4.9-phpinfo.patch │ │ ├── 0007-extension_api.patch │ │ ├── 0008-no_apache_installed.patch │ │ ├── 0009-recode_is_shared.patch │ │ ├── 0010-proc_open.patch │ │ ├── 0011-php.ini_securitynotes.patch │ │ ├── 0012-php-5.4.7-libdb.patch │ │ ├── 0013-Add-support-for-use-of-the-system-timezone-database.patch │ │ ├── 0014-force_libmysqlclient_r.patch │ │ ├── 0015-strcmp_null-OnUpdateErrorLog.patch │ │ ├── 0016-dont-gitclean-in-build.patch │ │ ├── 0017-qdbm-is-usr_include_qdbm.patch │ │ ├── 0018-session_save_path.patch │ │ ├── 0019-php-fpm-man-section-and-cleanup.patch │ │ ├── 0020-fpm-config.patch │ │ ├── 0021-php-fpm-sysconfdir.patch │ │ ├── 0022-lp564920-fix-big-files.patch │ │ ├── 0023-temporary-path-fixes-for-multiarch.patch │ │ ├── 0024-hurd-noptrace.patch │ │ ├── 0025-php-5.3.9-mysqlnd.patch │ │ ├── 0026-php-5.3.9-gnusrc.patch │ │ ├── 0027-php-5.3.3-macropen.patch │ │ ├── 0028-php-5.2.4-norpath.patch │ │ ├── 0029-php-5.2.4-embed.patch │ │ ├── 0030-php-fpm-m68k.patch │ │ ├── 0031-expose_all_built_and_installed_apis.patch │ │ ├── 0032-Use-system-timezone.patch │ │ ├── 0033-zlib-largefile-function-renaming.patch │ │ ├── 0034-php-fpm-do-reload-on-SIGHUP.patch │ │ ├── 0035-php-5.4.8-ldap_r.patch │ │ ├── 0036-php-5.6.0-noNO.patch │ │ ├── 0037-php-5.6.0-oldpcre.patch │ │ ├── 0038-hack-phpdbg-to-explicitly-link-with-libedit.patch │ │ ├── 0039-Fix-ZEND_MM_ALIGNMENT-on-m64k.patch │ │ ├── 0040-Add-patch-to-install-php7-module-directly-to-APXS_LI.patch │ │ ├── 0041-Remove-W3C-validation-icon-to-not-expose-the-reader-.patch │ │ ├── 0042-Don-t-put-INSTALL_ROOT-into-phar.phar-exec-stanza.patch │ │ ├── 0043-XMLRPC-EPI-library-has-to-be-linked-as-lxmlrpc-epi.patch │ │ ├── 0044-Really-expand-libdir-datadir-into-EXPANDED_LIBDIR-DA.patch │ │ ├── 0045-Fix-ext-date-lib-parse_tz-PATH_MAX-HURD-FTBFS.patch │ │ ├── 0046-Fix-check-for-CURL-include-in-M-A-directory.patch │ │ ├── 0047-Use-pkg-config-for-FreeType2-detection.patch │ │ ├── 0048-ext-intl-Use-pkg-config-to-detect-icu.patch │ │ ├── 0049-Fix-rl_completion_matches-compilation-with-newer-lib.patch │ │ ├── 0050-PATCH-Fixed-bug-62596-add-getallheaders-apache_reque.patch │ │ ├── 0051-Amend-C-11-for-intl-compilation-on-older-distributio.patch │ │ ├── 0052-Fix-libmagic-buffer-overflow-issue-CVE-2019-18218.patch │ │ ├── 0053-Rewrite-README.md-for-7.1-branch.patch │ │ ├── 0054-Fix-78878-Buffer-underflow-in-bc_shift_addsub.patch │ │ ├── 0055-Fix-78862-link-silently-truncates-after-a-null-byte-.patch │ │ ├── 0056-Fix-78863-DirectoryIterator-class-silently-truncates.patch │ │ ├── 0057-Fix-bug-78793.patch │ │ ├── 0058-Fixed-bug-78910.patch │ │ ├── 0059-relax-tests.patch │ │ ├── 0060-Fix-79091-heap-use-after-free-in-session_create_id.patch │ │ ├── 0061-Fix-79099-OOB-read-in-php_strip_tags_ex.patch │ │ ├── 0062-Fix-bug-79037-global-buffer-overflow-in-mbfl_filt_co.patch │ │ ├── 0063-update-NEWS.patch │ │ ├── 0064-More-checks-for-php_strip_tags_ex.patch │ │ ├── 0065-Fix-77569-Write-Acess-Violation-in-DomImplementation.patch │ │ ├── 0066-Fix-typo-in-recent-bugfix.patch │ │ ├── 0067-Fix-bug-79221-Null-Pointer-Dereference-in-PHP-Sessio.patch │ │ ├── 0068-Fix-bug-79082-Files-added-to-tar-with-Phar-buildFrom.patch │ │ ├── 0069-Mark-bug76348.phpt-as-online-test.patch │ │ ├── 0070-NEWS.patch │ │ ├── 0071-renew-certs-for-openssl-tests.patch │ │ ├── 0072-Use-pkg-config-for-PHP_SETUP_LIBXML.patch │ │ ├── 0073-Fixed-bug-79282.patch │ │ ├── 0074-Fix-test.patch │ │ ├── 0075-fix-test.patch │ │ ├── 0076-Fix-bug-79329-get_headers-should-not-accept-0.patch │ │ ├── 0077-Update-NEWS.patch │ │ ├── 0078-Fix-bug-79330-make-all-execution-modes-consistent-in.patch │ │ ├── 0079-Fix-bug-79465-use-unsigneds-as-indexes.patch │ │ ├── 0080-NEWS.patch │ │ ├── 0081-Fix-bug-76895.patch │ │ ├── 0082-Fix-Bug-79296-ZipArchive-open-fails-on-empty-file.patch │ │ ├── 0083-Fix-78875-Long-filenames-cause-OOM-and-temp-files-ar.patch │ │ ├── 0084-Fix-78876-Long-variables-cause-OOM-and-temp-files-ar.patch │ │ ├── 0085-Update-NEWS.patch │ │ ├── 0086-Allow-numeric-UG-ID-in-FPM-listen.-owner-group.patch │ │ ├── 0087-Allow-fpm-tests-to-be-run-with-long-socket-path.patch │ │ ├── 0088-Skip-fpm-tests-not-designed-to-be-run-as-root.patch │ │ ├── 0089-Fix-79797-Use-of-freed-hash-key-in-the-phar_parse_zi.patch │ │ ├── 0090-Fix-79877-getimagesize-function-silently-truncates-a.patch │ │ ├── 0091-Fix-bug-79601-Wrong-ciphertext-tag-in-AES-CCM-encryp.patch │ │ ├── 0092-Fix-bug-78079-openssl_encrypt_ccm.phpt-fails-with-Op.patch │ │ ├── 0093-Do-not-decode-cookie-names-anymore.patch │ │ ├── 0094-NEWS.patch │ │ ├── 0095-Add-pkg-config-m4-files-to-phpize-script.patch │ │ ├── 0096-In-phpize-also-copy-config.guess-config.sub-ltmain.s.patch │ │ ├── 0097-Fix-77423-parse_url-will-deliver-a-wrong-host-to-use.patch │ │ ├── 0098-NEWS.patch │ │ ├── 0099-Alternative-fix-for-bug-77423.patch │ │ ├── 0100-Fix-bug-80672-Null-Dereference-in-SoapClient.patch │ │ ├── 0101-Fix-build.patch │ │ ├── 0102-Use-libenchant-2-when-available.patch │ │ ├── 0103-remove-deprecated-call-and-deprecate-function-to-be-.patch │ │ ├── 0106-Fix-80710-imap_mail_compose-header-injection.patch │ │ ├── 0107-Add-missing-NEWS-entry-for-80710.patch │ │ ├── 0109-Fix-81122-SSRF-bypass-in-FILTER_VALIDATE_URL.patch │ │ ├── 0110-Fix-warning.patch │ │ ├── 0111-Fix-76452-Crash-while-parsing-blob-data-in-firebird_.patch │ │ ├── 0112-Fix-76450-SIGSEGV-in-firebird_stmt_execute.patch │ │ ├── 0113-Fix-76449-SIGSEGV-in-firebird_handle_doer.patch │ │ ├── 0114-Fix-76448-Stack-buffer-overflow-in-firebird_info_cb.patch │ │ ├── 0115-Update-NEWS.patch │ │ ├── 0116-Fix-81211-Symlinks-are-followed-when-creating-PHAR-a.patch │ │ ├── 0117-Fix-test.patch │ │ ├── 0118-NEWS.patch │ │ ├── 0119-Fix-bug-81026-PHP-FPM-oob-R-W-in-root-process-leadin.patch │ │ ├── 0120-NEWS.patch │ │ ├── 0121-update-README.patch │ │ ├── 0122-Fix-81420-ZipArchive-extractTo-extracts-outside-of-d.patch │ │ ├── 0123-NEWS.patch │ │ ├── 0124-Fix-79971-special-character-is-breaking-the-path-in-.patch │ │ ├── 0125-NEWS.patch │ │ ├── 0126-fix-new-tests.patch │ │ ├── 0127-Add-minimal-OpenSSL-3.0-patch.patch │ │ ├── 0128-Use-true-false-instead-of-TRUE-FALSE-in-intl.patch │ │ ├── 0129-Change-UBool-to-bool-for-equality-operators-in-ICU-7.patch │ │ ├── 0130-Fix-81720-Uninitialized-array-in-pg_query_params-lea.patch │ │ ├── 0131-Fix-bug-81719-mysqlnd-pdo-password-buffer-overflow.patch │ │ ├── 0132-NEWS.patch │ │ ├── 0133-Fix-bug-79589-ssl3_read_n-unexpected-eof-while-readi.patch │ │ ├── 0134-Fix-81727-Don-t-mangle-HTTP-variable-names-that-clas.patch │ │ ├── 0135-Fix-81726-phar-wrapper-DOS-when-using-quine-gzip-fil.patch │ │ ├── 0136-Fix-regression-introduced-by-fixing-bug-81726.patch │ │ ├── 0137-fix-NEWS.patch │ │ ├── 0138-Fix-81740-PDO-quote-may-return-unquoted-string.patch │ │ ├── 0139-NEWS.patch │ │ ├── 0140-crypt-Fix-validation-of-malformed-BCrypt-hashes.patch │ │ ├── 0141-crypt-Fix-possible-buffer-overread-in-php_crypt.patch │ │ ├── 0142-Fix-array-overrun-when-appending-slash-to-paths.patch │ │ ├── 0143-NEWS.patch │ │ ├── 0144-Fix-missing-randomness-check-and-insufficient-random.patch │ │ ├── 0145-Fix-GH-11382-add-missing-hash-header-for-bin2hex.patch │ │ └── series │ ├── 7.2 │ │ ├── 0001-libtool_fixes.patch │ │ ├── 0002-static_openssl.patch │ │ ├── 0003-debian_quirks.patch │ │ ├── 0004-libtool2.2.patch │ │ ├── 0005-we_WANT_libtool.patch │ │ ├── 0006-php-5.4.9-phpinfo.patch │ │ ├── 0007-extension_api.patch │ │ ├── 0008-no_apache_installed.patch │ │ ├── 0009-recode_is_shared.patch │ │ ├── 0010-proc_open.patch │ │ ├── 0011-php.ini_securitynotes.patch │ │ ├── 0012-php-5.4.7-libdb.patch │ │ ├── 0013-Add-support-for-use-of-the-system-timezone-database.patch │ │ ├── 0014-force_libmysqlclient_r.patch │ │ ├── 0015-strcmp_null-OnUpdateErrorLog.patch │ │ ├── 0016-dont-gitclean-in-build.patch │ │ ├── 0017-qdbm-is-usr_include_qdbm.patch │ │ ├── 0018-session_save_path.patch │ │ ├── 0019-php-fpm-man-section-and-cleanup.patch │ │ ├── 0020-fpm-config.patch │ │ ├── 0021-php-fpm-sysconfdir.patch │ │ ├── 0022-lp564920-fix-big-files.patch │ │ ├── 0023-temporary-path-fixes-for-multiarch.patch │ │ ├── 0024-hurd-noptrace.patch │ │ ├── 0025-php-5.3.9-mysqlnd.patch │ │ ├── 0026-php-5.3.9-gnusrc.patch │ │ ├── 0027-php-5.3.3-macropen.patch │ │ ├── 0028-php-5.2.4-norpath.patch │ │ ├── 0029-php-5.2.4-embed.patch │ │ ├── 0030-php-fpm-m68k.patch │ │ ├── 0031-expose_all_built_and_installed_apis.patch │ │ ├── 0032-Use-system-timezone.patch │ │ ├── 0033-zlib-largefile-function-renaming.patch │ │ ├── 0034-php-fpm-do-reload-on-SIGHUP.patch │ │ ├── 0035-php-5.4.8-ldap_r.patch │ │ ├── 0036-php-5.4.9-fixheader.patch │ │ ├── 0037-php-5.6.0-noNO.patch │ │ ├── 0038-php-5.6.0-oldpcre.patch │ │ ├── 0039-hack-phpdbg-to-explicitly-link-with-libedit.patch │ │ ├── 0040-Fix-ZEND_MM_ALIGNMENT-on-m64k.patch │ │ ├── 0041-Add-patch-to-install-php7-module-directly-to-APXS_LI.patch │ │ ├── 0042-Remove-W3C-validation-icon-to-not-expose-the-reader-.patch │ │ ├── 0043-Don-t-put-INSTALL_ROOT-into-phar.phar-exec-stanza.patch │ │ ├── 0044-XMLRPC-EPI-library-has-to-be-linked-as-lxmlrpc-epi.patch │ │ ├── 0045-Really-expand-libdir-datadir-into-EXPANDED_LIBDIR-DA.patch │ │ ├── 0046-Fix-ext-date-lib-parse_tz-PATH_MAX-HURD-FTBFS.patch │ │ ├── 0047-Use-pkg-config-for-FreeType2-detection.patch │ │ ├── 0048-ext-intl-Use-pkg-config-to-detect-icu.patch │ │ ├── 0049-Fixed-bug-62596-add-getallheaders-apache_request_hea.patch │ │ ├── 0050-Amend-C-11-for-intl-compilation-on-older-distributio.patch │ │ ├── 0051-Use-pkg-config-for-PHP_SETUP_LIBXML.patch │ │ ├── 0052-Fix-Bug-79296-ZipArchive-open-fails-on-empty-file.patch │ │ ├── 0053-Allow-numeric-UG-ID-in-FPM-listen.-owner-group.patch │ │ ├── 0054-Allow-fpm-tests-to-be-run-with-long-socket-path.patch │ │ ├── 0055-Skip-fpm-tests-not-designed-to-be-run-as-root.patch │ │ ├── 0056-Add-pkg-config-m4-files-to-phpize-script.patch │ │ ├── 0057-In-phpize-also-copy-config.guess-config.sub-ltmain.s.patch │ │ ├── 0058-Fix-77423-parse_url-will-deliver-a-wrong-host-to-use.patch │ │ ├── 0059-NEWS.patch │ │ ├── 0060-Alternative-fix-for-bug-77423.patch │ │ ├── 0061-Fix-bug-80672-Null-Dereference-in-SoapClient.patch │ │ ├── 0062-Fix-build.patch │ │ ├── 0063-Use-libenchant-2-when-available.patch │ │ ├── 0064-remove-deprecated-call-and-deprecate-function-to-be-.patch │ │ ├── 0067-Fix-80710-imap_mail_compose-header-injection.patch │ │ ├── 0068-Add-missing-NEWS-entry-for-80710.patch │ │ ├── 0070-Fix-81122-SSRF-bypass-in-FILTER_VALIDATE_URL.patch │ │ ├── 0071-Fix-warning.patch │ │ ├── 0072-Fix-76452-Crash-while-parsing-blob-data-in-firebird_.patch │ │ ├── 0073-Fix-76450-SIGSEGV-in-firebird_stmt_execute.patch │ │ ├── 0074-Fix-76449-SIGSEGV-in-firebird_handle_doer.patch │ │ ├── 0075-Fix-76448-Stack-buffer-overflow-in-firebird_info_cb.patch │ │ ├── 0076-Update-NEWS.patch │ │ ├── 0077-Fix-81211-Symlinks-are-followed-when-creating-PHAR-a.patch │ │ ├── 0078-Fix-test.patch │ │ ├── 0079-NEWS.patch │ │ ├── 0080-Fix-bug-81026-PHP-FPM-oob-R-W-in-root-process-leadin.patch │ │ ├── 0081-NEWS.patch │ │ ├── 0082-update-README.patch │ │ ├── 0083-Fix-81420-ZipArchive-extractTo-extracts-outside-of-d.patch │ │ ├── 0084-NEWS.patch │ │ ├── 0085-Fix-79971-special-character-is-breaking-the-path-in-.patch │ │ ├── 0086-NEWS.patch │ │ ├── 0087-Add-minimal-OpenSSL-3.0-patch.patch │ │ ├── 0088-Use-true-false-instead-of-TRUE-FALSE-in-intl.patch │ │ ├── 0089-Change-UBool-to-bool-for-equality-operators-in-ICU-7.patch │ │ ├── 0090-Fix-81720-Uninitialized-array-in-pg_query_params-lea.patch │ │ ├── 0091-Fix-bug-81719-mysqlnd-pdo-password-buffer-overflow.patch │ │ ├── 0092-NEWS.patch │ │ ├── 0093-Fix-bug-79589-ssl3_read_n-unexpected-eof-while-readi.patch │ │ ├── 0094-Fix-81727-Don-t-mangle-HTTP-variable-names-that-clas.patch │ │ ├── 0095-Fix-81726-phar-wrapper-DOS-when-using-quine-gzip-fil.patch │ │ ├── 0096-Fix-regression-introduced-by-fixing-bug-81726.patch │ │ ├── 0097-fix-NEWS.patch │ │ ├── 0098-Fix-bug-81738-buffer-overflow-in-hash_update-on-long.patch │ │ ├── 0099-Fix-81740-PDO-quote-may-return-unquoted-string.patch │ │ ├── 0100-NEWS.patch │ │ ├── 0101-crypt-Fix-validation-of-malformed-BCrypt-hashes.patch │ │ ├── 0102-crypt-Fix-possible-buffer-overread-in-php_crypt.patch │ │ ├── 0103-Fix-array-overrun-when-appending-slash-to-paths.patch │ │ ├── 0104-NEWS.patch │ │ ├── 0105-Fix-repeated-warning-for-file-uploads-limit-exceedin.patch │ │ ├── 0106-Introduce-max_multipart_body_parts-INI.patch │ │ ├── 0107-NEWS.patch │ │ ├── 0108-fix-NEWS-not-FPM-specific.patch │ │ ├── 0109-Fix-missing-randomness-check-and-insufficient-random.patch │ │ ├── 0110-Fix-GH-11382-add-missing-hash-header-for-bin2hex.patch │ │ └── series │ ├── 7.3 │ │ ├── 0001-libtool_fixes.patch │ │ ├── 0002-static_openssl.patch │ │ ├── 0003-debian_quirks.patch │ │ ├── 0004-libtool2.2.patch │ │ ├── 0005-we_WANT_libtool.patch │ │ ├── 0006-php-5.4.9-phpinfo.patch │ │ ├── 0007-extension_api.patch │ │ ├── 0008-no_apache_installed.patch │ │ ├── 0009-recode_is_shared.patch │ │ ├── 0010-proc_open.patch │ │ ├── 0011-php.ini_securitynotes.patch │ │ ├── 0012-php-5.4.7-libdb.patch │ │ ├── 0013-Add-support-for-use-of-the-system-timezone-database.patch │ │ ├── 0014-strcmp_null-OnUpdateErrorLog.patch │ │ ├── 0015-dont-gitclean-in-build.patch │ │ ├── 0016-qdbm-is-usr_include_qdbm.patch │ │ ├── 0017-session_save_path.patch │ │ ├── 0018-php-fpm-man-section-and-cleanup.patch │ │ ├── 0019-fpm-config.patch │ │ ├── 0020-php-fpm-sysconfdir.patch │ │ ├── 0021-lp564920-fix-big-files.patch │ │ ├── 0022-temporary-path-fixes-for-multiarch.patch │ │ ├── 0023-hurd-noptrace.patch │ │ ├── 0024-php-5.3.9-mysqlnd.patch │ │ ├── 0025-php-5.3.9-gnusrc.patch │ │ ├── 0026-php-5.3.3-macropen.patch │ │ ├── 0027-php-5.2.4-norpath.patch │ │ ├── 0028-php-5.2.4-embed.patch │ │ ├── 0029-php-fpm-m68k.patch │ │ ├── 0030-expose_all_built_and_installed_apis.patch │ │ ├── 0031-Use-system-timezone.patch │ │ ├── 0032-zlib-largefile-function-renaming.patch │ │ ├── 0033-php-fpm-do-reload-on-SIGHUP.patch │ │ ├── 0034-php-5.4.8-ldap_r.patch │ │ ├── 0035-php-5.4.9-fixheader.patch │ │ ├── 0036-php-5.6.0-noNO.patch │ │ ├── 0037-php-5.6.0-oldpcre.patch │ │ ├── 0038-hack-phpdbg-to-explicitly-link-with-libedit.patch │ │ ├── 0039-Fix-ZEND_MM_ALIGNMENT-on-m64k.patch │ │ ├── 0040-Add-patch-to-install-php7-module-directly-to-APXS_LI.patch │ │ ├── 0041-Remove-W3C-validation-icon-to-not-expose-the-reader-.patch │ │ ├── 0042-Don-t-put-INSTALL_ROOT-into-phar.phar-exec-stanza.patch │ │ ├── 0043-XMLRPC-EPI-library-has-to-be-linked-as-lxmlrpc-epi.patch │ │ ├── 0044-Really-expand-libdir-datadir-into-EXPANDED_LIBDIR-DA.patch │ │ ├── 0045-Fix-ext-date-lib-parse_tz-PATH_MAX-HURD-FTBFS.patch │ │ ├── 0046-Use-pkg-config-for-FreeType2-detection.patch │ │ ├── 0047-Amend-C-11-for-intl-compilation-on-older-distributio.patch │ │ ├── 0048-Use-pkg-config-for-PHP_SETUP_LIBXML.patch │ │ ├── 0049-Allow-numeric-UG-ID-in-FPM-listen.-owner-group.patch │ │ ├── 0050-Allow-fpm-tests-to-be-run-with-long-socket-path.patch │ │ ├── 0051-Skip-fpm-tests-not-designed-to-be-run-as-root.patch │ │ ├── 0052-Add-pkg-config-m4-files-to-phpize-script.patch │ │ ├── 0053-In-phpize-also-copy-config.guess-config.sub-ltmain.s.patch │ │ ├── 0054-Use-libenchant-2-when-available.patch │ │ ├── 0055-remove-deprecated-call-and-deprecate-function-to-be-.patch │ │ ├── 0056-Don-t-use-hrtimers-on-GNU-Hurd.patch │ │ ├── 0060-Add-minimal-OpenSSL-3.0-patch.patch │ │ ├── 0061-Use-true-false-instead-of-TRUE-FALSE-in-intl.patch │ │ ├── 0062-Change-UBool-to-bool-for-equality-operators-in-ICU-7.patch │ │ ├── 0063-Fix-81720-Uninitialized-array-in-pg_query_params-lea.patch │ │ ├── 0064-Fix-bug-81719-mysqlnd-pdo-password-buffer-overflow.patch │ │ ├── 0065-NEWS.patch │ │ ├── 0066-ax_gcc_func_attribute-Revise-the-detection-of-unknow.patch │ │ ├── 0067-Fix-bug-79589-ssl3_read_n-unexpected-eof-while-readi.patch │ │ ├── 0068-Fix-81727-Don-t-mangle-HTTP-variable-names-that-clas.patch │ │ ├── 0069-Fix-81726-phar-wrapper-DOS-when-using-quine-gzip-fil.patch │ │ ├── 0070-Fix-regression-introduced-by-fixing-bug-81726.patch │ │ ├── 0071-fix-NEWS.patch │ │ ├── 0072-Fix-bug-81738-buffer-overflow-in-hash_update-on-long.patch │ │ ├── 0073-Fix-81740-PDO-quote-may-return-unquoted-string.patch │ │ ├── 0074-NEWS.patch │ │ ├── 0075-crypt-Fix-validation-of-malformed-BCrypt-hashes.patch │ │ ├── 0076-crypt-Fix-possible-buffer-overread-in-php_crypt.patch │ │ ├── 0077-Fix-array-overrun-when-appending-slash-to-paths.patch │ │ ├── 0078-NEWS.patch │ │ ├── 0079-Fix-repeated-warning-for-file-uploads-limit-exceedin.patch │ │ ├── 0080-Introduce-max_multipart_body_parts-INI.patch │ │ ├── 0081-NEWS.patch │ │ ├── 0082-fix-NEWS-not-FPM-specific.patch │ │ ├── 0083-Fix-missing-randomness-check-and-insufficient-random.patch │ │ ├── 0084-Fix-GH-11382-add-missing-hash-header-for-bin2hex.patch │ │ └── series │ ├── 7.4 │ │ ├── 0001-libtool_fixes.patch │ │ ├── 0002-debian_quirks.patch │ │ ├── 0003-php-5.4.9-phpinfo.patch │ │ ├── 0004-extension_api.patch │ │ ├── 0005-proc_open.patch │ │ ├── 0006-php.ini_securitynotes.patch │ │ ├── 0007-php-5.4.7-libdb.patch │ │ ├── 0008-Add-support-for-use-of-the-system-timezone-database.patch │ │ ├── 0009-strcmp_null-OnUpdateErrorLog.patch │ │ ├── 0010-qdbm-is-usr_include_qdbm.patch │ │ ├── 0011-session_save_path.patch │ │ ├── 0012-php-fpm-man-section-and-cleanup.patch │ │ ├── 0013-fpm-config.patch │ │ ├── 0014-php-fpm-sysconfdir.patch │ │ ├── 0015-lp564920-fix-big-files.patch │ │ ├── 0016-temporary-path-fixes-for-multiarch.patch │ │ ├── 0017-hurd-noptrace.patch │ │ ├── 0018-php-5.3.9-mysqlnd.patch │ │ ├── 0019-php-5.3.9-gnusrc.patch │ │ ├── 0020-php-5.3.3-macropen.patch │ │ ├── 0021-php-5.2.4-embed.patch │ │ ├── 0022-php-fpm-m68k.patch │ │ ├── 0023-expose_all_built_and_installed_apis.patch │ │ ├── 0024-Use-system-timezone.patch │ │ ├── 0025-zlib-largefile-function-renaming.patch │ │ ├── 0026-php-fpm-do-reload-on-SIGHUP.patch │ │ ├── 0027-php-5.4.8-ldap_r.patch │ │ ├── 0028-php-5.4.9-fixheader.patch │ │ ├── 0029-php-5.6.0-noNO.patch │ │ ├── 0030-php-5.6.0-oldpcre.patch │ │ ├── 0031-hack-phpdbg-to-explicitly-link-with-libedit.patch │ │ ├── 0032-Fix-ZEND_MM_ALIGNMENT-on-m64k.patch │ │ ├── 0033-Add-patch-to-install-php7-module-directly-to-APXS_LI.patch │ │ ├── 0034-Remove-W3C-validation-icon-to-not-expose-the-reader-.patch │ │ ├── 0035-Don-t-put-INSTALL_ROOT-into-phar.phar-exec-stanza.patch │ │ ├── 0036-XMLRPC-EPI-library-has-to-be-linked-as-lxmlrpc-epi.patch │ │ ├── 0037-Really-expand-libdir-datadir-into-EXPANDED_LIBDIR-DA.patch │ │ ├── 0038-Fix-ext-date-lib-parse_tz-PATH_MAX-HURD-FTBFS.patch │ │ ├── 0039-Amend-C-11-for-intl-compilation-on-older-distributio.patch │ │ ├── 0040-remove-deprecated-call-and-deprecate-function-to-be-.patch │ │ ├── 0041-Use-libenchant-2-when-available.patch │ │ ├── 0042-libtool2.2.patch │ │ ├── 0043-Include-all-libtool-files-from-phpize.m4.patch │ │ ├── 0044-In-phpize-also-copy-config.guess-config.sub-ltmain.s.patch │ │ ├── 0045-Don-t-use-hrtimers-on-GNU-Hurd.patch │ │ ├── 0049-Add-minimal-OpenSSL-3.0-patch.patch │ │ ├── 0050-Use-true-false-instead-of-TRUE-FALSE-in-intl.patch │ │ ├── 0051-ax_gcc_func_attribute-Revise-the-detection-of-unknow.patch │ │ ├── 0052-Fix-bug-79589-ssl3_read_n-unexpected-eof-while-readi.patch │ │ ├── 0053-adapted-README.md.patch │ │ ├── 0054-add-information-about-binary-distributions.patch │ │ ├── 0055-Fix-81740-PDO-quote-may-return-unquoted-string.patch │ │ ├── 0056-NEWS.patch │ │ ├── 0057-Fix-GH-10187-Segfault-in-stripslashes-with-arm64.patch │ │ ├── 0058-crypt-Fix-validation-of-malformed-BCrypt-hashes.patch │ │ ├── 0059-crypt-Fix-possible-buffer-overread-in-php_crypt.patch │ │ ├── 0060-Fix-array-overrun-when-appending-slash-to-paths.patch │ │ ├── 0061-NEWS.patch │ │ ├── 0062-Fix-repeated-warning-for-file-uploads-limit-exceedin.patch │ │ ├── 0063-Introduce-max_multipart_body_parts-INI.patch │ │ ├── 0064-NEWS.patch │ │ ├── 0065-fix-NEWS-not-FPM-specific.patch │ │ ├── 0066-Fix-missing-randomness-check-and-insufficient-random.patch │ │ ├── 0067-Fix-GH-11382-add-missing-hash-header-for-bin2hex.patch │ │ └── series │ ├── 8.0 │ │ ├── 0001-libtool_fixes.patch │ │ ├── 0002-debian_quirks.patch │ │ ├── 0003-php-5.4.9-phpinfo.patch │ │ ├── 0004-extension_api.patch │ │ ├── 0005-php.ini_securitynotes.patch │ │ ├── 0006-php-5.4.7-libdb.patch │ │ ├── 0007-Add-support-for-use-of-the-system-timezone-database.patch │ │ ├── 0008-strcmp_null-OnUpdateErrorLog.patch │ │ ├── 0009-qdbm-is-usr_include_qdbm.patch │ │ ├── 0010-session_save_path.patch │ │ ├── 0011-php-fpm-man-section-and-cleanup.patch │ │ ├── 0012-fpm-config.patch │ │ ├── 0013-php-fpm-sysconfdir.patch │ │ ├── 0014-lp564920-fix-big-files.patch │ │ ├── 0015-temporary-path-fixes-for-multiarch.patch │ │ ├── 0016-hurd-noptrace.patch │ │ ├── 0017-php-5.3.9-gnusrc.patch │ │ ├── 0018-php-5.3.3-macropen.patch │ │ ├── 0019-php-5.2.4-embed.patch │ │ ├── 0020-php-fpm-m68k.patch │ │ ├── 0021-expose_all_built_and_installed_apis.patch │ │ ├── 0022-Use-system-timezone.patch │ │ ├── 0023-php-fpm-do-reload-on-SIGHUP.patch │ │ ├── 0024-php-5.4.8-ldap_r.patch │ │ ├── 0025-php-5.4.9-fixheader.patch │ │ ├── 0026-php-5.6.0-noNO.patch │ │ ├── 0027-php-5.6.0-oldpcre.patch │ │ ├── 0028-hack-phpdbg-to-explicitly-link-with-libedit.patch │ │ ├── 0029-Fix-ZEND_MM_ALIGNMENT-on-m64k.patch │ │ ├── 0030-Remove-W3C-validation-icon-to-not-expose-the-reader-.patch │ │ ├── 0031-Don-t-put-INSTALL_ROOT-into-phar.phar-exec-stanza.patch │ │ ├── 0032-Really-expand-libdir-datadir-into-EXPANDED_LIBDIR-DA.patch │ │ ├── 0033-Fix-ext-date-lib-parse_tz-PATH_MAX-HURD-FTBFS.patch │ │ ├── 0034-Amend-C-11-for-intl-compilation-on-older-distributio.patch │ │ ├── 0035-Add-patch-to-install-php7-module-directly-to-APXS_LI.patch │ │ ├── 0036-libtool2.2.patch │ │ ├── 0037-Include-all-libtool-files-from-phpize.m4.patch │ │ ├── 0038-In-phpize-also-copy-config.guess-config.sub-ltmain.s.patch │ │ ├── 0039-Don-t-use-hrtimers-on-GNU-Hurd.patch │ │ ├── 0040-Add-minimal-OpenSSL-3.0-patch.patch │ │ ├── 0041-ax_gcc_func_attribute-Revise-the-detection-of-unknow.patch │ │ ├── 0042-Fix-bug-79589-ssl3_read_n-unexpected-eof-while-readi.patch │ │ ├── 0043-Fix-GH-10187-Segfault-in-stripslashes-with-arm64.patch │ │ └── series │ ├── 8.1 │ │ ├── 0001-libtool_fixes.patch │ │ ├── 0002-debian_quirks.patch │ │ ├── 0003-php-5.4.9-phpinfo.patch │ │ ├── 0004-extension_api.patch │ │ ├── 0005-php.ini_securitynotes.patch │ │ ├── 0006-php-5.4.7-libdb.patch │ │ ├── 0007-Add-support-for-use-of-the-system-timezone-database.patch │ │ ├── 0008-strcmp_null-OnUpdateErrorLog.patch │ │ ├── 0009-qdbm-is-usr_include_qdbm.patch │ │ ├── 0010-session_save_path.patch │ │ ├── 0011-php-fpm-man-section-and-cleanup.patch │ │ ├── 0012-fpm-config.patch │ │ ├── 0013-php-fpm-sysconfdir.patch │ │ ├── 0014-lp564920-fix-big-files.patch │ │ ├── 0015-temporary-path-fixes-for-multiarch.patch │ │ ├── 0016-hurd-noptrace.patch │ │ ├── 0017-php-5.3.9-gnusrc.patch │ │ ├── 0018-php-5.3.3-macropen.patch │ │ ├── 0019-php-5.2.4-embed.patch │ │ ├── 0020-php-fpm-m68k.patch │ │ ├── 0021-expose_all_built_and_installed_apis.patch │ │ ├── 0022-Use-system-timezone.patch │ │ ├── 0023-php-fpm-do-reload-on-SIGHUP.patch │ │ ├── 0024-php-5.4.8-ldap_r.patch │ │ ├── 0025-php-5.4.9-fixheader.patch │ │ ├── 0026-php-5.6.0-noNO.patch │ │ ├── 0027-php-5.6.0-oldpcre.patch │ │ ├── 0028-hack-phpdbg-to-explicitly-link-with-libedit.patch │ │ ├── 0029-Fix-ZEND_MM_ALIGNMENT-on-m64k.patch │ │ ├── 0030-Remove-W3C-validation-icon-to-not-expose-the-reader-.patch │ │ ├── 0031-Don-t-put-INSTALL_ROOT-into-phar.phar-exec-stanza.patch │ │ ├── 0032-Really-expand-libdir-datadir-into-EXPANDED_LIBDIR-DA.patch │ │ ├── 0033-Fix-ext-date-lib-parse_tz-PATH_MAX-HURD-FTBFS.patch │ │ ├── 0034-Amend-C-11-for-intl-compilation-on-older-distributio.patch │ │ ├── 0035-Add-patch-to-install-php7-module-directly-to-APXS_LI.patch │ │ ├── 0036-libtool2.2.patch │ │ ├── 0037-Include-all-libtool-files-from-phpize.m4.patch │ │ ├── 0038-In-phpize-also-copy-config.guess-config.sub-ltmain.s.patch │ │ ├── 0039-Don-t-use-hrtimers-on-GNU-Hurd.patch │ │ ├── 0040-Fail-the-build-when-the-dtrace-call-fails.patch │ │ ├── 0041-Override-result-of-AC_PROG_LN_S-to-fix-FTBFS-on-ppc6.patch │ │ ├── 0042-Update-gcc-func-attr-macro.patch.patch │ │ └── series │ ├── 8.2 │ │ ├── 0001-libtool_fixes.patch │ │ ├── 0002-debian_quirks.patch │ │ ├── 0003-php-5.4.9-phpinfo.patch │ │ ├── 0004-extension_api.patch │ │ ├── 0005-php.ini_securitynotes.patch │ │ ├── 0006-php-5.4.7-libdb.patch │ │ ├── 0007-Add-support-for-use-of-the-system-timezone-database.patch │ │ ├── 0008-strcmp_null-OnUpdateErrorLog.patch │ │ ├── 0009-qdbm-is-usr_include_qdbm.patch │ │ ├── 0010-session_save_path.patch │ │ ├── 0011-php-fpm-man-section-and-cleanup.patch │ │ ├── 0012-fpm-config.patch │ │ ├── 0013-php-fpm-sysconfdir.patch │ │ ├── 0014-lp564920-fix-big-files.patch │ │ ├── 0015-temporary-path-fixes-for-multiarch.patch │ │ ├── 0016-hurd-noptrace.patch │ │ ├── 0017-php-5.3.9-gnusrc.patch │ │ ├── 0018-php-5.3.3-macropen.patch │ │ ├── 0019-php-5.2.4-embed.patch │ │ ├── 0020-php-fpm-m68k.patch │ │ ├── 0021-expose_all_built_and_installed_apis.patch │ │ ├── 0022-Use-system-timezone.patch │ │ ├── 0023-php-fpm-do-reload-on-SIGHUP.patch │ │ ├── 0024-php-5.4.8-ldap_r.patch │ │ ├── 0025-php-5.4.9-fixheader.patch │ │ ├── 0026-php-5.6.0-noNO.patch │ │ ├── 0027-php-5.6.0-oldpcre.patch │ │ ├── 0028-hack-phpdbg-to-explicitly-link-with-libedit.patch │ │ ├── 0029-Fix-ZEND_MM_ALIGNMENT-on-m64k.patch │ │ ├── 0030-Remove-W3C-validation-icon-to-not-expose-the-reader-.patch │ │ ├── 0031-Don-t-put-INSTALL_ROOT-into-phar.phar-exec-stanza.patch │ │ ├── 0032-Really-expand-libdir-datadir-into-EXPANDED_LIBDIR-DA.patch │ │ ├── 0033-Fix-ext-date-lib-parse_tz-PATH_MAX-HURD-FTBFS.patch │ │ ├── 0034-Amend-C-11-for-intl-compilation-on-older-distributio.patch │ │ ├── 0035-Add-patch-to-install-php7-module-directly-to-APXS_LI.patch │ │ ├── 0036-libtool2.2.patch │ │ ├── 0037-Include-all-libtool-files-from-phpize.m4.patch │ │ ├── 0038-In-phpize-also-copy-config.guess-config.sub-ltmain.s.patch │ │ ├── 0039-Don-t-use-hrtimers-on-GNU-Hurd.patch │ │ ├── 0040-Fail-the-build-when-the-dtrace-call-fails.patch │ │ ├── 0041-Override-result-of-AC_PROG_LN_S-to-fix-FTBFS-on-ppc6.patch │ │ ├── 0042-Update-gcc-func-attr-macro.patch │ │ ├── 0043-scripts-php-.in-Explicitly-define-the-path-to-sed.patch │ │ ├── 0044-Remove-timestamps-from-phar.patch │ │ ├── 0045-Disable-garbage-collection-routine.patch │ │ └── series │ ├── 8.3 │ │ ├── 0001-libtool_fixes.patch │ │ ├── 0002-debian_quirks.patch │ │ ├── 0003-php-5.4.9-phpinfo.patch │ │ ├── 0004-extension_api.patch │ │ ├── 0005-php.ini_securitynotes.patch │ │ ├── 0006-php-5.4.7-libdb.patch │ │ ├── 0007-Add-support-for-use-of-the-system-timezone-database.patch │ │ ├── 0008-strcmp_null-OnUpdateErrorLog.patch │ │ ├── 0009-qdbm-is-usr_include_qdbm.patch │ │ ├── 0010-session_save_path.patch │ │ ├── 0011-php-fpm-man-section-and-cleanup.patch │ │ ├── 0012-fpm-config.patch │ │ ├── 0013-php-fpm-sysconfdir.patch │ │ ├── 0014-lp564920-fix-big-files.patch │ │ ├── 0015-temporary-path-fixes-for-multiarch.patch │ │ ├── 0016-hurd-noptrace.patch │ │ ├── 0017-php-5.3.9-gnusrc.patch │ │ ├── 0018-php-5.3.3-macropen.patch │ │ ├── 0019-php-5.2.4-embed.patch │ │ ├── 0020-php-fpm-m68k.patch │ │ ├── 0021-expose_all_built_and_installed_apis.patch │ │ ├── 0022-Use-system-timezone.patch │ │ ├── 0023-php-fpm-do-reload-on-SIGHUP.patch │ │ ├── 0024-php-5.4.8-ldap_r.patch │ │ ├── 0025-php-5.4.9-fixheader.patch │ │ ├── 0026-php-5.6.0-noNO.patch │ │ ├── 0027-php-5.6.0-oldpcre.patch │ │ ├── 0028-hack-phpdbg-to-explicitly-link-with-libedit.patch │ │ ├── 0029-Fix-ZEND_MM_ALIGNMENT-on-m64k.patch │ │ ├── 0030-Remove-W3C-validation-icon-to-not-expose-the-reader-.patch │ │ ├── 0031-Don-t-put-INSTALL_ROOT-into-phar.phar-exec-stanza.patch │ │ ├── 0032-Really-expand-libdir-datadir-into-EXPANDED_LIBDIR-DA.patch │ │ ├── 0033-Fix-ext-date-lib-parse_tz-PATH_MAX-HURD-FTBFS.patch │ │ ├── 0034-Amend-C-11-for-intl-compilation-on-older-distributio.patch │ │ ├── 0035-Add-patch-to-install-php7-module-directly-to-APXS_LI.patch │ │ ├── 0036-libtool2.2.patch │ │ ├── 0037-Include-all-libtool-files-from-phpize.m4.patch │ │ ├── 0038-In-phpize-also-copy-config.guess-config.sub-ltmain.s.patch │ │ ├── 0039-Don-t-use-hrtimers-on-GNU-Hurd.patch │ │ ├── 0040-Fail-the-build-when-the-dtrace-call-fails.patch │ │ ├── 0041-Override-result-of-AC_PROG_LN_S-to-fix-FTBFS-on-ppc6.patch │ │ ├── 0042-Update-gcc-func-attr-macro.patch │ │ ├── 0043-scripts-php-.in-Explicitly-define-the-path-to-sed.patch │ │ ├── 0044-Remove-timestamps-from-phar.patch │ │ ├── 0045-Disable-assembly-detection-in-Zend-arithmetic-with-g.patch │ │ ├── 0046-Disable-avx-detection-with-gcc-6.patch │ │ ├── 0047-Disable-garbage-collection-routine.patch │ │ └── series │ ├── 8.4 │ │ ├── 0001-libtool_fixes.patch │ │ ├── 0002-debian_quirks.patch │ │ ├── 0003-php-5.4.9-phpinfo.patch │ │ ├── 0004-extension_api.patch │ │ ├── 0005-php.ini_securitynotes.patch │ │ ├── 0006-php-5.4.7-libdb.patch │ │ ├── 0007-Add-support-for-use-of-the-system-timezone-database.patch │ │ ├── 0008-strcmp_null-OnUpdateErrorLog.patch │ │ ├── 0009-qdbm-is-usr_include_qdbm.patch │ │ ├── 0010-session_save_path.patch │ │ ├── 0011-php-fpm-man-section-and-cleanup.patch │ │ ├── 0012-fpm-config.patch │ │ ├── 0013-php-fpm-sysconfdir.patch │ │ ├── 0014-lp564920-fix-big-files.patch │ │ ├── 0015-temporary-path-fixes-for-multiarch.patch │ │ ├── 0016-hurd-noptrace.patch │ │ ├── 0017-php-5.3.9-gnusrc.patch │ │ ├── 0018-php-5.3.3-macropen.patch │ │ ├── 0019-php-5.2.4-embed.patch │ │ ├── 0020-php-fpm-m68k.patch │ │ ├── 0021-expose_all_built_and_installed_apis.patch │ │ ├── 0022-Use-system-timezone.patch │ │ ├── 0023-php-fpm-do-reload-on-SIGHUP.patch │ │ ├── 0024-php-5.4.8-ldap_r.patch │ │ ├── 0025-php-5.4.9-fixheader.patch │ │ ├── 0026-php-5.6.0-noNO.patch │ │ ├── 0027-php-5.6.0-oldpcre.patch │ │ ├── 0028-hack-phpdbg-to-explicitly-link-with-libedit.patch │ │ ├── 0029-Fix-ZEND_MM_ALIGNMENT-on-m64k.patch │ │ ├── 0031-Don-t-put-INSTALL_ROOT-into-phar.phar-exec-stanza.patch │ │ ├── 0032-Really-expand-libdir-datadir-into-EXPANDED_LIBDIR-DA.patch │ │ ├── 0033-Fix-ext-date-lib-parse_tz-PATH_MAX-HURD-FTBFS.patch │ │ ├── 0034-Amend-C-11-for-intl-compilation-on-older-distributio.patch │ │ ├── 0035-Add-patch-to-install-php7-module-directly-to-APXS_LI.patch │ │ ├── 0036-libtool2.2.patch │ │ ├── 0037-Include-all-libtool-files-from-phpize.m4.patch │ │ ├── 0038-In-phpize-also-copy-config.guess-config.sub-ltmain.s.patch │ │ ├── 0039-Don-t-use-hrtimers-on-GNU-Hurd.patch │ │ ├── 0040-Fail-the-build-when-the-dtrace-call-fails.patch │ │ ├── 0041-Override-result-of-AC_PROG_LN_S-to-fix-FTBFS-on-ppc6.patch │ │ ├── 0042-Update-gcc-func-attr-macro.patch │ │ ├── 0043-scripts-php-.in-Explicitly-define-the-path-to-sed.patch │ │ ├── 0044-Remove-timestamps-from-phar.patch │ │ └── series │ └── 8.5 │ │ ├── 0001-libtool_fixes.patch │ │ ├── 0002-debian_quirks.patch │ │ ├── 0003-php-5.4.9-phpinfo.patch │ │ ├── 0004-extension_api.patch │ │ ├── 0005-php.ini_securitynotes.patch │ │ ├── 0006-php-5.4.7-libdb.patch │ │ ├── 0007-Add-support-for-use-of-the-system-timezone-database.patch │ │ ├── 0008-strcmp_null-OnUpdateErrorLog.patch │ │ ├── 0009-qdbm-is-usr_include_qdbm.patch │ │ ├── 0010-session_save_path.patch │ │ ├── 0011-php-fpm-man-section-and-cleanup.patch │ │ ├── 0012-fpm-config.patch │ │ ├── 0013-php-fpm-sysconfdir.patch │ │ ├── 0014-lp564920-fix-big-files.patch │ │ ├── 0015-temporary-path-fixes-for-multiarch.patch │ │ ├── 0016-hurd-noptrace.patch │ │ ├── 0017-php-5.3.9-gnusrc.patch │ │ ├── 0018-php-5.3.3-macropen.patch │ │ ├── 0019-php-5.2.4-embed.patch │ │ ├── 0020-php-fpm-m68k.patch │ │ ├── 0021-expose_all_built_and_installed_apis.patch │ │ ├── 0022-Use-system-timezone.patch │ │ ├── 0023-php-fpm-do-reload-on-SIGHUP.patch │ │ ├── 0024-php-5.4.8-ldap_r.patch │ │ ├── 0025-php-5.4.9-fixheader.patch │ │ ├── 0026-php-5.6.0-noNO.patch │ │ ├── 0027-php-5.6.0-oldpcre.patch │ │ ├── 0028-hack-phpdbg-to-explicitly-link-with-libedit.patch │ │ ├── 0029-Fix-ZEND_MM_ALIGNMENT-on-m64k.patch │ │ ├── 0031-Don-t-put-INSTALL_ROOT-into-phar.phar-exec-stanza.patch │ │ ├── 0032-Really-expand-libdir-datadir-into-EXPANDED_LIBDIR-DA.patch │ │ ├── 0033-Fix-ext-date-lib-parse_tz-PATH_MAX-HURD-FTBFS.patch │ │ ├── 0034-Amend-C-11-for-intl-compilation-on-older-distributio.patch │ │ ├── 0035-Add-patch-to-install-php7-module-directly-to-APXS_LI.patch │ │ ├── 0036-libtool2.2.patch │ │ ├── 0037-Include-all-libtool-files-from-phpize.m4.patch │ │ ├── 0038-In-phpize-also-copy-config.guess-config.sub-ltmain.s.patch │ │ ├── 0039-Don-t-use-hrtimers-on-GNU-Hurd.patch │ │ ├── 0040-Fail-the-build-when-the-dtrace-call-fails.patch │ │ ├── 0041-Override-result-of-AC_PROG_LN_S-to-fix-FTBFS-on-ppc6.patch │ │ ├── 0042-Update-gcc-func-attr-macro.patch │ │ ├── 0043-scripts-php-.in-Explicitly-define-the-path-to-sed.patch │ │ ├── 0044-Remove-timestamps-from-phar.patch │ │ └── series ├── php-cgi.conf ├── php-fpm.conf ├── php-fpm.logrotate ├── php-fpm.service ├── php-fpm.tmpfile ├── php.conf └── php.load └── scripts ├── build.sh ├── build_partials ├── cleanup.sh ├── extensions.sh ├── package.sh ├── pear.sh ├── php_build.sh ├── sapi │ ├── apache2.sh │ ├── cgi.sh │ ├── cli.sh │ ├── embed.sh │ ├── fpm.sh │ └── phpdbg.sh ├── strip.sh └── version.sh ├── check-php-version.sh ├── get-matrix.sh ├── install-extension.sh ├── install-requirements.sh ├── install.sh ├── patch-extensions.sh ├── php-fpm-reopenlogs ├── php-fpm.init ├── release.sh ├── retry.sh ├── switch_jit ├── switch_sapi ├── test_extensions.sh ├── test_pecl.sh └── test_sapi.sh /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/* -------------------------------------------------------------------------------- /config/debian/changelog: -------------------------------------------------------------------------------- 1 | phpPHP_VERSION (PHP_VERSION) unstable; urgency=medium 2 | 3 | * Initial release 4 | 5 | -- Shivam Mathur Mon, 17 Oct 2022 09:12:04 +0530 6 | -------------------------------------------------------------------------------- /config/debian/compat: -------------------------------------------------------------------------------- 1 | 10 -------------------------------------------------------------------------------- /config/debian/control: -------------------------------------------------------------------------------- 1 | Source: phpPHP_VERSION 2 | Section: php 3 | Priority: optional 4 | Maintainer: Shivam Mathur 5 | Uploaders: Shivam Mathur , 6 | Build-Depends: debhelper (>= 10.0) 7 | Standards-Version: 4.5.0.0 8 | Homepage: http://www.php.net/ 9 | 10 | Package: phpPHP_VERSION 11 | Architecture: any 12 | Depends: ${misc:Depends}, 13 | ${shlibs:Depends} 14 | Description: server-side, HTML-embedded scripting language 15 | PHP is a widely-used general-purpose scripting language that is especially 16 | suited for Web development and can be embedded into HTML. 17 | . 18 | This package provides the PHP interpreter, as well as the CGI binary. 19 | . 20 | PHP is a recursive acronym for "PHP: Hypertext Preprocessor". -------------------------------------------------------------------------------- /config/default_apache: -------------------------------------------------------------------------------- 1 | 2 | ServerName localhost 3 | ServerAdmin webmaster@localhost 4 | DocumentRoot /var/www/html 5 | ErrorLog ${APACHE_LOG_DIR}/error.log 6 | CustomLog ${APACHE_LOG_DIR}/access.log combined 7 | -------------------------------------------------------------------------------- /config/default_nginx: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80 default_server; 3 | listen [::]:80 default_server; 4 | 5 | root /var/www/html; 6 | index index.html index.htm index.php; 7 | 8 | server_name localhost; 9 | 10 | location / { 11 | try_files $uri $uri/ =404; 12 | } 13 | 14 | location ~ \.php$ { 15 | include snippets/fastcgi-php.conf; 16 | fastcgi_pass unix:/run/php/phpPHP_VERSION-fpm.sock; 17 | } 18 | 19 | location ~ /\.ht { 20 | deny all; 21 | } 22 | } -------------------------------------------------------------------------------- /config/definitions/sapi/apache2: -------------------------------------------------------------------------------- 1 | --enable-cli 2 | --disable-cgi 3 | --disable-phpdbg 4 | -------------------------------------------------------------------------------- /config/definitions/sapi/cgi: -------------------------------------------------------------------------------- 1 | --enable-cli 2 | --enable-cgi 3 | --disable-phpdbg 4 | --enable-pcntl -------------------------------------------------------------------------------- /config/definitions/sapi/cli: -------------------------------------------------------------------------------- 1 | --enable-cli 2 | --disable-cgi 3 | --disable-phpdbg 4 | --enable-pcntl 5 | --with-libedit=shared,/usr 6 | 7 | -------------------------------------------------------------------------------- /config/definitions/sapi/embed: -------------------------------------------------------------------------------- 1 | --enable-embed=shared 2 | --enable-cli 3 | --disable-cgi 4 | --disable-phpdbg 5 | --without-mm 6 | --enable-pcntl 7 | -------------------------------------------------------------------------------- /config/definitions/sapi/fpm: -------------------------------------------------------------------------------- 1 | --enable-cli 2 | --enable-fpm 3 | --disable-cgi 4 | --disable-phpdbg 5 | --with-fpm-user=www-data 6 | --with-fpm-group=www-data 7 | --with-fpm-acl 8 | --with-fpm-apparmor 9 | --with-fpm-systemd 10 | -------------------------------------------------------------------------------- /config/definitions/sapi/phpdbg: -------------------------------------------------------------------------------- 1 | --enable-phpdbg 2 | --enable-cli 3 | --disable-cgi 4 | --with-libedit=shared,/usr 5 | --enable-pcntl 6 | -------------------------------------------------------------------------------- /config/definitions/zts/5.6: -------------------------------------------------------------------------------- 1 | --disable-zend-signals 2 | --enable-maintainer-zts 3 | -------------------------------------------------------------------------------- /config/definitions/zts/7.0: -------------------------------------------------------------------------------- 1 | --disable-zend-signals 2 | --enable-maintainer-zts 3 | -------------------------------------------------------------------------------- /config/definitions/zts/7.1: -------------------------------------------------------------------------------- 1 | --disable-zend-signals 2 | --enable-maintainer-zts 3 | -------------------------------------------------------------------------------- /config/definitions/zts/7.2: -------------------------------------------------------------------------------- 1 | --disable-zend-signals 2 | --enable-maintainer-zts 3 | -------------------------------------------------------------------------------- /config/definitions/zts/7.3: -------------------------------------------------------------------------------- 1 | --disable-zend-signals 2 | --enable-maintainer-zts 3 | -------------------------------------------------------------------------------- /config/definitions/zts/7.4: -------------------------------------------------------------------------------- 1 | --disable-zend-signals 2 | --enable-maintainer-zts 3 | -------------------------------------------------------------------------------- /config/definitions/zts/8.0: -------------------------------------------------------------------------------- 1 | --disable-zend-signals 2 | --enable-zts 3 | -------------------------------------------------------------------------------- /config/definitions/zts/8.1: -------------------------------------------------------------------------------- 1 | --disable-zend-signals 2 | --enable-zts 3 | -------------------------------------------------------------------------------- /config/definitions/zts/8.2: -------------------------------------------------------------------------------- 1 | --disable-zend-signals 2 | --enable-zts 3 | --enable-zend-max-execution-timers 4 | -------------------------------------------------------------------------------- /config/definitions/zts/8.3: -------------------------------------------------------------------------------- 1 | --disable-zend-signals 2 | --enable-zts 3 | -------------------------------------------------------------------------------- /config/definitions/zts/8.4: -------------------------------------------------------------------------------- 1 | --disable-zend-signals 2 | --enable-zts 3 | -------------------------------------------------------------------------------- /config/definitions/zts/8.5: -------------------------------------------------------------------------------- 1 | --disable-zend-signals 2 | --enable-zts 3 | -------------------------------------------------------------------------------- /config/extensions/5.6: -------------------------------------------------------------------------------- 1 | pecl amqp-1.11.0 2 | pecl apcu-4.0.11 3 | pecl igbinary-2.0.8 4 | pecl imagick 5 | git memcache https://github.com/websupport-sk/pecl-memcache 4.0.3 6 | pecl mongo 7 | pecl mongodb-1.7.5 8 | pecl msgpack-0.5.7 9 | pecl redis-4.3.0 10 | pecl xdebug-2.5.5 11 | pecl yaml-1.3.1 12 | pecl memcached-2.2.0 13 | git zmq https://github.com/zeromq/php-zmq master 14 | -------------------------------------------------------------------------------- /config/extensions/7.0: -------------------------------------------------------------------------------- 1 | pecl amqp-1.11.0 2 | pecl apcu 3 | pecl ast-1.0.16 4 | pecl ds-1.3.0 5 | pecl igbinary 6 | pecl imagick 7 | pecl memcache-4.0.5.2 8 | pecl mongodb-1.9.2 9 | pecl msgpack 10 | pecl redis-5.3.7 11 | pecl sqlsrv-5.9.0 12 | pecl pdo_sqlsrv-5.9.0 13 | pecl xdebug-2.9.0 14 | pecl yaml-2.0.4 15 | pecl memcached 16 | git zmq https://github.com/zeromq/php-zmq master 17 | -------------------------------------------------------------------------------- /config/extensions/7.1: -------------------------------------------------------------------------------- 1 | pecl amqp-1.11.0 2 | pecl apcu 3 | pecl ast-1.0.16 4 | pecl ds-1.3.0 5 | pecl igbinary 6 | pecl imagick 7 | pecl memcache-4.0.5.2 8 | pecl mongodb-1.11.1 9 | pecl msgpack 10 | pecl pcov 11 | pecl redis-5.3.7 12 | pecl sqlsrv-5.9.0 13 | pecl pdo_sqlsrv-5.9.0 14 | pecl xdebug-2.9.8 15 | pecl yaml 16 | pecl memcached 17 | git zmq https://github.com/zeromq/php-zmq master 18 | -------------------------------------------------------------------------------- /config/extensions/7.2: -------------------------------------------------------------------------------- 1 | pecl amqp-1.11.0 2 | pecl apcu 3 | pecl ast 4 | pecl ds-1.3.0 5 | pecl igbinary 6 | pecl imagick 7 | pecl memcache-4.0.5.2 8 | pecl mongodb-1.16.2 9 | pecl msgpack 10 | pecl pcov 11 | pecl redis-6.0.2 12 | pecl sqlsrv-5.9.0 13 | pecl pdo_sqlsrv-5.9.0 14 | pecl xdebug-3.1.5 15 | pecl yaml 16 | pecl memcached 17 | git zmq https://github.com/zeromq/php-zmq master 18 | -------------------------------------------------------------------------------- /config/extensions/7.3: -------------------------------------------------------------------------------- 1 | pecl amqp-1.11.0 2 | pecl apcu 3 | pecl ast 4 | pecl ds 5 | pecl igbinary 6 | pecl imagick 7 | pecl memcache-4.0.5.2 8 | pecl mongodb-1.16.2 9 | pecl msgpack 10 | pecl pcov 11 | pecl redis-6.0.2 12 | pecl sqlsrv-5.10.1 13 | pecl pdo_sqlsrv-5.10.1 14 | pecl xdebug-3.1.5 15 | pecl yaml 16 | pecl memcached 17 | git zmq https://github.com/zeromq/php-zmq master 18 | -------------------------------------------------------------------------------- /config/extensions/7.4: -------------------------------------------------------------------------------- 1 | pecl amqp 2 | pecl apcu 3 | pecl ast 4 | pecl ds 5 | pecl igbinary 6 | pecl imagick 7 | pecl memcache-4.0.5.2 8 | pecl mongodb 9 | pecl msgpack 10 | pecl pcov 11 | pecl redis 12 | pecl sqlsrv-5.10.1 13 | pecl pdo_sqlsrv-5.10.1 14 | pecl xdebug-3.1.5 15 | pecl yaml 16 | pecl memcached 17 | git zmq https://github.com/zeromq/php-zmq master 18 | -------------------------------------------------------------------------------- /config/extensions/8.0: -------------------------------------------------------------------------------- 1 | pecl amqp 2 | pecl apcu 3 | pecl ast 4 | pecl ds 5 | pecl igbinary 6 | pecl imagick 7 | pecl memcache 8 | pecl mongodb 9 | pecl msgpack 10 | pecl pcov 11 | pecl redis 12 | pecl sqlsrv-5.11.1 13 | pecl pdo_sqlsrv-5.11.1 14 | pecl xdebug 15 | pecl yaml 16 | git memcached https://github.com/php-memcached-dev/php-memcached master --enable-memcached --enable-memcached-igbinary --enable-memcached-json --enable-memcached-msgpack 17 | git zmq https://github.com/zeromq/php-zmq master 18 | -------------------------------------------------------------------------------- /config/extensions/8.1: -------------------------------------------------------------------------------- 1 | pecl amqp 2 | pecl apcu 3 | pecl ast 4 | pecl ds 5 | pecl igbinary 6 | pecl imagick 7 | pecl memcache 8 | pecl mongodb 9 | pecl msgpack 10 | pecl pcov 11 | pecl redis 12 | pecl sqlsrv 13 | pecl pdo_sqlsrv 14 | pecl xdebug 15 | pecl yaml 16 | git memcached https://github.com/php-memcached-dev/php-memcached master --enable-memcached --enable-memcached-igbinary --enable-memcached-json --enable-memcached-msgpack 17 | git zmq https://github.com/zeromq/php-zmq master 18 | -------------------------------------------------------------------------------- /config/extensions/8.2: -------------------------------------------------------------------------------- 1 | pecl amqp 2 | pecl apcu 3 | pecl ast 4 | pecl ds 5 | pecl igbinary 6 | pecl imagick 7 | pecl memcache 8 | pecl mongodb 9 | pecl msgpack 10 | pecl pcov 11 | pecl redis 12 | pecl sqlsrv 13 | pecl pdo_sqlsrv 14 | pecl yaml 15 | pecl xdebug 16 | git memcached https://github.com/php-memcached-dev/php-memcached master --enable-memcached --enable-memcached-igbinary --enable-memcached-json --enable-memcached-msgpack 17 | git zmq https://github.com/zeromq/php-zmq master 18 | -------------------------------------------------------------------------------- /config/extensions/8.3: -------------------------------------------------------------------------------- 1 | pecl amqp 2 | pecl apcu 3 | pecl ast 4 | pecl ds 5 | pecl igbinary 6 | pecl imagick 7 | pecl memcache 8 | pecl mongodb 9 | pecl msgpack 10 | pecl pcov 11 | pecl redis 12 | pecl sqlsrv 13 | pecl pdo_sqlsrv 14 | pecl yaml 15 | pecl xdebug 16 | git memcached https://github.com/php-memcached-dev/php-memcached master --enable-memcached --enable-memcached-igbinary --enable-memcached-json --enable-memcached-msgpack 17 | git zmq https://github.com/zeromq/php-zmq master 18 | -------------------------------------------------------------------------------- /config/extensions/8.4: -------------------------------------------------------------------------------- 1 | pecl amqp 2 | pecl apcu 3 | pecl ast 4 | pecl ds 5 | pecl igbinary 6 | pecl imagick 7 | pecl memcache 8 | pecl mongodb 9 | pecl msgpack 10 | pecl pcov 11 | pecl redis 12 | pecl sqlsrv 13 | pecl pdo_sqlsrv 14 | pecl xdebug 15 | pecl yaml 16 | git imap https://github.com/php/pecl-mail-imap main --with-imap=shared,/usr --with-kerberos --with-imap-ssl=/usr 17 | git memcached https://github.com/php-memcached-dev/php-memcached master --enable-memcached --enable-memcached-igbinary --enable-memcached-json --enable-memcached-msgpack 18 | git zmq https://github.com/zeromq/php-zmq master 19 | -------------------------------------------------------------------------------- /config/extensions/8.5: -------------------------------------------------------------------------------- 1 | pecl apcu 2 | pecl ast 3 | pecl ds 4 | pecl igbinary 5 | pecl imagick 6 | pecl memcache 7 | pecl mongodb 8 | pecl msgpack 9 | pecl pcov 10 | pecl redis 11 | pecl sqlsrv 12 | pecl pdo_sqlsrv 13 | pecl yaml 14 | git imap https://github.com/php/pecl-mail-imap main --with-imap=shared,/usr --with-kerberos --with-imap-ssl=/usr 15 | git xdebug https://github.com/xdebug/xdebug master 16 | git memcached https://github.com/php-memcached-dev/php-memcached master --enable-memcached --enable-memcached-igbinary --enable-memcached-json --enable-memcached-msgpack 17 | git zmq https://github.com/zeromq/php-zmq master 18 | -------------------------------------------------------------------------------- /config/modules/amqp.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php amqp module 2 | ; priority=20 3 | extension=amqp.so 4 | -------------------------------------------------------------------------------- /config/modules/apcu.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php apcu module 2 | ; priority=20 3 | extension=apcu.so 4 | -------------------------------------------------------------------------------- /config/modules/ast.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php ast module 2 | ; priority=20 3 | extension=ast.so 4 | -------------------------------------------------------------------------------- /config/modules/bcmath.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php bcmath module 2 | ; priority=20 3 | extension=bcmath.so 4 | -------------------------------------------------------------------------------- /config/modules/bz2.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php bz2 module 2 | ; priority=20 3 | extension=bz2.so 4 | -------------------------------------------------------------------------------- /config/modules/calendar.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=calendar.so 4 | -------------------------------------------------------------------------------- /config/modules/ctype.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=ctype.so 4 | -------------------------------------------------------------------------------- /config/modules/curl.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php curl module 2 | ; priority=20 3 | extension=curl.so 4 | -------------------------------------------------------------------------------- /config/modules/dba.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php dba module 2 | ; priority=20 3 | extension=dba.so 4 | -------------------------------------------------------------------------------- /config/modules/dom.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php xml module 2 | ; priority=20 3 | extension=dom.so 4 | -------------------------------------------------------------------------------- /config/modules/ds.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php ds module 2 | ; priority=30 3 | extension=ds.so 4 | -------------------------------------------------------------------------------- /config/modules/enchant.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php enchant module 2 | ; priority=20 3 | extension=enchant.so 4 | -------------------------------------------------------------------------------- /config/modules/exif.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=exif.so 4 | -------------------------------------------------------------------------------- /config/modules/ffi.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=ffi.so 4 | -------------------------------------------------------------------------------- /config/modules/fileinfo.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=fileinfo.so 4 | -------------------------------------------------------------------------------- /config/modules/ftp.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=ftp.so 4 | -------------------------------------------------------------------------------- /config/modules/gd.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php gd module 2 | ; priority=20 3 | extension=gd.so 4 | -------------------------------------------------------------------------------- /config/modules/gettext.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=gettext.so 4 | -------------------------------------------------------------------------------- /config/modules/gmp.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php gmp module 2 | ; priority=20 3 | extension=gmp.so 4 | -------------------------------------------------------------------------------- /config/modules/iconv.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=iconv.so 4 | -------------------------------------------------------------------------------- /config/modules/igbinary.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php igbinary module 2 | ; priority=20 3 | 4 | ; Load igbinary extension 5 | extension=igbinary.so 6 | 7 | ; Use igbinary as session serializer 8 | ;session.serialize_handler=igbinary 9 | 10 | ; Enable or disable compacting of duplicate strings 11 | ; The default is On. 12 | igbinary.compact_strings=On 13 | 14 | ; Use igbinary as serializer in APC cache (3.1.7 or later) 15 | ;apc.serializer=igbinary 16 | -------------------------------------------------------------------------------- /config/modules/imagick.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php imagick module 2 | ; priority=20 3 | extension=imagick.so 4 | -------------------------------------------------------------------------------- /config/modules/imap.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php imap module 2 | ; priority=20 3 | extension=imap.so 4 | -------------------------------------------------------------------------------- /config/modules/intl.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php intl module 2 | ; priority=20 3 | extension=intl.so 4 | -------------------------------------------------------------------------------- /config/modules/json.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php json module 2 | ; priority=20 3 | extension=json.so 4 | -------------------------------------------------------------------------------- /config/modules/ldap.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php ldap module 2 | ; priority=20 3 | extension=ldap.so 4 | -------------------------------------------------------------------------------- /config/modules/mbstring.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php mbstring module 2 | ; priority=20 3 | extension=mbstring.so 4 | -------------------------------------------------------------------------------- /config/modules/memcached.ini: -------------------------------------------------------------------------------- 1 | ; priority=25 2 | extension=memcached.so 3 | ; You need to install php-igbinary package to use igbinary serializer 4 | ; and php-msgpack to use msgpack serializer 5 | memcached.serializer=php 6 | -------------------------------------------------------------------------------- /config/modules/mongo.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php mongo module 2 | ; priority=20 3 | extension=mongo.so 4 | -------------------------------------------------------------------------------- /config/modules/mongodb.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php mongodb module 2 | ; priority=20 3 | extension=mongodb.so 4 | -------------------------------------------------------------------------------- /config/modules/msgpack.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php msgpack module 2 | ; priority=20 3 | extension=msgpack.so 4 | -------------------------------------------------------------------------------- /config/modules/mysqli.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php mysql module 2 | ; priority=20 3 | extension=mysqli.so 4 | -------------------------------------------------------------------------------- /config/modules/mysqlnd.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php mysql module 2 | ; priority=10 3 | extension=mysqlnd.so 4 | -------------------------------------------------------------------------------- /config/modules/odbc.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php odbc module 2 | ; priority=20 3 | extension=odbc.so 4 | -------------------------------------------------------------------------------- /config/modules/opcache.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php opcache module 2 | ; priority=10 3 | zend_extension=opcache.so 4 | -------------------------------------------------------------------------------- /config/modules/pcov.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php pcov module 2 | ; priority=20 3 | 4 | extension=pcov.so 5 | -------------------------------------------------------------------------------- /config/modules/pdo.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=10 3 | extension=pdo.so 4 | -------------------------------------------------------------------------------- /config/modules/pdo_dblib.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php sybase module 2 | ; priority=20 3 | extension=pdo_dblib.so 4 | -------------------------------------------------------------------------------- /config/modules/pdo_firebird.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php interbase module 2 | ; priority=20 3 | extension=pdo_firebird.so 4 | -------------------------------------------------------------------------------- /config/modules/pdo_mysql.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php mysql module 2 | ; priority=20 3 | extension=pdo_mysql.so 4 | -------------------------------------------------------------------------------- /config/modules/pdo_odbc.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php odbc module 2 | ; priority=20 3 | extension=pdo_odbc.so 4 | -------------------------------------------------------------------------------- /config/modules/pdo_pgsql.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php pgsql module 2 | ; priority=20 3 | extension=pdo_pgsql.so 4 | -------------------------------------------------------------------------------- /config/modules/pdo_sqlite.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php sqlite3 module 2 | ; priority=20 3 | extension=pdo_sqlite.so 4 | -------------------------------------------------------------------------------- /config/modules/pdo_sqlsrv.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php pdo_sqlsrv module 2 | ; priority=20 3 | extension=pdo_sqlsrv.so 4 | -------------------------------------------------------------------------------- /config/modules/pgsql.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php pgsql module 2 | ; priority=20 3 | extension=pgsql.so 4 | -------------------------------------------------------------------------------- /config/modules/phar.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=phar.so 4 | -------------------------------------------------------------------------------- /config/modules/posix.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=posix.so 4 | -------------------------------------------------------------------------------- /config/modules/pspell.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php pspell module 2 | ; priority=20 3 | extension=pspell.so 4 | -------------------------------------------------------------------------------- /config/modules/readline.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php readline module 2 | ; priority=20 3 | extension=readline.so 4 | -------------------------------------------------------------------------------- /config/modules/redis.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php redis module 2 | ; priority=25 3 | extension=redis.so 4 | -------------------------------------------------------------------------------- /config/modules/shmop.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=shmop.so 4 | -------------------------------------------------------------------------------- /config/modules/simplexml.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php xml module 2 | ; priority=20 3 | extension=simplexml.so 4 | -------------------------------------------------------------------------------- /config/modules/snmp.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php snmp module 2 | ; priority=20 3 | extension=snmp.so 4 | -------------------------------------------------------------------------------- /config/modules/soap.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php soap module 2 | ; priority=20 3 | extension=soap.so 4 | -------------------------------------------------------------------------------- /config/modules/sockets.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=sockets.so 4 | -------------------------------------------------------------------------------- /config/modules/sqlite3.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php sqlite3 module 2 | ; priority=20 3 | extension=sqlite3.so 4 | -------------------------------------------------------------------------------- /config/modules/sqlsrv.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php sqlsrv module 2 | ; priority=20 3 | extension=sqlsrv.so 4 | -------------------------------------------------------------------------------- /config/modules/swoole.ini: -------------------------------------------------------------------------------- 1 | ; priority=25 2 | extension=swoole.so 3 | -------------------------------------------------------------------------------- /config/modules/sysvmsg.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=sysvmsg.so 4 | -------------------------------------------------------------------------------- /config/modules/sysvsem.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=sysvsem.so 4 | -------------------------------------------------------------------------------- /config/modules/sysvshm.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=sysvshm.so 4 | -------------------------------------------------------------------------------- /config/modules/tidy.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php tidy module 2 | ; priority=20 3 | extension=tidy.so 4 | -------------------------------------------------------------------------------- /config/modules/tokenizer.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=tokenizer.so 4 | -------------------------------------------------------------------------------- /config/modules/xdebug.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php xdebug module 2 | ; priority=20 3 | zend_extension=xdebug.so 4 | -------------------------------------------------------------------------------- /config/modules/xml.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php xml module 2 | ; priority=15 3 | extension=xml.so 4 | -------------------------------------------------------------------------------- /config/modules/xmlreader.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php xml module 2 | ; priority=20 3 | extension=xmlreader.so 4 | -------------------------------------------------------------------------------- /config/modules/xmlrpc.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php xml module 2 | ; priority=20 3 | extension=xmlrpc.so 4 | -------------------------------------------------------------------------------- /config/modules/xmlwriter.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php xml module 2 | ; priority=20 3 | extension=xmlwriter.so 4 | -------------------------------------------------------------------------------- /config/modules/xsl.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php xml module 2 | ; priority=20 3 | extension=xsl.so 4 | -------------------------------------------------------------------------------- /config/modules/yaml.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php yaml module 2 | ; priority=20 3 | extension=yaml.so 4 | -------------------------------------------------------------------------------- /config/modules/zip.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php zip module 2 | ; priority=20 3 | extension=zip.so 4 | -------------------------------------------------------------------------------- /config/modules/zmq.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php zmq module 2 | ; priority=20 3 | extension=zmq.so 4 | -------------------------------------------------------------------------------- /config/os_releases.csv: -------------------------------------------------------------------------------- 1 | 8,jessie 2 | 9,stretch 3 | 10,buster 4 | 11,bullseye 5 | 12,bookworm 6 | 16.04 LTS,xenial 7 | 16.10,yakkety 8 | 17.04,zesty 9 | 17.10,artful 10 | 18.04 LTS,bionic 11 | 18.10,cosmic 12 | 19.04,disco 13 | 19.10,eoan 14 | 20.04 LTS,focal 15 | 20.10,groovy 16 | 21.04,hirsute 17 | 21.10,impish 18 | -------------------------------------------------------------------------------- /config/patches/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/.gitkeep -------------------------------------------------------------------------------- /config/patches/5.6/0002-static_openssl.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:51 +0200 3 | Subject: static_openssl 4 | 5 | --- 6 | acinclude.m4 | 4 +--- 7 | 1 file changed, 1 insertion(+), 3 deletions(-) 8 | 9 | diff --git a/acinclude.m4 b/acinclude.m4 10 | index 3db7438..f36d0b1 100644 11 | --- a/acinclude.m4 12 | +++ b/acinclude.m4 13 | @@ -2392,9 +2392,7 @@ AC_DEFUN([PHP_SETUP_OPENSSL],[ 14 | 15 | PHP_ADD_INCLUDE($OPENSSL_INCDIR) 16 | 17 | - PHP_CHECK_LIBRARY(crypto, CRYPTO_free, [ 18 | - PHP_ADD_LIBRARY(crypto,,$1) 19 | - ],[ 20 | + PHP_CHECK_LIBRARY(crypto, CRYPTO_free, [:],[ 21 | AC_MSG_ERROR([libcrypto not found!]) 22 | ],[ 23 | -L$OPENSSL_LIBDIR 24 | -------------------------------------------------------------------------------- /config/patches/5.6/0005-we_WANT_libtool.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:51 +0200 3 | Subject: we_WANT_libtool 4 | 5 | --- 6 | build/build2.mk | 3 ++- 7 | 1 file changed, 2 insertions(+), 1 deletion(-) 8 | 9 | diff --git a/build/build2.mk b/build/build2.mk 10 | index caaa53f..03671cf 100644 11 | --- a/build/build2.mk 12 | +++ b/build/build2.mk 13 | @@ -46,7 +46,8 @@ $(TOUCH_FILES): 14 | 15 | aclocal.m4: configure.in acinclude.m4 16 | @echo rebuilding $@ 17 | - cat acinclude.m4 ./build/libtool.m4 > $@ 18 | + libtoolize --copy --install --automake --force 19 | + aclocal 20 | 21 | configure: aclocal.m4 configure.in $(config_m4_files) 22 | @echo rebuilding $@ 23 | -------------------------------------------------------------------------------- /config/patches/5.6/0009-recode_is_shared.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:51 +0200 3 | Subject: recode_is_shared 4 | 5 | --- 6 | ext/recode/config9.m4 | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | diff --git a/ext/recode/config9.m4 b/ext/recode/config9.m4 10 | index 66df50e..f0a98ca 100644 11 | --- a/ext/recode/config9.m4 12 | +++ b/ext/recode/config9.m4 13 | @@ -13,6 +13,6 @@ if test "$PHP_RECODE" != "no"; then 14 | fi 15 | 16 | if test -n "$recode_conflict"; then 17 | - AC_MSG_ERROR([recode extension can not be configured together with:$recode_conflict]) 18 | + AC_MSG_WARN([recode extension can not be used together with:$recode_conflict]) 19 | fi 20 | fi 21 | -------------------------------------------------------------------------------- /config/patches/5.6/0010-proc_open.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:52 +0200 3 | Subject: proc_open 4 | 5 | --- 6 | ext/standard/proc_open.c | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c 10 | index ac4f5b7..1e99293 100644 11 | --- a/ext/standard/proc_open.c 12 | +++ b/ext/standard/proc_open.c 13 | @@ -62,7 +62,7 @@ 14 | * */ 15 | #ifdef PHP_CAN_SUPPORT_PROC_OPEN 16 | 17 | -#if 0 && HAVE_PTSNAME && HAVE_GRANTPT && HAVE_UNLOCKPT && HAVE_SYS_IOCTL_H && HAVE_TERMIOS_H 18 | +#if HAVE_PTSNAME && HAVE_GRANTPT && HAVE_UNLOCKPT && HAVE_SYS_IOCTL_H && HAVE_TERMIOS_H 19 | # include 20 | # include 21 | # define PHP_CAN_DO_PTS 1 22 | -------------------------------------------------------------------------------- /config/patches/5.6/0015-strcmp_null-OnUpdateErrorLog.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: strcmp_null-OnUpdateErrorLog 4 | 5 | --- 6 | tests/func/null-new_val.phpt | 10 ++++++++++ 7 | 1 file changed, 10 insertions(+) 8 | create mode 100644 tests/func/null-new_val.phpt 9 | 10 | diff --git a/tests/func/null-new_val.phpt b/tests/func/null-new_val.phpt 11 | new file mode 100644 12 | index 0000000..412da39 13 | --- /dev/null 14 | +++ b/tests/func/null-new_val.phpt 15 | @@ -0,0 +1,10 @@ 16 | +--TEST-- 17 | +ini_restore strcmp NULL new_val 18 | +--FILE-- 19 | + 25 | +--EXPECT-- 26 | -------------------------------------------------------------------------------- /config/patches/5.6/0016-dont-gitclean-in-build.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: dont-gitclean-in-build 4 | 5 | --- 6 | build/build.mk | 1 - 7 | 1 file changed, 1 deletion(-) 8 | 9 | diff --git a/build/build.mk b/build/build.mk 10 | index 3eb2616..98e55ea 100644 11 | --- a/build/build.mk 12 | +++ b/build/build.mk 13 | @@ -63,6 +63,5 @@ gitclean-work: 14 | @if (test ! -f '.git/info/exclude' || grep -s "git-ls-files" .git/info/exclude); then \ 15 | (echo "Rebuild .git/info/exclude" && echo '*.o' > .git/info/exclude && git svn propget svn:ignore | grep -v config.nice >> .git/info/exclude); \ 16 | fi; \ 17 | - git clean -X -f -d; 18 | 19 | .PHONY: $(ALWAYS) snapshot 20 | -------------------------------------------------------------------------------- /config/patches/5.6/0017-qdbm-is-usr_include_qdbm.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: qdbm-is-usr_include_qdbm 4 | 5 | --- 6 | ext/dba/config.m4 | 4 ++++ 7 | 1 file changed, 4 insertions(+) 8 | 9 | diff --git a/ext/dba/config.m4 b/ext/dba/config.m4 10 | index 1e8d51b..d2e6fd9 100644 11 | --- a/ext/dba/config.m4 12 | +++ b/ext/dba/config.m4 13 | @@ -113,6 +113,10 @@ if test "$PHP_QDBM" != "no"; then 14 | THIS_PREFIX=$i 15 | THIS_INCLUDE=$i/include/depot.h 16 | break 17 | + elif test -f "$i/include/qdbm/depot.h"; then 18 | + THIS_PREFIX=$i 19 | + THIS_INCLUDE=$i/include/qdbm/depot.h 20 | + break 21 | fi 22 | done 23 | 24 | -------------------------------------------------------------------------------- /config/patches/5.6/0021-php-fpm-sysconfdir.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:54 +0200 3 | Subject: php-fpm-sysconfdir 4 | 5 | --- 6 | sapi/fpm/fpm/fpm_conf.c | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | diff --git a/sapi/fpm/fpm/fpm_conf.c b/sapi/fpm/fpm/fpm_conf.c 10 | index d77bf06..712493f 100644 11 | --- a/sapi/fpm/fpm/fpm_conf.c 12 | +++ b/sapi/fpm/fpm/fpm_conf.c 13 | @@ -1664,7 +1664,7 @@ int fpm_conf_init_main(int test_conf, int force_daemon) /* {{{ */ 14 | char *tmp; 15 | 16 | if (fpm_globals.prefix == NULL) { 17 | - spprintf(&tmp, 0, "%s/php-fpm.conf", PHP_SYSCONFDIR); 18 | + spprintf(&tmp, 0, "%s/php/%d.%d/fpm/php-fpm.conf", PHP_SYSCONFDIR, PHP_MAJOR_VERSION, PHP_MINOR_VERSION); 19 | } else { 20 | spprintf(&tmp, 0, "%s/etc/php-fpm.conf", fpm_globals.prefix); 21 | } 22 | -------------------------------------------------------------------------------- /config/patches/5.6/0024-hurd-noptrace.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:54 +0200 3 | Subject: hurd-noptrace 4 | 5 | --- 6 | sapi/fpm/config.m4 | 5 +++++ 7 | 1 file changed, 5 insertions(+) 8 | 9 | diff --git a/sapi/fpm/config.m4 b/sapi/fpm/config.m4 10 | index 7bfa50b..5f124d5 100644 11 | --- a/sapi/fpm/config.m4 12 | +++ b/sapi/fpm/config.m4 13 | @@ -147,6 +147,11 @@ AC_DEFUN([AC_FPM_TRACE], 14 | pid_t child; 15 | int status; 16 | 17 | + /* broken ptrace on Hurd, avoid hanging */ 18 | + #ifdef __GNU__ 19 | + return 10; 20 | + #endif 21 | + 22 | if ( (child = fork()) ) { /* parent */ 23 | int ret = 0; 24 | 25 | -------------------------------------------------------------------------------- /config/patches/5.6/0053-Adjust-tidy-extension-for-tidy-html5.patch: -------------------------------------------------------------------------------- 1 | From: =?utf-8?b?T25kxZllaiBTdXLDvQ==?= 2 | Date: Fri, 24 Jun 2016 08:21:28 +0200 3 | Subject: Adjust tidy extension for tidy-html5 4 | 5 | --- 6 | ext/tidy/tidy.c | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | diff --git a/ext/tidy/tidy.c b/ext/tidy/tidy.c 10 | index 57f050b..4af30f2 100644 11 | --- a/ext/tidy/tidy.c 12 | +++ b/ext/tidy/tidy.c 13 | @@ -31,7 +31,7 @@ 14 | #include "ext/standard/info.h" 15 | 16 | #include "tidy.h" 17 | -#include "buffio.h" 18 | +#include "tidybuffio.h" 19 | 20 | /* compatibility with older versions of libtidy */ 21 | #ifndef TIDY_CALL 22 | -------------------------------------------------------------------------------- /config/patches/5.6/0062-Fix-bug-77540-Invalid-Read-on-exif_process_SOFn.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/5.6/0062-Fix-bug-77540-Invalid-Read-on-exif_process_SOFn.patch -------------------------------------------------------------------------------- /config/patches/5.6/0063-Fix-bug-77563-Uninitialized-read-in-exif_process_IFD.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/5.6/0063-Fix-bug-77563-Uninitialized-read-in-exif_process_IFD.patch -------------------------------------------------------------------------------- /config/patches/5.6/0066-Fix-test.patch: -------------------------------------------------------------------------------- 1 | From: Anatol Belski 2 | Date: Wed, 6 Mar 2019 12:48:42 +0100 3 | Subject: Fix test 4 | 5 | --- 6 | ext/phar/tests/bug71488.phpt | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | diff --git a/ext/phar/tests/bug71488.phpt b/ext/phar/tests/bug71488.phpt 10 | index 65bd7b2..8468ce2 100644 11 | --- a/ext/phar/tests/bug71488.phpt 12 | +++ b/ext/phar/tests/bug71488.phpt 13 | @@ -14,5 +14,5 @@ DONE 14 | @unlink(__DIR__."/bug71488.test"); 15 | ?> 16 | --EXPECTF-- 17 | -Fatal error: Uncaught BadMethodCallException: tar-based phar "%s/bug71488.test" cannot be created, link "%s" is too long for format in %sbug71488.php:%d 18 | +Fatal error: Uncaught exception 'BadMethodCallException' with message 'tar-based phar "%sbug71488.test" cannot be created, link "%s" is too long for format' in %sbug71488.php:%d 19 | Stack trace:%A 20 | -------------------------------------------------------------------------------- /config/patches/5.6/0074-Fix-bug-77753-Heap-buffer-overflow-in-php_ifd_get32s.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/5.6/0074-Fix-bug-77753-Heap-buffer-overflow-in-php_ifd_get32s.patch -------------------------------------------------------------------------------- /config/patches/5.6/0075-Fixed-bug-77831-Heap-buffer-overflow-in-exif_iif_add.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/5.6/0075-Fixed-bug-77831-Heap-buffer-overflow-in-exif_iif_add.patch -------------------------------------------------------------------------------- /config/patches/5.6/0080-Fix-bug-77950-Heap-buffer-overflow-in-_estrndup-via-.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/5.6/0080-Fix-bug-77950-Heap-buffer-overflow-in-_estrndup-via-.patch -------------------------------------------------------------------------------- /config/patches/5.6/0083-Fix-bug-78069-Out-of-bounds-read-in-iconv.c-_php_ico.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/5.6/0083-Fix-bug-78069-Out-of-bounds-read-in-iconv.c-_php_ico.patch -------------------------------------------------------------------------------- /config/patches/5.6/0084-fix-test-output.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 28 May 2019 07:28:46 +0200 3 | Subject: fix test output 4 | 5 | (cherry picked from commit 4e0362c2c3b667e55fadee1029a626d63cb9a655) 6 | --- 7 | ext/iconv/tests/bug78069.phpt | 5 +++-- 8 | 1 file changed, 3 insertions(+), 2 deletions(-) 9 | 10 | diff --git a/ext/iconv/tests/bug78069.phpt b/ext/iconv/tests/bug78069.phpt 11 | index 1341a5e..d2fcaf8 100644 12 | --- a/ext/iconv/tests/bug78069.phpt 13 | +++ b/ext/iconv/tests/bug78069.phpt 14 | @@ -10,6 +10,7 @@ $hdr = iconv_mime_decode_headers(file_get_contents(__DIR__ . "/bug78069.data"),2 15 | var_dump(count($hdr)); 16 | ?> 17 | DONE 18 | ---EXPECT-- 19 | +--EXPECTF-- 20 | +Notice: iconv_mime_decode_headers%s 21 | int(1) 22 | -DONE 23 | \ No newline at end of file 24 | +DONE 25 | -------------------------------------------------------------------------------- /config/patches/5.6/0085-Fix-bug-77988-heap-buffer-overflow-on-php_jpg_get16.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/5.6/0085-Fix-bug-77988-heap-buffer-overflow-on-php_jpg_get16.patch -------------------------------------------------------------------------------- /config/patches/5.6/0087-fix-tests.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/5.6/0087-fix-tests.patch -------------------------------------------------------------------------------- /config/patches/5.6/0091-Fix-bug-78222-heap-buffer-overflow-on-exif_scan_thum.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/5.6/0091-Fix-bug-78222-heap-buffer-overflow-on-exif_scan_thum.patch -------------------------------------------------------------------------------- /config/patches/5.6/0092-Fix-bug-78256-heap-buffer-overflow-on-exif_process_u.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/5.6/0092-Fix-bug-78256-heap-buffer-overflow-on-exif_process_u.patch -------------------------------------------------------------------------------- /config/patches/5.6/0097-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Wed, 28 Aug 2019 14:06:50 +0200 3 | Subject: NEWS 4 | 5 | --- 6 | NEWS | 8 ++++++++ 7 | 1 file changed, 8 insertions(+) 8 | 9 | diff --git a/NEWS b/NEWS 10 | index b2fa863..07e912d 100644 11 | --- a/NEWS 12 | +++ b/NEWS 13 | @@ -1,6 +1,14 @@ 14 | PHP NEWS 15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 16 | 17 | +Backported from 7.1.32 18 | + 19 | +- mbstring: 20 | + . Fixed CVE-2019-13224 (don't allow different encodings for onig_new_deluxe) (stas) 21 | + 22 | +- pcre: 23 | + . Fixed bug #75457 (heap use-after-free in pcrelib) (cmb) 24 | + 25 | Backported from 7.1.31 26 | 27 | - EXIF: 28 | -------------------------------------------------------------------------------- /config/patches/5.6/0102-Fixed-test-on-32-bit-systems.patch: -------------------------------------------------------------------------------- 1 | From: Dmitry Stogov 2 | Date: Wed, 23 Dec 2015 03:52:01 +0300 3 | Subject: Fixed test on 32-bit systems 4 | 5 | (cherry picked from php/php-src@1e3ab158432f8d97c3561fdfc17b7e4aa3dbdd60) 6 | --- 7 | ext/opcache/tests/bug71127.phpt | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/ext/opcache/tests/bug71127.phpt b/ext/opcache/tests/bug71127.phpt 11 | index 5770aea..0c60609 100644 12 | --- a/ext/opcache/tests/bug71127.phpt 13 | +++ b/ext/opcache/tests/bug71127.phpt 14 | @@ -3,7 +3,7 @@ Bug #71127 (Define in auto_prepend_file is overwrite) 15 | --INI-- 16 | opcache.enable=1 17 | opcache.enable_cli=1 18 | -opcache.optimization_level=0xFFFFBFFF 19 | +opcache.optimization_level=0x7FFFBFFF 20 | --SKIPIF-- 21 | 22 | --FILE-- 23 | -------------------------------------------------------------------------------- /config/patches/5.6/0105-add-NEWS-entry.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 22 Oct 2019 08:44:58 +0200 3 | Subject: add NEWS entry 4 | 5 | --- 6 | NEWS | 6 ++++++ 7 | 1 file changed, 6 insertions(+) 8 | 9 | diff --git a/NEWS b/NEWS 10 | index 07e912d..d0bf00a 100644 11 | --- a/NEWS 12 | +++ b/NEWS 13 | @@ -1,6 +1,12 @@ 14 | PHP NEWS 15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 16 | 17 | +Backported from 7.1.33 18 | + 19 | +- FPM: 20 | + . Fixed bug #78599 (env_path_info underflow in fpm_main.c can lead to RCE). 21 | + (CVE-2019-11043) (Jakub Zelenka) 22 | + 23 | Backported from 7.1.32 24 | 25 | - mbstring: 26 | -------------------------------------------------------------------------------- /config/patches/5.6/0117-Sync-test-with-changes-in-libcurl-7.64.0.patch: -------------------------------------------------------------------------------- 1 | From: Anatol Belski 2 | Date: Thu, 7 Feb 2019 22:22:38 -0800 3 | Subject: Sync test with changes in libcurl 7.64.0 4 | 5 | (cherry picked from commit e27301c7b37f6a1643a0dc1966919bd62a32bc74) 6 | --- 7 | ext/curl/tests/curl_basic_009.phpt | 6 +++--- 8 | 1 file changed, 3 insertions(+), 3 deletions(-) 9 | 10 | diff --git a/ext/curl/tests/curl_basic_009.phpt b/ext/curl/tests/curl_basic_009.phpt 11 | index 529e590..3b36a78 100644 12 | --- a/ext/curl/tests/curl_basic_009.phpt 13 | +++ b/ext/curl/tests/curl_basic_009.phpt 14 | @@ -18,6 +18,6 @@ curl_close($ch); 15 | 16 | 17 | ?> 18 | ---EXPECTF-- 19 | -%unicode|string%(%d) "%Srotocol%s" 20 | -int(1) 21 | +--EXPECTREGEX-- 22 | +string\(\d+\) "([^\r\n]*rotocol[^\r\n]+|Could not resolve host: .+)" 23 | +int\(\d\) 24 | -------------------------------------------------------------------------------- /config/patches/5.6/0120-refix-test.patch: -------------------------------------------------------------------------------- 1 | From: Anatol Belski 2 | Date: Fri, 13 Jan 2017 15:31:10 +0100 3 | Subject: refix test 4 | 5 | (cherry picked from commit e7c3f449581a9724b5dd3d051c0420987a669c01) 6 | --- 7 | ext/opcache/tests/blacklist-win32.phpt | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/ext/opcache/tests/blacklist-win32.phpt b/ext/opcache/tests/blacklist-win32.phpt 11 | index 909c695..0ddb226 100644 12 | --- a/ext/opcache/tests/blacklist-win32.phpt 13 | +++ b/ext/opcache/tests/blacklist-win32.phpt 14 | @@ -17,7 +17,7 @@ $conf[4] = preg_replace("!^\\Q".dirname(__FILE__)."\\E!", "__DIR__", $conf[4]); 15 | print_r($conf); 16 | include("blacklist.inc"); 17 | $status = opcache_get_status(); 18 | -print_r(count($status['scripts'])); 19 | +print_r(count($status['scripts']) > 0); 20 | ?> 21 | --EXPECTF-- 22 | Array 23 | -------------------------------------------------------------------------------- /config/patches/5.6/0122-Fix-test.patch: -------------------------------------------------------------------------------- 1 | From: "Christoph M. Becker" 2 | Date: Tue, 31 Dec 2019 17:37:10 +0100 3 | Subject: Fix test 4 | 5 | The test runner may not properly handle short open tags. 6 | --- 7 | ext/opcache/tests/bug71843.phpt | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/ext/opcache/tests/bug71843.phpt b/ext/opcache/tests/bug71843.phpt 11 | index 7fcf32c..32af61b 100644 12 | --- a/ext/opcache/tests/bug71843.phpt 13 | +++ b/ext/opcache/tests/bug71843.phpt 14 | @@ -7,7 +7,7 @@ opcache.optimization_level=0xFFFFBFFF 15 | --SKIPIF-- 16 | 17 | --FILE-- 18 | - 23 | -------------------------------------------------------------------------------- /config/patches/5.6/0126-update-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 21 Jan 2020 10:12:44 +0100 3 | Subject: update NEWS 4 | 5 | --- 6 | NEWS | 9 +++++++++ 7 | 1 file changed, 9 insertions(+) 8 | 9 | diff --git a/NEWS b/NEWS 10 | index 1c71762..7b76a7e 100644 11 | --- a/NEWS 12 | +++ b/NEWS 13 | @@ -1,6 +1,15 @@ 14 | PHP NEWS 15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 16 | 17 | +Backported from 7.2.27 18 | + 19 | +- Mbstring: 20 | + . Fixed bug #79037 (global buffer-overflow in `mbfl_filt_conv_big5_wchar`). 21 | + (CVE-2020-7060) (Nikita) 22 | + 23 | +- Standard: 24 | + . Fixed bug #79099 (OOB read in php_strip_tags_ex). (CVE-2020-7059). (cmb) 25 | + 26 | Backported from 7.2.26 27 | 28 | - Bcmath: 29 | -------------------------------------------------------------------------------- /config/patches/5.6/0132-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 18 Feb 2020 06:36:07 +0100 3 | Subject: NEWS 4 | 5 | --- 6 | NEWS | 10 ++++++++++ 7 | 1 file changed, 10 insertions(+) 8 | 9 | diff --git a/NEWS b/NEWS 10 | index 7b76a7e..78678bc 100644 11 | --- a/NEWS 12 | +++ b/NEWS 13 | @@ -1,6 +1,16 @@ 14 | PHP NEWS 15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 16 | 17 | +Backported from 7.2.28 18 | + 19 | +- Phar: 20 | + . Fixed bug #79082 (Files added to tar with Phar::buildFromIterator have 21 | + all-access permissions). (CVE-2020-7063) (stas) 22 | + 23 | +- Session: 24 | + . Fixed bug #79221 (Null Pointer Dereference in PHP Session Upload Progress). 25 | + (CVE-2020-7062) (stas) 26 | + 27 | Backported from 7.2.27 28 | 29 | - Mbstring: 30 | -------------------------------------------------------------------------------- /config/patches/5.6/0133-renew-certs-for-openssl-tests.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/5.6/0133-renew-certs-for-openssl-tests.patch -------------------------------------------------------------------------------- /config/patches/5.6/0142-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 14 Apr 2020 08:02:28 +0200 3 | Subject: NEWS 4 | 5 | (cherry picked from commit bd4a5ebe653f36ea7705fbc95a6ec4842d7f86fc) 6 | --- 7 | NEWS | 6 ++++++ 8 | 1 file changed, 6 insertions(+) 9 | 10 | diff --git a/NEWS b/NEWS 11 | index 98a3b4d..f1744cd 100644 12 | --- a/NEWS 13 | +++ b/NEWS 14 | @@ -1,6 +1,12 @@ 15 | PHP NEWS 16 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 17 | 18 | +Backported from 7.2.30 19 | + 20 | +- Standard: 21 | + . Fixed bug #79330 (shell_exec silently truncates after a null byte). (stas) 22 | + . Fixed bug #79465 (OOB Read in urldecode). (CVE-2020-7067) (stas) 23 | + 24 | Backported from 7.2.29 25 | 26 | - Core: 27 | -------------------------------------------------------------------------------- /config/patches/5.6/0149-Fix-79797-Use-of-freed-hash-key-in-the-phar_parse_zi.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/5.6/0149-Fix-79797-Use-of-freed-hash-key-in-the-phar_parse_zi.patch -------------------------------------------------------------------------------- /config/patches/5.6/0151-ZTS-fix.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 4 Aug 2020 07:40:22 +0200 3 | Subject: ZTS fix 4 | 5 | --- 6 | ext/standard/image.c | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | diff --git a/ext/standard/image.c b/ext/standard/image.c 10 | index f663e7c..db64b3a 100644 11 | --- a/ext/standard/image.c 12 | +++ b/ext/standard/image.c 13 | @@ -1399,7 +1399,7 @@ static void php_getimagesize_from_any(INTERNAL_FUNCTION_PARAMETERS, int mode) { 14 | } 15 | 16 | if (mode == FROM_PATH && CHECK_NULL_PATH(input, input_len)) { 17 | - php_error_docref(NULL, E_WARNING, "Invalid path"); 18 | + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid path"); 19 | return; 20 | } 21 | 22 | -------------------------------------------------------------------------------- /config/patches/5.6/0153-Do-not-decode-cookie-names-anymore.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/5.6/0153-Do-not-decode-cookie-names-anymore.patch -------------------------------------------------------------------------------- /config/patches/5.6/0154-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 29 Sep 2020 09:20:11 +0200 3 | Subject: NEWS 4 | 5 | --- 6 | NEWS | 6 ++++++ 7 | 1 file changed, 6 insertions(+) 8 | 9 | diff --git a/NEWS b/NEWS 10 | index 9e873d0..d8909a5 100644 11 | --- a/NEWS 12 | +++ b/NEWS 13 | @@ -1,6 +1,12 @@ 14 | PHP NEWS 15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 16 | 17 | +Backported from 7.2.34 18 | + 19 | +- Core: 20 | + . Fixed bug #79699 (PHP parses encoded cookie names so malicious `__Host-` 21 | + cookies can be sent). (CVE-2020-7070) (Stas) 22 | + 23 | Backported from 7.2.33 24 | 25 | - Core: 26 | -------------------------------------------------------------------------------- /config/patches/5.6/0158-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Mon, 4 Jan 2021 14:20:55 +0100 3 | Subject: NEWS 4 | 5 | (cherry picked from commit c784479182b92b9b3b96a7be42aa86a6c6d0b693) 6 | --- 7 | NEWS | 6 ++++++ 8 | 1 file changed, 6 insertions(+) 9 | 10 | diff --git a/NEWS b/NEWS 11 | index d8909a5..befc875 100644 12 | --- a/NEWS 13 | +++ b/NEWS 14 | @@ -1,6 +1,12 @@ 15 | PHP NEWS 16 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 17 | 18 | +Backported from 7.3.26 19 | + 20 | +- Standard: 21 | + . Fixed bug #77423 (FILTER_VALIDATE_URL accepts URLs with invalid userinfo). 22 | + (CVE-2020-7071) (cmb) 23 | + 24 | Backported from 7.2.34 25 | 26 | - Core: 27 | -------------------------------------------------------------------------------- /config/patches/5.6/0161-Fix-build.patch: -------------------------------------------------------------------------------- 1 | From: Nikita Popov 2 | Date: Mon, 1 Feb 2021 09:46:17 +0100 3 | Subject: Fix build 4 | 5 | (cherry picked from commit e5d767d27f94895e09f0321562fd3774d4656164) 6 | (cherry picked from commit 02352d5acc1896756dcb4645f54689ffdcc4ca52) 7 | --- 8 | ext/soap/php_sdl.c | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c 12 | index 49f6137..4a3a2fa 100644 13 | --- a/ext/soap/php_sdl.c 14 | +++ b/ext/soap/php_sdl.c 15 | @@ -318,7 +318,7 @@ void sdl_restore_uri_credentials(sdlCtx *ctx TSRMLS_DC) 16 | ctx->context = NULL; 17 | } 18 | 19 | -#define SAFE_STR(a) ((a)?a:"") 20 | +#define SAFE_STR(a) ((a)?((const char *)a):"") 21 | 22 | static void load_wsdl_ex(zval *this_ptr, char *struri, sdlCtx *ctx, int include TSRMLS_DC) 23 | { 24 | -------------------------------------------------------------------------------- /config/patches/5.6/0168-Add-missing-NEWS-entry-for-80710.patch: -------------------------------------------------------------------------------- 1 | From: "Christoph M. Becker" 2 | Date: Tue, 27 Apr 2021 13:38:39 +0200 3 | Subject: Add missing NEWS entry for #80710 4 | 5 | (cherry picked from commit 60a68a45c3e9f63585151221e7fe9ddff78bd71f) 6 | (cherry picked from commit f16c623ec8ae3f3cdc73ab3fa05ae6bb0a77d1f3) 7 | --- 8 | NEWS | 5 +++++ 9 | 1 file changed, 5 insertions(+) 10 | 11 | diff --git a/NEWS b/NEWS 12 | index 24b31ee..fc9b003 100644 13 | --- a/NEWS 14 | +++ b/NEWS 15 | @@ -1,6 +1,11 @@ 16 | PHP NEWS 17 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 18 | 19 | +Backported from 7.3.28 20 | + 21 | +- Imap: 22 | + . Fixed bug #80710 (imap_mail_compose() header injection). (cmb, Stas) 23 | + 24 | Backported from 7.3.27 25 | 26 | - SOAP: 27 | -------------------------------------------------------------------------------- /config/patches/5.6/0174-Fix-76452-Crash-while-parsing-blob-data-in-firebird_.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/5.6/0174-Fix-76452-Crash-while-parsing-blob-data-in-firebird_.patch -------------------------------------------------------------------------------- /config/patches/5.6/0175-Fix-76450-SIGSEGV-in-firebird_stmt_execute.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/5.6/0175-Fix-76450-SIGSEGV-in-firebird_stmt_execute.patch -------------------------------------------------------------------------------- /config/patches/5.6/0176-Fix-76449-SIGSEGV-in-firebird_handle_doer.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/5.6/0176-Fix-76449-SIGSEGV-in-firebird_handle_doer.patch -------------------------------------------------------------------------------- /config/patches/5.6/0177-Fix-76448-Stack-buffer-overflow-in-firebird_info_cb.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/5.6/0177-Fix-76448-Stack-buffer-overflow-in-firebird_info_cb.patch -------------------------------------------------------------------------------- /config/patches/5.6/0181-adapt-for-5.6-without-ZEND_ULONG_MAX.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Mon, 28 Jun 2021 14:31:02 +0200 3 | Subject: adapt for 5.6 without ZEND_ULONG_MAX 4 | 5 | --- 6 | ext/pdo_firebird/firebird_statement.c | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | diff --git a/ext/pdo_firebird/firebird_statement.c b/ext/pdo_firebird/firebird_statement.c 10 | index dc64c19..ea3c704 100644 11 | --- a/ext/pdo_firebird/firebird_statement.c 12 | +++ b/ext/pdo_firebird/firebird_statement.c 13 | @@ -275,7 +275,7 @@ static int firebird_fetch_blob(pdo_stmt_t *stmt, int colno, char **ptr, /* {{{ * 14 | ISC_STATUS stat; 15 | 16 | /* prevent overflow */ 17 | - if (*len == ZEND_ULONG_MAX) { 18 | + if (*len == (LONG_MAX * 2UL +1UL)) { 19 | result = 0; 20 | goto fetch_blob_end; 21 | } 22 | -------------------------------------------------------------------------------- /config/patches/5.6/0184-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Wed, 25 Aug 2021 15:23:50 +0200 3 | Subject: NEWS 4 | 5 | (cherry picked from commit 5539cefcda6aca7af220e7be7760a682abb88200) 6 | --- 7 | NEWS | 5 +++++ 8 | 1 file changed, 5 insertions(+) 9 | 10 | diff --git a/NEWS b/NEWS 11 | index acfb08c..6d7b145 100644 12 | --- a/NEWS 13 | +++ b/NEWS 14 | @@ -1,6 +1,11 @@ 15 | PHP NEWS 16 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 17 | 18 | +Backported from 7.3.30 19 | + 20 | +- Phar: 21 | + . Fixed bug #81211: Symlinks are followed when creating PHAR archive (cmb) 22 | + 23 | Backported from 7.3.29 24 | 25 | - Core: 26 | -------------------------------------------------------------------------------- /config/patches/5.6/0186-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Wed, 20 Oct 2021 14:11:20 +0200 3 | Subject: NEWS 4 | 5 | (cherry picked from commit 28c4ee7da2cf3428113e07326dbd46550c50c2bd) 6 | (cherry picked from commit 9e0b951aee92deb470e31bd9f0e14f1434861b6a) 7 | --- 8 | NEWS | 6 ++++++ 9 | 1 file changed, 6 insertions(+) 10 | 11 | diff --git a/NEWS b/NEWS 12 | index 6d7b145..3525cf9 100644 13 | --- a/NEWS 14 | +++ b/NEWS 15 | @@ -1,6 +1,12 @@ 16 | PHP NEWS 17 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 18 | 19 | +Backported from 7.4.25 20 | + 21 | +- FPM: 22 | + . Fixed bug #81026 (PHP-FPM oob R/W in root process leading to privilege 23 | + escalation) (CVE-2021-21703). (Jakub Zelenka) 24 | + 25 | Backported from 7.3.30 26 | 27 | - Phar: 28 | -------------------------------------------------------------------------------- /config/patches/5.6/0187-Fix-81420-ZipArchive-extractTo-extracts-outside-of-d.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/5.6/0187-Fix-81420-ZipArchive-extractTo-extracts-outside-of-d.patch -------------------------------------------------------------------------------- /config/patches/5.6/0188-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Thu, 21 Oct 2021 08:30:53 +0200 3 | Subject: NEWS 4 | 5 | (cherry picked from commit 515df60d2d4f9e7514061aa11ad8141f35f5a44a) 6 | (cherry picked from commit 40d2da33a91a8de9fc6e7c4a93c986e4b976fa44) 7 | --- 8 | NEWS | 6 ++++++ 9 | 1 file changed, 6 insertions(+) 10 | 11 | diff --git a/NEWS b/NEWS 12 | index 3525cf9..0d4f439 100644 13 | --- a/NEWS 14 | +++ b/NEWS 15 | @@ -7,6 +7,12 @@ Backported from 7.4.25 16 | . Fixed bug #81026 (PHP-FPM oob R/W in root process leading to privilege 17 | escalation) (CVE-2021-21703). (Jakub Zelenka) 18 | 19 | +Backported from 7.3.31 20 | + 21 | +- Zip: 22 | + . Fixed bug #81420 (ZipArchive::extractTo extracts outside of destination). 23 | + (CVE-2021-21706) (cmb) 24 | + 25 | Backported from 7.3.30 26 | 27 | - Phar: 28 | -------------------------------------------------------------------------------- /config/patches/5.6/0192-fix-ZTS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Mon, 15 Nov 2021 11:28:17 +0100 3 | Subject: fix ZTS 4 | 5 | (cherry picked from commit cfad01ddc65a32fbde3110a84c61d2ac55173a9c) 6 | --- 7 | ext/libxml/libxml.c | 2 ++ 8 | 1 file changed, 2 insertions(+) 9 | 10 | diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c 11 | index d4a47ff..02453ff 100644 12 | --- a/ext/libxml/libxml.c 13 | +++ b/ext/libxml/libxml.c 14 | @@ -433,6 +433,8 @@ php_libxml_output_buffer_create_filename(const char *URI, 15 | void *context = NULL; 16 | char *unescaped = NULL; 17 | 18 | + TSRMLS_FETCH(); 19 | + 20 | if (URI == NULL) 21 | return(NULL); 22 | 23 | -------------------------------------------------------------------------------- /config/patches/5.6/0201-Fix-81726-phar-wrapper-DOS-when-using-quine-gzip-fil.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/5.6/0201-Fix-81726-phar-wrapper-DOS-when-using-quine-gzip-fil.patch -------------------------------------------------------------------------------- /config/patches/5.6/0205-adapt-test-for-5.x.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 20 Dec 2022 08:42:44 +0100 3 | Subject: adapt test for 5.x 4 | 5 | --- 6 | ext/pdo_sqlite/tests/bug81740.phpt | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | diff --git a/ext/pdo_sqlite/tests/bug81740.phpt b/ext/pdo_sqlite/tests/bug81740.phpt 10 | index 99fb07c..08947e3 100644 11 | --- a/ext/pdo_sqlite/tests/bug81740.phpt 12 | +++ b/ext/pdo_sqlite/tests/bug81740.phpt 13 | @@ -10,7 +10,7 @@ memory_limit=-1 14 | --FILE-- 15 | quote($string)); 20 | ?> 21 | --EXPECT-- 22 | -------------------------------------------------------------------------------- /config/patches/5.6/0206-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Mon, 19 Dec 2022 09:24:02 +0100 3 | Subject: NEWS 4 | 5 | (cherry picked from commit 7328f3a0344806b846bd05657bdce96e47810bf0) 6 | (cherry picked from commit dbfbd99e91701c0a5613133c06305fd70545e9ad) 7 | --- 8 | NEWS | 6 ++++++ 9 | 1 file changed, 6 insertions(+) 10 | 11 | diff --git a/NEWS b/NEWS 12 | index 8cb7923..e2c4da6 100644 13 | --- a/NEWS 14 | +++ b/NEWS 15 | @@ -1,6 +1,12 @@ 16 | PHP NEWS 17 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 18 | 19 | +Backported from 8.0.27 20 | + 21 | +- PDO/SQLite: 22 | + . Fixed bug #81740 (PDO::quote() may return unquoted string). 23 | + (CVE-2022-31631) (cmb) 24 | + 25 | Backported from 7.4.32 26 | 27 | - Core: 28 | -------------------------------------------------------------------------------- /config/patches/7.0/0002-static_openssl.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:51 +0200 3 | Subject: static_openssl 4 | 5 | --- 6 | acinclude.m4 | 4 +--- 7 | 1 file changed, 1 insertion(+), 3 deletions(-) 8 | 9 | diff --git a/acinclude.m4 b/acinclude.m4 10 | index 05cd8e3..3921b49 100644 11 | --- a/acinclude.m4 12 | +++ b/acinclude.m4 13 | @@ -2396,9 +2396,7 @@ AC_DEFUN([PHP_SETUP_OPENSSL],[ 14 | 15 | PHP_ADD_INCLUDE($OPENSSL_INCDIR) 16 | 17 | - PHP_CHECK_LIBRARY(crypto, CRYPTO_free, [ 18 | - PHP_ADD_LIBRARY(crypto,,$1) 19 | - ],[ 20 | + PHP_CHECK_LIBRARY(crypto, CRYPTO_free, [:],[ 21 | AC_MSG_ERROR([libcrypto not found!]) 22 | ],[ 23 | -L$OPENSSL_LIBDIR 24 | -------------------------------------------------------------------------------- /config/patches/7.0/0005-we_WANT_libtool.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:51 +0200 3 | Subject: we_WANT_libtool 4 | 5 | --- 6 | build/build2.mk | 3 ++- 7 | 1 file changed, 2 insertions(+), 1 deletion(-) 8 | 9 | diff --git a/build/build2.mk b/build/build2.mk 10 | index 7bb2589..4bb021b 100644 11 | --- a/build/build2.mk 12 | +++ b/build/build2.mk 13 | @@ -46,7 +46,8 @@ $(TOUCH_FILES): 14 | 15 | aclocal.m4: configure.in acinclude.m4 16 | @echo rebuilding $@ 17 | - cat acinclude.m4 ./build/libtool.m4 > $@ 18 | + libtoolize --copy --install --automake --force 19 | + aclocal 20 | 21 | configure: aclocal.m4 configure.in $(config_m4_files) 22 | @echo rebuilding $@ 23 | -------------------------------------------------------------------------------- /config/patches/7.0/0009-recode_is_shared.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:51 +0200 3 | Subject: recode_is_shared 4 | 5 | --- 6 | ext/recode/config9.m4 | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | diff --git a/ext/recode/config9.m4 b/ext/recode/config9.m4 10 | index 66df50e..f0a98ca 100644 11 | --- a/ext/recode/config9.m4 12 | +++ b/ext/recode/config9.m4 13 | @@ -13,6 +13,6 @@ if test "$PHP_RECODE" != "no"; then 14 | fi 15 | 16 | if test -n "$recode_conflict"; then 17 | - AC_MSG_ERROR([recode extension can not be configured together with:$recode_conflict]) 18 | + AC_MSG_WARN([recode extension can not be used together with:$recode_conflict]) 19 | fi 20 | fi 21 | -------------------------------------------------------------------------------- /config/patches/7.0/0010-proc_open.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:52 +0200 3 | Subject: proc_open 4 | 5 | --- 6 | ext/standard/proc_open.c | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c 10 | index b274dc4..5df6647 100644 11 | --- a/ext/standard/proc_open.c 12 | +++ b/ext/standard/proc_open.c 13 | @@ -62,7 +62,7 @@ 14 | * */ 15 | #ifdef PHP_CAN_SUPPORT_PROC_OPEN 16 | 17 | -#if 0 && HAVE_PTSNAME && HAVE_GRANTPT && HAVE_UNLOCKPT && HAVE_SYS_IOCTL_H && HAVE_TERMIOS_H 18 | +#if HAVE_PTSNAME && HAVE_GRANTPT && HAVE_UNLOCKPT && HAVE_SYS_IOCTL_H && HAVE_TERMIOS_H 19 | # include 20 | # include 21 | # define PHP_CAN_DO_PTS 1 22 | -------------------------------------------------------------------------------- /config/patches/7.0/0015-strcmp_null-OnUpdateErrorLog.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: strcmp_null-OnUpdateErrorLog 4 | 5 | --- 6 | tests/func/null-new_val.phpt | 10 ++++++++++ 7 | 1 file changed, 10 insertions(+) 8 | create mode 100644 tests/func/null-new_val.phpt 9 | 10 | diff --git a/tests/func/null-new_val.phpt b/tests/func/null-new_val.phpt 11 | new file mode 100644 12 | index 0000000..412da39 13 | --- /dev/null 14 | +++ b/tests/func/null-new_val.phpt 15 | @@ -0,0 +1,10 @@ 16 | +--TEST-- 17 | +ini_restore strcmp NULL new_val 18 | +--FILE-- 19 | + 25 | +--EXPECT-- 26 | -------------------------------------------------------------------------------- /config/patches/7.0/0016-dont-gitclean-in-build.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: dont-gitclean-in-build 4 | 5 | --- 6 | build/build.mk | 1 - 7 | 1 file changed, 1 deletion(-) 8 | 9 | diff --git a/build/build.mk b/build/build.mk 10 | index ff2fafd..a044916 100644 11 | --- a/build/build.mk 12 | +++ b/build/build.mk 13 | @@ -63,6 +63,5 @@ gitclean-work: 14 | @if (test ! -f '.git/info/exclude' || grep -s "git-ls-files" .git/info/exclude); then \ 15 | (echo "Rebuild .git/info/exclude" && echo '*.o' > .git/info/exclude && git svn propget svn:ignore | grep -v config.nice >> .git/info/exclude); \ 16 | fi; \ 17 | - git clean -X -f -d; 18 | 19 | .PHONY: $(ALWAYS) snapshot 20 | -------------------------------------------------------------------------------- /config/patches/7.0/0017-qdbm-is-usr_include_qdbm.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: qdbm-is-usr_include_qdbm 4 | 5 | --- 6 | ext/dba/config.m4 | 4 ++++ 7 | 1 file changed, 4 insertions(+) 8 | 9 | diff --git a/ext/dba/config.m4 b/ext/dba/config.m4 10 | index 1e8d51b..d2e6fd9 100644 11 | --- a/ext/dba/config.m4 12 | +++ b/ext/dba/config.m4 13 | @@ -113,6 +113,10 @@ if test "$PHP_QDBM" != "no"; then 14 | THIS_PREFIX=$i 15 | THIS_INCLUDE=$i/include/depot.h 16 | break 17 | + elif test -f "$i/include/qdbm/depot.h"; then 18 | + THIS_PREFIX=$i 19 | + THIS_INCLUDE=$i/include/qdbm/depot.h 20 | + break 21 | fi 22 | done 23 | 24 | -------------------------------------------------------------------------------- /config/patches/7.0/0021-php-fpm-sysconfdir.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:54 +0200 3 | Subject: php-fpm-sysconfdir 4 | 5 | --- 6 | sapi/fpm/fpm/fpm_conf.c | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | diff --git a/sapi/fpm/fpm/fpm_conf.c b/sapi/fpm/fpm/fpm_conf.c 10 | index 2db7fa0..5a9b4d7 100644 11 | --- a/sapi/fpm/fpm/fpm_conf.c 12 | +++ b/sapi/fpm/fpm/fpm_conf.c 13 | @@ -1682,7 +1682,7 @@ int fpm_conf_init_main(int test_conf, int force_daemon) /* {{{ */ 14 | char *tmp; 15 | 16 | if (fpm_globals.prefix == NULL) { 17 | - spprintf(&tmp, 0, "%s/php-fpm.conf", PHP_SYSCONFDIR); 18 | + spprintf(&tmp, 0, "%s/php/%d.%d/fpm/php-fpm.conf", PHP_SYSCONFDIR, PHP_MAJOR_VERSION, PHP_MINOR_VERSION); 19 | } else { 20 | spprintf(&tmp, 0, "%s/etc/php-fpm.conf", fpm_globals.prefix); 21 | } 22 | -------------------------------------------------------------------------------- /config/patches/7.0/0024-hurd-noptrace.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:54 +0200 3 | Subject: hurd-noptrace 4 | 5 | --- 6 | sapi/fpm/config.m4 | 5 +++++ 7 | 1 file changed, 5 insertions(+) 8 | 9 | diff --git a/sapi/fpm/config.m4 b/sapi/fpm/config.m4 10 | index e6a1a49..3340fa1 100644 11 | --- a/sapi/fpm/config.m4 12 | +++ b/sapi/fpm/config.m4 13 | @@ -147,6 +147,11 @@ AC_DEFUN([AC_FPM_TRACE], 14 | pid_t child; 15 | int status; 16 | 17 | + /* broken ptrace on Hurd, avoid hanging */ 18 | + #ifdef __GNU__ 19 | + return 10; 20 | + #endif 21 | + 22 | if ( (child = fork()) ) { /* parent */ 23 | int ret = 0; 24 | 25 | -------------------------------------------------------------------------------- /config/patches/7.0/0047-Adjust-tidy-extension-for-tidy-html5.patch: -------------------------------------------------------------------------------- 1 | From: =?utf-8?b?T25kxZllaiBTdXLDvQ==?= 2 | Date: Fri, 24 Jun 2016 08:21:28 +0200 3 | Subject: Adjust tidy extension for tidy-html5 4 | 5 | --- 6 | ext/tidy/tidy.c | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | diff --git a/ext/tidy/tidy.c b/ext/tidy/tidy.c 10 | index 4e307ee..8cecf17 100644 11 | --- a/ext/tidy/tidy.c 12 | +++ b/ext/tidy/tidy.c 13 | @@ -31,7 +31,7 @@ 14 | #include "ext/standard/info.h" 15 | 16 | #include "tidy.h" 17 | -#include "buffio.h" 18 | +#include "tidybuffio.h" 19 | 20 | /* compatibility with older versions of libtidy */ 21 | #ifndef TIDY_CALL 22 | -------------------------------------------------------------------------------- /config/patches/7.0/0049-Use-SOURCE_DATE_EPOCH-as-PHP_BUILD_DATE-if-available.patch: -------------------------------------------------------------------------------- 1 | From: =?utf-8?b?T25kxZllaiBTdXLDvQ==?= 2 | Date: Sun, 4 Nov 2018 04:42:41 +0000 3 | Subject: Use SOURCE_DATE_EPOCH as PHP_BUILD_DATE if available 4 | 5 | --- 6 | configure.in | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | diff --git a/configure.in b/configure.in 10 | index 08db7ac..a45fe71 100644 11 | --- a/configure.in 12 | +++ b/configure.in 13 | @@ -1292,7 +1292,7 @@ fi 14 | EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PHP_LDFLAGS" 15 | EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $PHP_LDFLAGS" 16 | 17 | -PHP_BUILD_DATE=`date '+%Y-%m-%d' -r $srcdir/NEWS` 18 | +PHP_BUILD_DATE=`date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y-%m-%d` 19 | AC_DEFINE_UNQUOTED(PHP_BUILD_DATE,"$PHP_BUILD_DATE",[PHP build date]) 20 | 21 | case $host_alias in 22 | -------------------------------------------------------------------------------- /config/patches/7.0/0062-Fix-bug-77540-Invalid-Read-on-exif_process_SOFn.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.0/0062-Fix-bug-77540-Invalid-Read-on-exif_process_SOFn.patch -------------------------------------------------------------------------------- /config/patches/7.0/0063-Fix-bug-77563-Uninitialized-read-in-exif_process_IFD.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.0/0063-Fix-bug-77563-Uninitialized-read-in-exif_process_IFD.patch -------------------------------------------------------------------------------- /config/patches/7.0/0074-Fix-bug-77753-Heap-buffer-overflow-in-php_ifd_get32s.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.0/0074-Fix-bug-77753-Heap-buffer-overflow-in-php_ifd_get32s.patch -------------------------------------------------------------------------------- /config/patches/7.0/0075-Fixed-bug-77831-Heap-buffer-overflow-in-exif_iif_add.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.0/0075-Fixed-bug-77831-Heap-buffer-overflow-in-exif_iif_add.patch -------------------------------------------------------------------------------- /config/patches/7.0/0079-Fix-bug-77950-Heap-buffer-overflow-in-_estrndup-via-.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.0/0079-Fix-bug-77950-Heap-buffer-overflow-in-_estrndup-via-.patch -------------------------------------------------------------------------------- /config/patches/7.0/0082-Fix-bug-78069-Out-of-bounds-read-in-iconv.c-_php_ico.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.0/0082-Fix-bug-78069-Out-of-bounds-read-in-iconv.c-_php_ico.patch -------------------------------------------------------------------------------- /config/patches/7.0/0083-fix-test-output.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 28 May 2019 07:28:46 +0200 3 | Subject: fix test output 4 | 5 | --- 6 | ext/iconv/tests/bug78069.phpt | 5 +++-- 7 | 1 file changed, 3 insertions(+), 2 deletions(-) 8 | 9 | diff --git a/ext/iconv/tests/bug78069.phpt b/ext/iconv/tests/bug78069.phpt 10 | index 1341a5e..d2fcaf8 100644 11 | --- a/ext/iconv/tests/bug78069.phpt 12 | +++ b/ext/iconv/tests/bug78069.phpt 13 | @@ -10,6 +10,7 @@ $hdr = iconv_mime_decode_headers(file_get_contents(__DIR__ . "/bug78069.data"),2 14 | var_dump(count($hdr)); 15 | ?> 16 | DONE 17 | ---EXPECT-- 18 | +--EXPECTF-- 19 | +Notice: iconv_mime_decode_headers%s 20 | int(1) 21 | -DONE 22 | \ No newline at end of file 23 | +DONE 24 | -------------------------------------------------------------------------------- /config/patches/7.0/0084-Fix-bug-77988-heap-buffer-overflow-on-php_jpg_get16.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.0/0084-Fix-bug-77988-heap-buffer-overflow-on-php_jpg_get16.patch -------------------------------------------------------------------------------- /config/patches/7.0/0088-Fix-bug-78222-heap-buffer-overflow-on-exif_scan_thum.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.0/0088-Fix-bug-78222-heap-buffer-overflow-on-exif_scan_thum.patch -------------------------------------------------------------------------------- /config/patches/7.0/0089-Fix-bug-78256-heap-buffer-overflow-on-exif_process_u.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.0/0089-Fix-bug-78256-heap-buffer-overflow-on-exif_process_u.patch -------------------------------------------------------------------------------- /config/patches/7.0/0091-CS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 30 Jul 2019 09:45:35 +0200 3 | Subject: CS 4 | 5 | --- 6 | NEWS | 4 ++-- 7 | 1 file changed, 2 insertions(+), 2 deletions(-) 8 | 9 | diff --git a/NEWS b/NEWS 10 | index d6f0e18..cba2755 100644 11 | --- a/NEWS 12 | +++ b/NEWS 13 | @@ -5,9 +5,9 @@ Backported from 7.1.31 14 | 15 | - EXIF: 16 | . Fixed bug #78256 (heap-buffer-overflow on exif_process_user_comment). 17 | - (CVE-2019-11042) (Stas) 18 | + (CVE-2019-11042) (Stas) 19 | . Fixed bug #78222 (heap-buffer-overflow on exif_scan_thumbnail). 20 | - (CVE-2019-11041) (Stas) 21 | + (CVE-2019-11041) (Stas) 22 | 23 | - Phar: 24 | . Fixed bug #77919 (Potential UAF in Phar RSHUTDOWN). (cmb) 25 | -------------------------------------------------------------------------------- /config/patches/7.0/0094-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Wed, 28 Aug 2019 10:00:28 +0200 3 | Subject: NEWS 4 | 5 | --- 6 | NEWS | 8 ++++++++ 7 | 1 file changed, 8 insertions(+) 8 | 9 | diff --git a/NEWS b/NEWS 10 | index cba2755..bf127c6 100644 11 | --- a/NEWS 12 | +++ b/NEWS 13 | @@ -1,6 +1,14 @@ 14 | PHP NEWS 15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 16 | 17 | +Backported from 7.1.32 18 | + 19 | +- mbstring: 20 | + . Fixed CVE-2019-13224 (don't allow different encodings for onig_new_deluxe) (stas) 21 | + 22 | +- pcre: 23 | + . Fixed bug #75457 (heap use-after-free in pcrelib) (cmb) 24 | + 25 | Backported from 7.1.31 26 | 27 | - EXIF: 28 | -------------------------------------------------------------------------------- /config/patches/7.0/0097-Fixed-test-on-32-bit-systems.patch: -------------------------------------------------------------------------------- 1 | From: Dmitry Stogov 2 | Date: Wed, 23 Dec 2015 03:52:01 +0300 3 | Subject: Fixed test on 32-bit systems 4 | 5 | (cherry picked from php/php-src@1e3ab158432f8d97c3561fdfc17b7e4aa3dbdd60) 6 | --- 7 | ext/opcache/tests/bug71127.phpt | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/ext/opcache/tests/bug71127.phpt b/ext/opcache/tests/bug71127.phpt 11 | index 5770aea..0c60609 100644 12 | --- a/ext/opcache/tests/bug71127.phpt 13 | +++ b/ext/opcache/tests/bug71127.phpt 14 | @@ -3,7 +3,7 @@ Bug #71127 (Define in auto_prepend_file is overwrite) 15 | --INI-- 16 | opcache.enable=1 17 | opcache.enable_cli=1 18 | -opcache.optimization_level=0xFFFFBFFF 19 | +opcache.optimization_level=0x7FFFBFFF 20 | --SKIPIF-- 21 | 22 | --FILE-- 23 | -------------------------------------------------------------------------------- /config/patches/7.0/0103-add-NEWS-entry.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 22 Oct 2019 08:41:53 +0200 3 | Subject: add NEWS entry 4 | 5 | --- 6 | NEWS | 6 ++++++ 7 | 1 file changed, 6 insertions(+) 8 | 9 | diff --git a/NEWS b/NEWS 10 | index bf127c6..4d60a28 100644 11 | --- a/NEWS 12 | +++ b/NEWS 13 | @@ -1,6 +1,12 @@ 14 | PHP NEWS 15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 16 | 17 | +Backported from 7.1.33 18 | + 19 | +- FPM: 20 | + . Fixed bug #78599 (env_path_info underflow in fpm_main.c can lead to RCE). 21 | + (CVE-2019-11043) (Jakub Zelenka) 22 | + 23 | Backported from 7.1.32 24 | 25 | - mbstring: 26 | -------------------------------------------------------------------------------- /config/patches/7.0/0112-update-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 21 Jan 2020 09:36:28 +0100 3 | Subject: update NEWS 4 | 5 | --- 6 | NEWS | 9 +++++++++ 7 | 1 file changed, 9 insertions(+) 8 | 9 | diff --git a/NEWS b/NEWS 10 | index cc0d0a4..0e3a233 100644 11 | --- a/NEWS 12 | +++ b/NEWS 13 | @@ -1,6 +1,15 @@ 14 | PHP NEWS 15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 16 | 17 | +Backported from 7.2.27 18 | + 19 | +- Mbstring: 20 | + . Fixed bug #79037 (global buffer-overflow in `mbfl_filt_conv_big5_wchar`). 21 | + (CVE-2020-7060) (Nikita) 22 | + 23 | +- Standard: 24 | + . Fixed bug #79099 (OOB read in php_strip_tags_ex). (CVE-2020-7059). (cmb) 25 | + 26 | Backported from 7.2.26 27 | 28 | - Bcmath: 29 | -------------------------------------------------------------------------------- /config/patches/7.0/0118-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 18 Feb 2020 06:35:00 +0100 3 | Subject: NEWS 4 | 5 | --- 6 | NEWS | 8 ++++++++ 7 | 1 file changed, 8 insertions(+) 8 | 9 | diff --git a/NEWS b/NEWS 10 | index 7d087a8..1627512 100644 11 | --- a/NEWS 12 | +++ b/NEWS 13 | @@ -7,6 +7,14 @@ Backported from 7.2.28 14 | . Fixed bug #77569: (Write Access Violation in DomImplementation). (Nikita, 15 | cmb) 16 | 17 | +- Phar: 18 | + . Fixed bug #79082 (Files added to tar with Phar::buildFromIterator have 19 | + all-access permissions). (CVE-2020-7063) (stas) 20 | + 21 | +- Session: 22 | + . Fixed bug #79221 (Null Pointer Dereference in PHP Session Upload Progress). 23 | + (CVE-2020-7062) (stas) 24 | + 25 | Backported from 7.2.27 26 | 27 | - Mbstring: 28 | -------------------------------------------------------------------------------- /config/patches/7.0/0119-renew-certs-for-openssl-tests.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.0/0119-renew-certs-for-openssl-tests.patch -------------------------------------------------------------------------------- /config/patches/7.0/0128-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 14 Apr 2020 08:02:28 +0200 3 | Subject: NEWS 4 | 5 | (cherry picked from commit bd4a5ebe653f36ea7705fbc95a6ec4842d7f86fc) 6 | --- 7 | NEWS | 6 ++++++ 8 | 1 file changed, 6 insertions(+) 9 | 10 | diff --git a/NEWS b/NEWS 11 | index 081ee5d..38df268 100644 12 | --- a/NEWS 13 | +++ b/NEWS 14 | @@ -1,6 +1,12 @@ 15 | PHP NEWS 16 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 17 | 18 | +Backported from 7.2.30 19 | + 20 | +- Standard: 21 | + . Fixed bug #79330 (shell_exec silently truncates after a null byte). (stas) 22 | + . Fixed bug #79465 (OOB Read in urldecode). (CVE-2020-7067) (stas) 23 | + 24 | Backported from 7.2.29 25 | 26 | - Core: 27 | -------------------------------------------------------------------------------- /config/patches/7.0/0135-Fix-79797-Use-of-freed-hash-key-in-the-phar_parse_zi.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.0/0135-Fix-79797-Use-of-freed-hash-key-in-the-phar_parse_zi.patch -------------------------------------------------------------------------------- /config/patches/7.0/0137-Do-not-decode-cookie-names-anymore.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.0/0137-Do-not-decode-cookie-names-anymore.patch -------------------------------------------------------------------------------- /config/patches/7.0/0138-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 29 Sep 2020 09:11:38 +0200 3 | Subject: NEWS 4 | 5 | --- 6 | NEWS | 6 ++++++ 7 | 1 file changed, 6 insertions(+) 8 | 9 | diff --git a/NEWS b/NEWS 10 | index bfde893..e5d42b5 100644 11 | --- a/NEWS 12 | +++ b/NEWS 13 | @@ -1,6 +1,12 @@ 14 | PHP NEWS 15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 16 | 17 | +Backported from 7.2.34 18 | + 19 | +- Core: 20 | + . Fixed bug #79699 (PHP parses encoded cookie names so malicious `__Host-` 21 | + cookies can be sent). (CVE-2020-7070) (Stas) 22 | + 23 | Backported from 7.2.33 24 | 25 | - Core: 26 | -------------------------------------------------------------------------------- /config/patches/7.0/0142-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Mon, 4 Jan 2021 14:20:55 +0100 3 | Subject: NEWS 4 | 5 | (cherry picked from commit c784479182b92b9b3b96a7be42aa86a6c6d0b693) 6 | --- 7 | NEWS | 6 ++++++ 8 | 1 file changed, 6 insertions(+) 9 | 10 | diff --git a/NEWS b/NEWS 11 | index e5d42b5..31f498e 100644 12 | --- a/NEWS 13 | +++ b/NEWS 14 | @@ -1,6 +1,12 @@ 15 | PHP NEWS 16 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 17 | 18 | +Backported from 7.3.26 19 | + 20 | +- Standard: 21 | + . Fixed bug #77423 (FILTER_VALIDATE_URL accepts URLs with invalid userinfo). 22 | + (CVE-2020-7071) (cmb) 23 | + 24 | Backported from 7.2.34 25 | 26 | - Core: 27 | -------------------------------------------------------------------------------- /config/patches/7.0/0145-Fix-build.patch: -------------------------------------------------------------------------------- 1 | From: Nikita Popov 2 | Date: Mon, 1 Feb 2021 09:46:17 +0100 3 | Subject: Fix build 4 | 5 | (cherry picked from commit e5d767d27f94895e09f0321562fd3774d4656164) 6 | (cherry picked from commit 02352d5acc1896756dcb4645f54689ffdcc4ca52) 7 | --- 8 | ext/soap/php_sdl.c | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c 12 | index c15b7b4..4cc1ee6 100644 13 | --- a/ext/soap/php_sdl.c 14 | +++ b/ext/soap/php_sdl.c 15 | @@ -314,7 +314,7 @@ void sdl_restore_uri_credentials(sdlCtx *ctx) 16 | ctx->context = NULL; 17 | } 18 | 19 | -#define SAFE_STR(a) ((a)?a:"") 20 | +#define SAFE_STR(a) ((a)?((const char *)a):"") 21 | 22 | static void load_wsdl_ex(zval *this_ptr, char *struri, sdlCtx *ctx, int include) 23 | { 24 | -------------------------------------------------------------------------------- /config/patches/7.0/0151-Add-missing-NEWS-entry-for-80710.patch: -------------------------------------------------------------------------------- 1 | From: "Christoph M. Becker" 2 | Date: Tue, 27 Apr 2021 13:38:39 +0200 3 | Subject: Add missing NEWS entry for #80710 4 | 5 | (cherry picked from commit 60a68a45c3e9f63585151221e7fe9ddff78bd71f) 6 | (cherry picked from commit f16c623ec8ae3f3cdc73ab3fa05ae6bb0a77d1f3) 7 | --- 8 | NEWS | 5 +++++ 9 | 1 file changed, 5 insertions(+) 10 | 11 | diff --git a/NEWS b/NEWS 12 | index f025e94..55c8f1b 100644 13 | --- a/NEWS 14 | +++ b/NEWS 15 | @@ -1,6 +1,11 @@ 16 | PHP NEWS 17 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 18 | 19 | +Backported from 7.3.28 20 | + 21 | +- Imap: 22 | + . Fixed bug #80710 (imap_mail_compose() header injection). (cmb, Stas) 23 | + 24 | Backported from 7.3.27 25 | 26 | - SOAP: 27 | -------------------------------------------------------------------------------- /config/patches/7.0/0157-Fix-76452-Crash-while-parsing-blob-data-in-firebird_.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.0/0157-Fix-76452-Crash-while-parsing-blob-data-in-firebird_.patch -------------------------------------------------------------------------------- /config/patches/7.0/0158-Fix-76450-SIGSEGV-in-firebird_stmt_execute.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.0/0158-Fix-76450-SIGSEGV-in-firebird_stmt_execute.patch -------------------------------------------------------------------------------- /config/patches/7.0/0159-Fix-76449-SIGSEGV-in-firebird_handle_doer.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.0/0159-Fix-76449-SIGSEGV-in-firebird_handle_doer.patch -------------------------------------------------------------------------------- /config/patches/7.0/0160-Fix-76448-Stack-buffer-overflow-in-firebird_info_cb.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.0/0160-Fix-76448-Stack-buffer-overflow-in-firebird_info_cb.patch -------------------------------------------------------------------------------- /config/patches/7.0/0164-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Wed, 25 Aug 2021 15:23:50 +0200 3 | Subject: NEWS 4 | 5 | (cherry picked from commit 5539cefcda6aca7af220e7be7760a682abb88200) 6 | --- 7 | NEWS | 5 +++++ 8 | 1 file changed, 5 insertions(+) 9 | 10 | diff --git a/NEWS b/NEWS 11 | index a1fd66e..f6dcedc 100644 12 | --- a/NEWS 13 | +++ b/NEWS 14 | @@ -1,6 +1,11 @@ 15 | PHP NEWS 16 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 17 | 18 | +Backported from 7.3.30 19 | + 20 | +- Phar: 21 | + . Fixed bug #81211: Symlinks are followed when creating PHAR archive (cmb) 22 | + 23 | Backported from 7.3.29 24 | 25 | - Core: 26 | -------------------------------------------------------------------------------- /config/patches/7.0/0166-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Wed, 20 Oct 2021 14:11:20 +0200 3 | Subject: NEWS 4 | 5 | (cherry picked from commit 28c4ee7da2cf3428113e07326dbd46550c50c2bd) 6 | --- 7 | NEWS | 6 ++++++ 8 | 1 file changed, 6 insertions(+) 9 | 10 | diff --git a/NEWS b/NEWS 11 | index f6dcedc..24e5779 100644 12 | --- a/NEWS 13 | +++ b/NEWS 14 | @@ -1,6 +1,12 @@ 15 | PHP NEWS 16 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 17 | 18 | +Backported from 7.4.25 19 | + 20 | +- FPM: 21 | + . Fixed bug #81026 (PHP-FPM oob R/W in root process leading to privilege 22 | + escalation) (CVE-2021-21703). (Jakub Zelenka) 23 | + 24 | Backported from 7.3.30 25 | 26 | - Phar: 27 | -------------------------------------------------------------------------------- /config/patches/7.0/0167-Fix-81420-ZipArchive-extractTo-extracts-outside-of-d.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.0/0167-Fix-81420-ZipArchive-extractTo-extracts-outside-of-d.patch -------------------------------------------------------------------------------- /config/patches/7.0/0168-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Thu, 21 Oct 2021 08:30:53 +0200 3 | Subject: NEWS 4 | 5 | (cherry picked from commit 515df60d2d4f9e7514061aa11ad8141f35f5a44a) 6 | --- 7 | NEWS | 6 ++++++ 8 | 1 file changed, 6 insertions(+) 9 | 10 | diff --git a/NEWS b/NEWS 11 | index 24e5779..98e9be9 100644 12 | --- a/NEWS 13 | +++ b/NEWS 14 | @@ -7,6 +7,12 @@ Backported from 7.4.25 15 | . Fixed bug #81026 (PHP-FPM oob R/W in root process leading to privilege 16 | escalation) (CVE-2021-21703). (Jakub Zelenka) 17 | 18 | +Backported from 7.3.31 19 | + 20 | +- Zip: 21 | + . Fixed bug #81420 (ZipArchive::extractTo extracts outside of destination). 22 | + (CVE-2021-21706) (cmb) 23 | + 24 | Backported from 7.3.30 25 | 26 | - Phar: 27 | -------------------------------------------------------------------------------- /config/patches/7.0/0180-Fix-81726-phar-wrapper-DOS-when-using-quine-gzip-fil.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.0/0180-Fix-81726-phar-wrapper-DOS-when-using-quine-gzip-fil.patch -------------------------------------------------------------------------------- /config/patches/7.0/0184-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Mon, 19 Dec 2022 09:24:02 +0100 3 | Subject: NEWS 4 | 5 | (cherry picked from commit 7328f3a0344806b846bd05657bdce96e47810bf0) 6 | (cherry picked from commit dbfbd99e91701c0a5613133c06305fd70545e9ad) 7 | --- 8 | NEWS | 6 ++++++ 9 | 1 file changed, 6 insertions(+) 10 | 11 | diff --git a/NEWS b/NEWS 12 | index 5e728f7..57a021d 100644 13 | --- a/NEWS 14 | +++ b/NEWS 15 | @@ -1,6 +1,12 @@ 16 | PHP NEWS 17 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 18 | 19 | +Backported from 8.0.27 20 | + 21 | +- PDO/SQLite: 22 | + . Fixed bug #81740 (PDO::quote() may return unquoted string). 23 | + (CVE-2022-31631) (cmb) 24 | + 25 | Backported from 7.4.32 26 | 27 | - Core: 28 | -------------------------------------------------------------------------------- /config/patches/7.1/0002-static_openssl.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:51 +0200 3 | Subject: static_openssl 4 | 5 | --- 6 | acinclude.m4 | 4 +--- 7 | 1 file changed, 1 insertion(+), 3 deletions(-) 8 | 9 | diff --git a/acinclude.m4 b/acinclude.m4 10 | index 9e08cb2..52c8616 100644 11 | --- a/acinclude.m4 12 | +++ b/acinclude.m4 13 | @@ -2433,9 +2433,7 @@ AC_DEFUN([PHP_SETUP_OPENSSL],[ 14 | 15 | PHP_ADD_INCLUDE($OPENSSL_INCDIR) 16 | 17 | - PHP_CHECK_LIBRARY(crypto, CRYPTO_free, [ 18 | - PHP_ADD_LIBRARY(crypto,,$1) 19 | - ],[ 20 | + PHP_CHECK_LIBRARY(crypto, CRYPTO_free, [:],[ 21 | AC_MSG_ERROR([libcrypto not found!]) 22 | ],[ 23 | -L$OPENSSL_LIBDIR 24 | -------------------------------------------------------------------------------- /config/patches/7.1/0005-we_WANT_libtool.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:51 +0200 3 | Subject: we_WANT_libtool 4 | 5 | --- 6 | build/build2.mk | 3 ++- 7 | 1 file changed, 2 insertions(+), 1 deletion(-) 8 | 9 | diff --git a/build/build2.mk b/build/build2.mk 10 | index bc038fd..cbd2fa1 100644 11 | --- a/build/build2.mk 12 | +++ b/build/build2.mk 13 | @@ -46,7 +46,8 @@ $(TOUCH_FILES): 14 | 15 | aclocal.m4: configure.in acinclude.m4 16 | @echo rebuilding $@ 17 | - cat acinclude.m4 ./build/libtool.m4 > $@ 18 | + libtoolize --copy --install --automake --force 19 | + aclocal 20 | 21 | configure: aclocal.m4 configure.in $(config_m4_files) 22 | @echo rebuilding $@ 23 | -------------------------------------------------------------------------------- /config/patches/7.1/0009-recode_is_shared.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:51 +0200 3 | Subject: recode_is_shared 4 | 5 | --- 6 | ext/recode/config9.m4 | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | diff --git a/ext/recode/config9.m4 b/ext/recode/config9.m4 10 | index 66df50e..f0a98ca 100644 11 | --- a/ext/recode/config9.m4 12 | +++ b/ext/recode/config9.m4 13 | @@ -13,6 +13,6 @@ if test "$PHP_RECODE" != "no"; then 14 | fi 15 | 16 | if test -n "$recode_conflict"; then 17 | - AC_MSG_ERROR([recode extension can not be configured together with:$recode_conflict]) 18 | + AC_MSG_WARN([recode extension can not be used together with:$recode_conflict]) 19 | fi 20 | fi 21 | -------------------------------------------------------------------------------- /config/patches/7.1/0010-proc_open.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:52 +0200 3 | Subject: proc_open 4 | 5 | --- 6 | ext/standard/proc_open.c | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c 10 | index 17dcdb1..5c1d514 100644 11 | --- a/ext/standard/proc_open.c 12 | +++ b/ext/standard/proc_open.c 13 | @@ -62,7 +62,7 @@ 14 | * */ 15 | #ifdef PHP_CAN_SUPPORT_PROC_OPEN 16 | 17 | -#if 0 && HAVE_PTSNAME && HAVE_GRANTPT && HAVE_UNLOCKPT && HAVE_SYS_IOCTL_H && HAVE_TERMIOS_H 18 | +#if HAVE_PTSNAME && HAVE_GRANTPT && HAVE_UNLOCKPT && HAVE_SYS_IOCTL_H && HAVE_TERMIOS_H 19 | # include 20 | # include 21 | # define PHP_CAN_DO_PTS 1 22 | -------------------------------------------------------------------------------- /config/patches/7.1/0015-strcmp_null-OnUpdateErrorLog.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: strcmp_null-OnUpdateErrorLog 4 | 5 | --- 6 | tests/func/null-new_val.phpt | 10 ++++++++++ 7 | 1 file changed, 10 insertions(+) 8 | create mode 100644 tests/func/null-new_val.phpt 9 | 10 | diff --git a/tests/func/null-new_val.phpt b/tests/func/null-new_val.phpt 11 | new file mode 100644 12 | index 0000000..412da39 13 | --- /dev/null 14 | +++ b/tests/func/null-new_val.phpt 15 | @@ -0,0 +1,10 @@ 16 | +--TEST-- 17 | +ini_restore strcmp NULL new_val 18 | +--FILE-- 19 | + 25 | +--EXPECT-- 26 | -------------------------------------------------------------------------------- /config/patches/7.1/0016-dont-gitclean-in-build.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: dont-gitclean-in-build 4 | 5 | --- 6 | build/build.mk | 1 - 7 | 1 file changed, 1 deletion(-) 8 | 9 | diff --git a/build/build.mk b/build/build.mk 10 | index 1ce958f..b8c7492 100644 11 | --- a/build/build.mk 12 | +++ b/build/build.mk 13 | @@ -63,6 +63,5 @@ gitclean-work: 14 | @if (test ! -f '.git/info/exclude' || grep -s "git-ls-files" .git/info/exclude); then \ 15 | (echo "Rebuild .git/info/exclude" && echo '*.o' > .git/info/exclude && git svn propget svn:ignore | grep -v config.nice >> .git/info/exclude); \ 16 | fi; \ 17 | - git clean -X -f -d; 18 | 19 | .PHONY: $(ALWAYS) snapshot 20 | -------------------------------------------------------------------------------- /config/patches/7.1/0017-qdbm-is-usr_include_qdbm.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: qdbm-is-usr_include_qdbm 4 | 5 | --- 6 | ext/dba/config.m4 | 4 ++++ 7 | 1 file changed, 4 insertions(+) 8 | 9 | diff --git a/ext/dba/config.m4 b/ext/dba/config.m4 10 | index 64e1661..edc7d11 100644 11 | --- a/ext/dba/config.m4 12 | +++ b/ext/dba/config.m4 13 | @@ -113,6 +113,10 @@ if test "$PHP_QDBM" != "no"; then 14 | THIS_PREFIX=$i 15 | THIS_INCLUDE=$i/include/depot.h 16 | break 17 | + elif test -f "$i/include/qdbm/depot.h"; then 18 | + THIS_PREFIX=$i 19 | + THIS_INCLUDE=$i/include/qdbm/depot.h 20 | + break 21 | fi 22 | done 23 | 24 | -------------------------------------------------------------------------------- /config/patches/7.1/0021-php-fpm-sysconfdir.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:54 +0200 3 | Subject: php-fpm-sysconfdir 4 | 5 | --- 6 | sapi/fpm/fpm/fpm_conf.c | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | diff --git a/sapi/fpm/fpm/fpm_conf.c b/sapi/fpm/fpm/fpm_conf.c 10 | index f8d5da4..7eb7495 100644 11 | --- a/sapi/fpm/fpm/fpm_conf.c 12 | +++ b/sapi/fpm/fpm/fpm_conf.c 13 | @@ -1681,7 +1681,7 @@ int fpm_conf_init_main(int test_conf, int force_daemon) /* {{{ */ 14 | char *tmp; 15 | 16 | if (fpm_globals.prefix == NULL) { 17 | - spprintf(&tmp, 0, "%s/php-fpm.conf", PHP_SYSCONFDIR); 18 | + spprintf(&tmp, 0, "%s/php/%d.%d/fpm/php-fpm.conf", PHP_SYSCONFDIR, PHP_MAJOR_VERSION, PHP_MINOR_VERSION); 19 | } else { 20 | spprintf(&tmp, 0, "%s/etc/php-fpm.conf", fpm_globals.prefix); 21 | } 22 | -------------------------------------------------------------------------------- /config/patches/7.1/0024-hurd-noptrace.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:54 +0200 3 | Subject: hurd-noptrace 4 | 5 | --- 6 | sapi/fpm/config.m4 | 5 +++++ 7 | 1 file changed, 5 insertions(+) 8 | 9 | diff --git a/sapi/fpm/config.m4 b/sapi/fpm/config.m4 10 | index 4cf4ba4..bdce0bd 100644 11 | --- a/sapi/fpm/config.m4 12 | +++ b/sapi/fpm/config.m4 13 | @@ -147,6 +147,11 @@ AC_DEFUN([AC_FPM_TRACE], 14 | pid_t child; 15 | int status; 16 | 17 | + /* broken ptrace on Hurd, avoid hanging */ 18 | + #ifdef __GNU__ 19 | + return 10; 20 | + #endif 21 | + 22 | if ( (child = fork()) ) { /* parent */ 23 | int ret = 0; 24 | 25 | -------------------------------------------------------------------------------- /config/patches/7.1/0069-Mark-bug76348.phpt-as-online-test.patch: -------------------------------------------------------------------------------- 1 | From: Nikita Popov 2 | Date: Tue, 19 Mar 2019 15:47:25 +0100 3 | Subject: Mark bug76348.phpt as online test 4 | 5 | (cherry picked from commit 28263642984e8f1d582b75b03204a54c4989cd33) 6 | --- 7 | ext/soap/tests/bugs/bug76348.phpt | 1 + 8 | 1 file changed, 1 insertion(+) 9 | 10 | diff --git a/ext/soap/tests/bugs/bug76348.phpt b/ext/soap/tests/bugs/bug76348.phpt 11 | index 6b9e71b..3049880 100644 12 | --- a/ext/soap/tests/bugs/bug76348.phpt 13 | +++ b/ext/soap/tests/bugs/bug76348.phpt 14 | @@ -3,6 +3,7 @@ Bug #76348 (WSDL_CACHE_MEMORY causes Segmentation fault) 15 | --SKIPIF-- 16 | 20 | --FILE-- 21 | 2 | Date: Tue, 18 Feb 2020 06:34:16 +0100 3 | Subject: NEWS 4 | 5 | --- 6 | NEWS | 8 ++++++++ 7 | 1 file changed, 8 insertions(+) 8 | 9 | diff --git a/NEWS b/NEWS 10 | index 7e220aa..4233a53 100644 11 | --- a/NEWS 12 | +++ b/NEWS 13 | @@ -7,6 +7,14 @@ Backported from 7.2.28 14 | . Fixed bug #77569: (Write Access Violation in DomImplementation). (Nikita, 15 | cmb) 16 | 17 | +- Phar: 18 | + . Fixed bug #79082 (Files added to tar with Phar::buildFromIterator have 19 | + all-access permissions). (CVE-2020-7063) (stas) 20 | + 21 | +- Session: 22 | + . Fixed bug #79221 (Null Pointer Dereference in PHP Session Upload Progress). 23 | + (CVE-2020-7062) (stas) 24 | + 25 | Backported from 7.2.27 26 | 27 | - Mbstring: 28 | -------------------------------------------------------------------------------- /config/patches/7.1/0071-renew-certs-for-openssl-tests.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.1/0071-renew-certs-for-openssl-tests.patch -------------------------------------------------------------------------------- /config/patches/7.1/0074-Fix-test.patch: -------------------------------------------------------------------------------- 1 | From: Stanislav Malyshev 2 | Date: Sun, 15 Mar 2020 17:55:28 -0700 3 | Subject: Fix test 4 | 5 | (cherry picked from commit 2c081b7e269d0f63cd9d60a40997f18b5cf793be) 6 | --- 7 | ext/exif/tests/bug79282.phpt | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/ext/exif/tests/bug79282.phpt b/ext/exif/tests/bug79282.phpt 11 | index 7b7e365..df91127 100644 12 | --- a/ext/exif/tests/bug79282.phpt 13 | +++ b/ext/exif/tests/bug79282.phpt 14 | @@ -7,7 +7,7 @@ var_dump(exif_read_data('data://image/jpeg;base64,/9jhAAlFeGlmAAAg')); 15 | 16 | ?> 17 | --EXPECTF-- 18 | -Warning: exif_read_data(): Invalid TIFF alignment marker in %s on line %d 19 | +Warning: exif_read_data(): Missing TIFF alignment marker in %s on line %d 20 | 21 | Warning: exif_read_data(): File structure corrupted in %s on line %d 22 | 23 | -------------------------------------------------------------------------------- /config/patches/7.1/0076-Fix-bug-79329-get_headers-should-not-accept-0.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 17 Mar 2020 07:25:12 +0100 3 | Subject: Fix bug #79329 - get_headers should not accept \0 4 | 5 | From 0d139c5b94a5f485a66901919e51faddb0371c43 6 | --- 7 | ext/standard/url.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/ext/standard/url.c b/ext/standard/url.c 11 | index 0eac03e..39e5b1b 100644 12 | --- a/ext/standard/url.c 13 | +++ b/ext/standard/url.c 14 | @@ -660,7 +660,7 @@ PHP_FUNCTION(get_headers) 15 | zval *zcontext = NULL; 16 | php_stream_context *context; 17 | 18 | - if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|lr!", &url, &url_len, &format, &zcontext) == FAILURE) { 19 | + if (zend_parse_parameters(ZEND_NUM_ARGS(), "p|lr!", &url, &url_len, &format, &zcontext) == FAILURE) { 20 | return; 21 | } 22 | 23 | -------------------------------------------------------------------------------- /config/patches/7.1/0080-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 14 Apr 2020 08:02:28 +0200 3 | Subject: NEWS 4 | 5 | --- 6 | NEWS | 6 ++++++ 7 | 1 file changed, 6 insertions(+) 8 | 9 | diff --git a/NEWS b/NEWS 10 | index f0bec6a..cc1e992 100644 11 | --- a/NEWS 12 | +++ b/NEWS 13 | @@ -1,6 +1,12 @@ 14 | PHP NEWS 15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 16 | 17 | +Backported from 7.2.30 18 | + 19 | +- Standard: 20 | + . Fixed bug #79330 (shell_exec silently truncates after a null byte). (stas) 21 | + . Fixed bug #79465 (OOB Read in urldecode). (CVE-2020-7067) (stas) 22 | + 23 | Backported from 7.2.29 24 | 25 | - Core: 26 | -------------------------------------------------------------------------------- /config/patches/7.1/0089-Fix-79797-Use-of-freed-hash-key-in-the-phar_parse_zi.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.1/0089-Fix-79797-Use-of-freed-hash-key-in-the-phar_parse_zi.patch -------------------------------------------------------------------------------- /config/patches/7.1/0093-Do-not-decode-cookie-names-anymore.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.1/0093-Do-not-decode-cookie-names-anymore.patch -------------------------------------------------------------------------------- /config/patches/7.1/0098-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Mon, 4 Jan 2021 14:20:55 +0100 3 | Subject: NEWS 4 | 5 | --- 6 | NEWS | 6 ++++++ 7 | 1 file changed, 6 insertions(+) 8 | 9 | diff --git a/NEWS b/NEWS 10 | index 49bdbdd..2d247db 100644 11 | --- a/NEWS 12 | +++ b/NEWS 13 | @@ -1,6 +1,12 @@ 14 | PHP NEWS 15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 16 | 17 | +Backported from 7.3.26 18 | + 19 | +- Standard: 20 | + . Fixed bug #77423 (FILTER_VALIDATE_URL accepts URLs with invalid userinfo). 21 | + (CVE-2020-7071) (cmb) 22 | + 23 | Backported from 7.2.34 24 | 25 | - Core: 26 | -------------------------------------------------------------------------------- /config/patches/7.1/0101-Fix-build.patch: -------------------------------------------------------------------------------- 1 | From: Nikita Popov 2 | Date: Mon, 1 Feb 2021 09:46:17 +0100 3 | Subject: Fix build 4 | 5 | (cherry picked from commit e5d767d27f94895e09f0321562fd3774d4656164) 6 | (cherry picked from commit 02352d5acc1896756dcb4645f54689ffdcc4ca52) 7 | --- 8 | ext/soap/php_sdl.c | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c 12 | index aef8847..2375c3c 100644 13 | --- a/ext/soap/php_sdl.c 14 | +++ b/ext/soap/php_sdl.c 15 | @@ -314,7 +314,7 @@ void sdl_restore_uri_credentials(sdlCtx *ctx) 16 | ctx->context = NULL; 17 | } 18 | 19 | -#define SAFE_STR(a) ((a)?a:"") 20 | +#define SAFE_STR(a) ((a)?((const char *)a):"") 21 | 22 | static void load_wsdl_ex(zval *this_ptr, char *struri, sdlCtx *ctx, int include) 23 | { 24 | -------------------------------------------------------------------------------- /config/patches/7.1/0111-Fix-76452-Crash-while-parsing-blob-data-in-firebird_.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.1/0111-Fix-76452-Crash-while-parsing-blob-data-in-firebird_.patch -------------------------------------------------------------------------------- /config/patches/7.1/0112-Fix-76450-SIGSEGV-in-firebird_stmt_execute.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.1/0112-Fix-76450-SIGSEGV-in-firebird_stmt_execute.patch -------------------------------------------------------------------------------- /config/patches/7.1/0113-Fix-76449-SIGSEGV-in-firebird_handle_doer.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.1/0113-Fix-76449-SIGSEGV-in-firebird_handle_doer.patch -------------------------------------------------------------------------------- /config/patches/7.1/0114-Fix-76448-Stack-buffer-overflow-in-firebird_info_cb.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.1/0114-Fix-76448-Stack-buffer-overflow-in-firebird_info_cb.patch -------------------------------------------------------------------------------- /config/patches/7.1/0118-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Wed, 25 Aug 2021 15:23:50 +0200 3 | Subject: NEWS 4 | 5 | (cherry picked from commit 5539cefcda6aca7af220e7be7760a682abb88200) 6 | --- 7 | NEWS | 5 +++++ 8 | 1 file changed, 5 insertions(+) 9 | 10 | diff --git a/NEWS b/NEWS 11 | index a30ee61..0b4a99b 100644 12 | --- a/NEWS 13 | +++ b/NEWS 14 | @@ -1,6 +1,11 @@ 15 | PHP NEWS 16 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 17 | 18 | +Backported from 7.3.30 19 | + 20 | +- Phar: 21 | + . Fixed bug #81211: Symlinks are followed when creating PHAR archive (cmb) 22 | + 23 | Backported from 7.3.29 24 | 25 | - Core: 26 | -------------------------------------------------------------------------------- /config/patches/7.1/0120-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Wed, 20 Oct 2021 14:11:20 +0200 3 | Subject: NEWS 4 | 5 | --- 6 | NEWS | 6 ++++++ 7 | 1 file changed, 6 insertions(+) 8 | 9 | diff --git a/NEWS b/NEWS 10 | index 0b4a99b..30833b4 100644 11 | --- a/NEWS 12 | +++ b/NEWS 13 | @@ -1,6 +1,12 @@ 14 | PHP NEWS 15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 16 | 17 | +Backported from 7.4.25 18 | + 19 | +- FPM: 20 | + . Fixed bug #81026 (PHP-FPM oob R/W in root process leading to privilege 21 | + escalation) (CVE-2021-21703). (Jakub Zelenka) 22 | + 23 | Backported from 7.3.30 24 | 25 | - Phar: 26 | -------------------------------------------------------------------------------- /config/patches/7.1/0121-update-README.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Wed, 20 Oct 2021 18:11:27 +0200 3 | Subject: update README 4 | 5 | --- 6 | README.md | 1 - 7 | 1 file changed, 1 deletion(-) 8 | 9 | diff --git a/README.md b/README.md 10 | index db7b983..c45ab1e 100644 11 | --- a/README.md 12 | +++ b/README.md 13 | @@ -2,4 +2,3 @@ This is a fork of the official PHP repository which received backport of securit 14 | 15 | This branch is PHP version 7.1.33 with security fix. 16 | 17 | -**Note that this branch receives no maintenance from Microsoft.** 18 | \ No newline at end of file 19 | -------------------------------------------------------------------------------- /config/patches/7.1/0122-Fix-81420-ZipArchive-extractTo-extracts-outside-of-d.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.1/0122-Fix-81420-ZipArchive-extractTo-extracts-outside-of-d.patch -------------------------------------------------------------------------------- /config/patches/7.1/0123-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Thu, 21 Oct 2021 08:30:53 +0200 3 | Subject: NEWS 4 | 5 | (cherry picked from commit 515df60d2d4f9e7514061aa11ad8141f35f5a44a) 6 | --- 7 | NEWS | 6 ++++++ 8 | 1 file changed, 6 insertions(+) 9 | 10 | diff --git a/NEWS b/NEWS 11 | index 30833b4..97e7584 100644 12 | --- a/NEWS 13 | +++ b/NEWS 14 | @@ -7,6 +7,12 @@ Backported from 7.4.25 15 | . Fixed bug #81026 (PHP-FPM oob R/W in root process leading to privilege 16 | escalation) (CVE-2021-21703). (Jakub Zelenka) 17 | 18 | +Backported from 7.3.31 19 | + 20 | +- Zip: 21 | + . Fixed bug #81420 (ZipArchive::extractTo extracts outside of destination). 22 | + (CVE-2021-21706) (cmb) 23 | + 24 | Backported from 7.3.30 25 | 26 | - Phar: 27 | -------------------------------------------------------------------------------- /config/patches/7.1/0135-Fix-81726-phar-wrapper-DOS-when-using-quine-gzip-fil.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.1/0135-Fix-81726-phar-wrapper-DOS-when-using-quine-gzip-fil.patch -------------------------------------------------------------------------------- /config/patches/7.1/0139-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Mon, 19 Dec 2022 09:24:02 +0100 3 | Subject: NEWS 4 | 5 | (cherry picked from commit 7328f3a0344806b846bd05657bdce96e47810bf0) 6 | --- 7 | NEWS | 6 ++++++ 8 | 1 file changed, 6 insertions(+) 9 | 10 | diff --git a/NEWS b/NEWS 11 | index 5653be9..4876ceb 100644 12 | --- a/NEWS 13 | +++ b/NEWS 14 | @@ -1,6 +1,12 @@ 15 | PHP NEWS 16 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 17 | 18 | +Backported from 8.0.27 19 | + 20 | +- PDO/SQLite: 21 | + . Fixed bug #81740 (PDO::quote() may return unquoted string). 22 | + (CVE-2022-31631) (cmb) 23 | + 24 | Backported from 7.4.32 25 | 26 | - Core: 27 | -------------------------------------------------------------------------------- /config/patches/7.1/0145-Fix-GH-11382-add-missing-hash-header-for-bin2hex.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 6 Jun 2023 18:05:22 +0200 3 | Subject: Fix GH-11382 add missing hash header for bin2hex 4 | 5 | (cherry picked from commit 40439039c224bb8cdebd1b7b3d03b8cc11e7cce7) 6 | --- 7 | ext/soap/php_http.c | 1 + 8 | 1 file changed, 1 insertion(+) 9 | 10 | diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c 11 | index 9e5ecf6..2f281dd 100644 12 | --- a/ext/soap/php_http.c 13 | +++ b/ext/soap/php_http.c 14 | @@ -23,6 +23,7 @@ 15 | #include "ext/standard/base64.h" 16 | #include "ext/standard/md5.h" 17 | #include "ext/standard/php_random.h" 18 | +#include "ext/hash/php_hash.h" 19 | 20 | static char *get_http_header_value(char *headers, char *type); 21 | static zend_string *get_http_body(php_stream *socketd, int close, char *headers); 22 | -------------------------------------------------------------------------------- /config/patches/7.2/0002-static_openssl.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:51 +0200 3 | Subject: static_openssl 4 | 5 | --- 6 | acinclude.m4 | 4 +--- 7 | 1 file changed, 1 insertion(+), 3 deletions(-) 8 | 9 | diff --git a/acinclude.m4 b/acinclude.m4 10 | index 0690ec7..342299a 100644 11 | --- a/acinclude.m4 12 | +++ b/acinclude.m4 13 | @@ -2421,9 +2421,7 @@ AC_DEFUN([PHP_SETUP_OPENSSL],[ 14 | 15 | PHP_ADD_INCLUDE($OPENSSL_INCDIR) 16 | 17 | - PHP_CHECK_LIBRARY(crypto, CRYPTO_free, [ 18 | - PHP_ADD_LIBRARY(crypto,,$1) 19 | - ],[ 20 | + PHP_CHECK_LIBRARY(crypto, CRYPTO_free, [:],[ 21 | AC_MSG_ERROR([libcrypto not found!]) 22 | ],[ 23 | -L$OPENSSL_LIBDIR 24 | -------------------------------------------------------------------------------- /config/patches/7.2/0005-we_WANT_libtool.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:51 +0200 3 | Subject: we_WANT_libtool 4 | 5 | --- 6 | build/build2.mk | 3 ++- 7 | 1 file changed, 2 insertions(+), 1 deletion(-) 8 | 9 | diff --git a/build/build2.mk b/build/build2.mk 10 | index 1742bdf..c70ba60 100644 11 | --- a/build/build2.mk 12 | +++ b/build/build2.mk 13 | @@ -46,7 +46,8 @@ $(TOUCH_FILES): 14 | 15 | aclocal.m4: configure.ac acinclude.m4 16 | @echo rebuilding $@ 17 | - cat acinclude.m4 ./build/libtool.m4 > $@ 18 | + libtoolize --copy --install --automake --force 19 | + aclocal 20 | 21 | configure: aclocal.m4 configure.ac $(config_m4_files) 22 | @echo rebuilding $@ 23 | -------------------------------------------------------------------------------- /config/patches/7.2/0009-recode_is_shared.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:51 +0200 3 | Subject: recode_is_shared 4 | 5 | --- 6 | ext/recode/config9.m4 | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | diff --git a/ext/recode/config9.m4 b/ext/recode/config9.m4 10 | index 66df50e..f0a98ca 100644 11 | --- a/ext/recode/config9.m4 12 | +++ b/ext/recode/config9.m4 13 | @@ -13,6 +13,6 @@ if test "$PHP_RECODE" != "no"; then 14 | fi 15 | 16 | if test -n "$recode_conflict"; then 17 | - AC_MSG_ERROR([recode extension can not be configured together with:$recode_conflict]) 18 | + AC_MSG_WARN([recode extension can not be used together with:$recode_conflict]) 19 | fi 20 | fi 21 | -------------------------------------------------------------------------------- /config/patches/7.2/0010-proc_open.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:52 +0200 3 | Subject: proc_open 4 | 5 | --- 6 | ext/standard/proc_open.c | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c 10 | index 9aa5f74..81368fd 100644 11 | --- a/ext/standard/proc_open.c 12 | +++ b/ext/standard/proc_open.c 13 | @@ -57,7 +57,7 @@ 14 | * */ 15 | #ifdef PHP_CAN_SUPPORT_PROC_OPEN 16 | 17 | -#if 0 && HAVE_PTSNAME && HAVE_GRANTPT && HAVE_UNLOCKPT && HAVE_SYS_IOCTL_H && HAVE_TERMIOS_H 18 | +#if HAVE_PTSNAME && HAVE_GRANTPT && HAVE_UNLOCKPT && HAVE_SYS_IOCTL_H && HAVE_TERMIOS_H 19 | # include 20 | # include 21 | # define PHP_CAN_DO_PTS 1 22 | -------------------------------------------------------------------------------- /config/patches/7.2/0015-strcmp_null-OnUpdateErrorLog.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: strcmp_null-OnUpdateErrorLog 4 | 5 | --- 6 | tests/func/null-new_val.phpt | 10 ++++++++++ 7 | 1 file changed, 10 insertions(+) 8 | create mode 100644 tests/func/null-new_val.phpt 9 | 10 | diff --git a/tests/func/null-new_val.phpt b/tests/func/null-new_val.phpt 11 | new file mode 100644 12 | index 0000000..412da39 13 | --- /dev/null 14 | +++ b/tests/func/null-new_val.phpt 15 | @@ -0,0 +1,10 @@ 16 | +--TEST-- 17 | +ini_restore strcmp NULL new_val 18 | +--FILE-- 19 | + 25 | +--EXPECT-- 26 | -------------------------------------------------------------------------------- /config/patches/7.2/0016-dont-gitclean-in-build.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: dont-gitclean-in-build 4 | 5 | --- 6 | build/build.mk | 1 - 7 | 1 file changed, 1 deletion(-) 8 | 9 | diff --git a/build/build.mk b/build/build.mk 10 | index 1ce958f..b8c7492 100644 11 | --- a/build/build.mk 12 | +++ b/build/build.mk 13 | @@ -63,6 +63,5 @@ gitclean-work: 14 | @if (test ! -f '.git/info/exclude' || grep -s "git-ls-files" .git/info/exclude); then \ 15 | (echo "Rebuild .git/info/exclude" && echo '*.o' > .git/info/exclude && git svn propget svn:ignore | grep -v config.nice >> .git/info/exclude); \ 16 | fi; \ 17 | - git clean -X -f -d; 18 | 19 | .PHONY: $(ALWAYS) snapshot 20 | -------------------------------------------------------------------------------- /config/patches/7.2/0017-qdbm-is-usr_include_qdbm.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: qdbm-is-usr_include_qdbm 4 | 5 | --- 6 | ext/dba/config.m4 | 4 ++++ 7 | 1 file changed, 4 insertions(+) 8 | 9 | diff --git a/ext/dba/config.m4 b/ext/dba/config.m4 10 | index 0f270a8..7d074f7 100644 11 | --- a/ext/dba/config.m4 12 | +++ b/ext/dba/config.m4 13 | @@ -116,6 +116,10 @@ if test "$PHP_QDBM" != "no"; then 14 | THIS_PREFIX=$i 15 | THIS_INCLUDE=$i/include/depot.h 16 | break 17 | + elif test -f "$i/include/qdbm/depot.h"; then 18 | + THIS_PREFIX=$i 19 | + THIS_INCLUDE=$i/include/qdbm/depot.h 20 | + break 21 | fi 22 | done 23 | 24 | -------------------------------------------------------------------------------- /config/patches/7.2/0021-php-fpm-sysconfdir.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:54 +0200 3 | Subject: php-fpm-sysconfdir 4 | 5 | --- 6 | sapi/fpm/fpm/fpm_conf.c | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | diff --git a/sapi/fpm/fpm/fpm_conf.c b/sapi/fpm/fpm/fpm_conf.c 10 | index 88959ee..be90ce0 100644 11 | --- a/sapi/fpm/fpm/fpm_conf.c 12 | +++ b/sapi/fpm/fpm/fpm_conf.c 13 | @@ -1707,7 +1707,7 @@ int fpm_conf_init_main(int test_conf, int force_daemon) /* {{{ */ 14 | char *tmp; 15 | 16 | if (fpm_globals.prefix == NULL) { 17 | - spprintf(&tmp, 0, "%s/php-fpm.conf", PHP_SYSCONFDIR); 18 | + spprintf(&tmp, 0, "%s/php/%d.%d/fpm/php-fpm.conf", PHP_SYSCONFDIR, PHP_MAJOR_VERSION, PHP_MINOR_VERSION); 19 | } else { 20 | spprintf(&tmp, 0, "%s/etc/php-fpm.conf", fpm_globals.prefix); 21 | } 22 | -------------------------------------------------------------------------------- /config/patches/7.2/0024-hurd-noptrace.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:54 +0200 3 | Subject: hurd-noptrace 4 | 5 | --- 6 | sapi/fpm/config.m4 | 5 +++++ 7 | 1 file changed, 5 insertions(+) 8 | 9 | diff --git a/sapi/fpm/config.m4 b/sapi/fpm/config.m4 10 | index 4cf4ba4..bdce0bd 100644 11 | --- a/sapi/fpm/config.m4 12 | +++ b/sapi/fpm/config.m4 13 | @@ -147,6 +147,11 @@ AC_DEFUN([AC_FPM_TRACE], 14 | pid_t child; 15 | int status; 16 | 17 | + /* broken ptrace on Hurd, avoid hanging */ 18 | + #ifdef __GNU__ 19 | + return 10; 20 | + #endif 21 | + 22 | if ( (child = fork()) ) { /* parent */ 23 | int ret = 0; 24 | 25 | -------------------------------------------------------------------------------- /config/patches/7.2/0036-php-5.4.9-fixheader.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:56 +0200 3 | Subject: php-5.4.9-fixheader 4 | 5 | Make generated php_config.h constant across rebuilds. 6 | --- 7 | configure.ac | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/configure.ac b/configure.ac 11 | index 63a22a8..5f791de 100644 12 | --- a/configure.ac 13 | +++ b/configure.ac 14 | @@ -1310,7 +1310,7 @@ PHP_BUILD_DATE=`date -u +%Y-%m-%d` 15 | fi 16 | AC_DEFINE_UNQUOTED(PHP_BUILD_DATE,"$PHP_BUILD_DATE",[PHP build date]) 17 | 18 | -PHP_UNAME=`uname -a | xargs` 19 | +PHP_UNAME=`uname | xargs` 20 | AC_DEFINE_UNQUOTED(PHP_UNAME,"$PHP_UNAME",[uname -a output]) 21 | PHP_OS=`uname | xargs` 22 | AC_DEFINE_UNQUOTED(PHP_OS,"$PHP_OS",[uname output]) 23 | -------------------------------------------------------------------------------- /config/patches/7.2/0059-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Thu, 7 Jan 2021 11:42:58 +0100 3 | Subject: NEWS 4 | 5 | --- 6 | NEWS | 7 +++++++ 7 | 1 file changed, 7 insertions(+) 8 | 9 | diff --git a/NEWS b/NEWS 10 | index f260d7b..f403411 100644 11 | --- a/NEWS 12 | +++ b/NEWS 13 | @@ -1,5 +1,12 @@ 14 | PHP NEWS 15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 16 | + 17 | +Backported from 7.3.26 18 | + 19 | +- Standard: 20 | + . Fixed bug #77423 (FILTER_VALIDATE_URL accepts URLs with invalid userinfo). 21 | + (CVE-2020-7071) (cmb) 22 | + 23 | 01 Oct 2020, PHP 7.2.34 24 | 25 | - Core: 26 | -------------------------------------------------------------------------------- /config/patches/7.2/0062-Fix-build.patch: -------------------------------------------------------------------------------- 1 | From: Nikita Popov 2 | Date: Mon, 1 Feb 2021 09:46:17 +0100 3 | Subject: Fix build 4 | 5 | (cherry picked from commit e5d767d27f94895e09f0321562fd3774d4656164) 6 | --- 7 | ext/soap/php_sdl.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c 11 | index b8d40f0..522db1c 100644 12 | --- a/ext/soap/php_sdl.c 13 | +++ b/ext/soap/php_sdl.c 14 | @@ -314,7 +314,7 @@ void sdl_restore_uri_credentials(sdlCtx *ctx) 15 | ctx->context = NULL; 16 | } 17 | 18 | -#define SAFE_STR(a) ((a)?a:"") 19 | +#define SAFE_STR(a) ((a)?((const char *)a):"") 20 | 21 | static void load_wsdl_ex(zval *this_ptr, char *struri, sdlCtx *ctx, int include) 22 | { 23 | -------------------------------------------------------------------------------- /config/patches/7.2/0068-Add-missing-NEWS-entry-for-80710.patch: -------------------------------------------------------------------------------- 1 | From: "Christoph M. Becker" 2 | Date: Tue, 27 Apr 2021 13:38:39 +0200 3 | Subject: Add missing NEWS entry for #80710 4 | 5 | (cherry picked from commit 60a68a45c3e9f63585151221e7fe9ddff78bd71f) 6 | --- 7 | NEWS | 5 +++++ 8 | 1 file changed, 5 insertions(+) 9 | 10 | diff --git a/NEWS b/NEWS 11 | index a006646..e45ca05 100644 12 | --- a/NEWS 13 | +++ b/NEWS 14 | @@ -1,6 +1,11 @@ 15 | PHP NEWS 16 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 17 | 18 | +Backported from 7.3.28 19 | + 20 | +- Imap: 21 | + . Fixed bug #80710 (imap_mail_compose() header injection). (cmb, Stas) 22 | + 23 | Backported from 7.3.27 24 | 25 | - SOAP: 26 | -------------------------------------------------------------------------------- /config/patches/7.2/0072-Fix-76452-Crash-while-parsing-blob-data-in-firebird_.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.2/0072-Fix-76452-Crash-while-parsing-blob-data-in-firebird_.patch -------------------------------------------------------------------------------- /config/patches/7.2/0073-Fix-76450-SIGSEGV-in-firebird_stmt_execute.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.2/0073-Fix-76450-SIGSEGV-in-firebird_stmt_execute.patch -------------------------------------------------------------------------------- /config/patches/7.2/0074-Fix-76449-SIGSEGV-in-firebird_handle_doer.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.2/0074-Fix-76449-SIGSEGV-in-firebird_handle_doer.patch -------------------------------------------------------------------------------- /config/patches/7.2/0075-Fix-76448-Stack-buffer-overflow-in-firebird_info_cb.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.2/0075-Fix-76448-Stack-buffer-overflow-in-firebird_info_cb.patch -------------------------------------------------------------------------------- /config/patches/7.2/0079-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Wed, 25 Aug 2021 15:23:50 +0200 3 | Subject: NEWS 4 | 5 | --- 6 | NEWS | 5 +++++ 7 | 1 file changed, 5 insertions(+) 8 | 9 | diff --git a/NEWS b/NEWS 10 | index c4a96e2..65c98f7 100644 11 | --- a/NEWS 12 | +++ b/NEWS 13 | @@ -1,6 +1,11 @@ 14 | PHP NEWS 15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 16 | 17 | +Backported from 7.3.30 18 | + 19 | +- Phar: 20 | + . Fixed bug #81211: Symlinks are followed when creating PHAR archive (cmb) 21 | + 22 | Backported from 7.3.29 23 | 24 | - Core: 25 | -------------------------------------------------------------------------------- /config/patches/7.2/0081-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Wed, 20 Oct 2021 14:06:59 +0200 3 | Subject: NEWS 4 | 5 | --- 6 | NEWS | 6 ++++++ 7 | 1 file changed, 6 insertions(+) 8 | 9 | diff --git a/NEWS b/NEWS 10 | index 65c98f7..ef6f2ef 100644 11 | --- a/NEWS 12 | +++ b/NEWS 13 | @@ -1,6 +1,12 @@ 14 | PHP NEWS 15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 16 | 17 | +Backported from 7.4.25 18 | + 19 | +- FPM: 20 | + . Fixed bug #81026 (PHP-FPM oob R/W in root process leading to privilege 21 | + escalation) (CVE-2021-21703). (Jakub Zelenka) 22 | + 23 | Backported from 7.3.30 24 | 25 | - Phar: 26 | -------------------------------------------------------------------------------- /config/patches/7.2/0083-Fix-81420-ZipArchive-extractTo-extracts-outside-of-d.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.2/0083-Fix-81420-ZipArchive-extractTo-extracts-outside-of-d.patch -------------------------------------------------------------------------------- /config/patches/7.2/0084-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Thu, 21 Oct 2021 08:30:53 +0200 3 | Subject: NEWS 4 | 5 | --- 6 | NEWS | 6 ++++++ 7 | 1 file changed, 6 insertions(+) 8 | 9 | diff --git a/NEWS b/NEWS 10 | index ef6f2ef..812deff 100644 11 | --- a/NEWS 12 | +++ b/NEWS 13 | @@ -7,6 +7,12 @@ Backported from 7.4.25 14 | . Fixed bug #81026 (PHP-FPM oob R/W in root process leading to privilege 15 | escalation) (CVE-2021-21703). (Jakub Zelenka) 16 | 17 | +Backported from 7.3.31 18 | + 19 | +- Zip: 20 | + . Fixed bug #81420 (ZipArchive::extractTo extracts outside of destination). 21 | + (CVE-2021-21706) (cmb) 22 | + 23 | Backported from 7.3.30 24 | 25 | - Phar: 26 | -------------------------------------------------------------------------------- /config/patches/7.2/0086-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Mon, 15 Nov 2021 09:05:33 +0100 3 | Subject: NEWS 4 | 5 | --- 6 | NEWS | 8 +++++++- 7 | 1 file changed, 7 insertions(+), 1 deletion(-) 8 | 9 | diff --git a/NEWS b/NEWS 10 | index 812deff..4f2adff 100644 11 | --- a/NEWS 12 | +++ b/NEWS 13 | @@ -1,7 +1,13 @@ 14 | PHP NEWS 15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 16 | 17 | -Backported from 7.4.25 18 | +Backported from 7.3.33 19 | + 20 | +- XML: 21 | + . Fix #79971: special character is breaking the path in xml function. 22 | + (CVE-2021-21707) (cmb) 23 | + 24 | +Backported from 7.3.32 25 | 26 | - FPM: 27 | . Fixed bug #81026 (PHP-FPM oob R/W in root process leading to privilege 28 | -------------------------------------------------------------------------------- /config/patches/7.2/0095-Fix-81726-phar-wrapper-DOS-when-using-quine-gzip-fil.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.2/0095-Fix-81726-phar-wrapper-DOS-when-using-quine-gzip-fil.patch -------------------------------------------------------------------------------- /config/patches/7.2/0100-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Mon, 19 Dec 2022 09:24:02 +0100 3 | Subject: NEWS 4 | 5 | (cherry picked from commit 7328f3a0344806b846bd05657bdce96e47810bf0) 6 | (cherry picked from commit 144d79977c7e2a410a705f550dbc8ee754dd1cb3) 7 | --- 8 | NEWS | 6 ++++++ 9 | 1 file changed, 6 insertions(+) 10 | 11 | diff --git a/NEWS b/NEWS 12 | index 3deae0f..f315b2b 100644 13 | --- a/NEWS 14 | +++ b/NEWS 15 | @@ -1,6 +1,12 @@ 16 | PHP NEWS 17 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 18 | 19 | +Backported from 8.0.27 20 | + 21 | +- PDO/SQLite: 22 | + . Fixed bug #81740 (PDO::quote() may return unquoted string). 23 | + (CVE-2022-31631) (cmb) 24 | + 25 | Backported from 7.4.33 26 | 27 | - Hash: 28 | -------------------------------------------------------------------------------- /config/patches/7.2/0107-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 14 Feb 2023 09:14:47 +0100 3 | Subject: NEWS 4 | 5 | (cherry picked from commit 472db3ee3a00ac00d36019eee0b3b7362334481c) 6 | --- 7 | NEWS | 4 ++++ 8 | 1 file changed, 4 insertions(+) 9 | 10 | diff --git a/NEWS b/NEWS 11 | index 6eb2949..31ef566 100644 12 | --- a/NEWS 13 | +++ b/NEWS 14 | @@ -9,6 +9,10 @@ Backported from 8.0.28 15 | . Fixed bug #81746 (1-byte array overrun in common path resolve code). 16 | (CVE-2023-0568). (Niels Dossche) 17 | 18 | +- FPM: 19 | + . Fixed bug GHSA-54hq-v5wp-fqgv (DOS vulnerability when parsing multipart 20 | + request body). (CVE-2023-0662) (Jakub Zelenka) 21 | + 22 | Backported from 8.0.27 23 | 24 | - PDO/SQLite: 25 | -------------------------------------------------------------------------------- /config/patches/7.2/0108-fix-NEWS-not-FPM-specific.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 14 Feb 2023 11:47:22 +0100 3 | Subject: fix NEWS, not FPM specific 4 | 5 | (cherry picked from commit c04f310440a906fc4ca885f4ecf6e3e4cd36edc7) 6 | --- 7 | NEWS | 2 -- 8 | 1 file changed, 2 deletions(-) 9 | 10 | diff --git a/NEWS b/NEWS 11 | index 31ef566..be9216e 100644 12 | --- a/NEWS 13 | +++ b/NEWS 14 | @@ -8,8 +8,6 @@ Backported from 8.0.28 15 | (CVE-2023-0567). (Tim Düsterhus) 16 | . Fixed bug #81746 (1-byte array overrun in common path resolve code). 17 | (CVE-2023-0568). (Niels Dossche) 18 | - 19 | -- FPM: 20 | . Fixed bug GHSA-54hq-v5wp-fqgv (DOS vulnerability when parsing multipart 21 | request body). (CVE-2023-0662) (Jakub Zelenka) 22 | 23 | -------------------------------------------------------------------------------- /config/patches/7.2/0110-Fix-GH-11382-add-missing-hash-header-for-bin2hex.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 6 Jun 2023 18:05:22 +0200 3 | Subject: Fix GH-11382 add missing hash header for bin2hex 4 | 5 | (cherry picked from commit 40439039c224bb8cdebd1b7b3d03b8cc11e7cce7) 6 | --- 7 | ext/soap/php_http.c | 1 + 8 | 1 file changed, 1 insertion(+) 9 | 10 | diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c 11 | index 15b086e..6903a3b 100644 12 | --- a/ext/soap/php_http.c 13 | +++ b/ext/soap/php_http.c 14 | @@ -23,6 +23,7 @@ 15 | #include "ext/standard/base64.h" 16 | #include "ext/standard/md5.h" 17 | #include "ext/standard/php_random.h" 18 | +#include "ext/hash/php_hash.h" 19 | 20 | static char *get_http_header_value(char *headers, char *type); 21 | static zend_string *get_http_body(php_stream *socketd, int close, char *headers); 22 | -------------------------------------------------------------------------------- /config/patches/7.3/0002-static_openssl.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:51 +0200 3 | Subject: static_openssl 4 | 5 | --- 6 | acinclude.m4 | 4 +--- 7 | 1 file changed, 1 insertion(+), 3 deletions(-) 8 | 9 | diff --git a/acinclude.m4 b/acinclude.m4 10 | index e1e272f..c6a19fe 100644 11 | --- a/acinclude.m4 12 | +++ b/acinclude.m4 13 | @@ -2403,9 +2403,7 @@ AC_DEFUN([PHP_SETUP_OPENSSL],[ 14 | 15 | PHP_ADD_INCLUDE($OPENSSL_INCDIR) 16 | 17 | - PHP_CHECK_LIBRARY(crypto, CRYPTO_free, [ 18 | - PHP_ADD_LIBRARY(crypto,,$1) 19 | - ],[ 20 | + PHP_CHECK_LIBRARY(crypto, CRYPTO_free, [:],[ 21 | AC_MSG_ERROR([libcrypto not found!]) 22 | ],[ 23 | -L$OPENSSL_LIBDIR 24 | -------------------------------------------------------------------------------- /config/patches/7.3/0005-we_WANT_libtool.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:51 +0200 3 | Subject: we_WANT_libtool 4 | 5 | --- 6 | build/build2.mk | 3 ++- 7 | 1 file changed, 2 insertions(+), 1 deletion(-) 8 | 9 | diff --git a/build/build2.mk b/build/build2.mk 10 | index 7b86f3d..68436b2 100644 11 | --- a/build/build2.mk 12 | +++ b/build/build2.mk 13 | @@ -43,7 +43,8 @@ $(TOUCH_FILES): 14 | 15 | aclocal.m4: configure.ac acinclude.m4 16 | @echo rebuilding $@ 17 | - cat acinclude.m4 ./build/libtool.m4 > $@ 18 | + libtoolize --copy --install --automake --force 19 | + aclocal 20 | 21 | configure: aclocal.m4 configure.ac $(config_m4_files) 22 | @echo rebuilding $@ 23 | -------------------------------------------------------------------------------- /config/patches/7.3/0009-recode_is_shared.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:51 +0200 3 | Subject: recode_is_shared 4 | 5 | --- 6 | ext/recode/config9.m4 | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | diff --git a/ext/recode/config9.m4 b/ext/recode/config9.m4 10 | index 5f85655..f8fd3a7 100644 11 | --- a/ext/recode/config9.m4 12 | +++ b/ext/recode/config9.m4 13 | @@ -11,6 +11,6 @@ if test "$PHP_RECODE" != "no"; then 14 | fi 15 | 16 | if test -n "$recode_conflict"; then 17 | - AC_MSG_ERROR([recode extension can not be configured together with:$recode_conflict]) 18 | + AC_MSG_WARN([recode extension can not be used together with:$recode_conflict]) 19 | fi 20 | fi 21 | -------------------------------------------------------------------------------- /config/patches/7.3/0010-proc_open.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:52 +0200 3 | Subject: proc_open 4 | 5 | --- 6 | ext/standard/proc_open.c | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c 10 | index 612cdf0..7edba08 100644 11 | --- a/ext/standard/proc_open.c 12 | +++ b/ext/standard/proc_open.c 13 | @@ -56,7 +56,7 @@ 14 | * */ 15 | #ifdef PHP_CAN_SUPPORT_PROC_OPEN 16 | 17 | -#if 0 && HAVE_PTSNAME && HAVE_GRANTPT && HAVE_UNLOCKPT && HAVE_SYS_IOCTL_H && HAVE_TERMIOS_H 18 | +#if HAVE_PTSNAME && HAVE_GRANTPT && HAVE_UNLOCKPT && HAVE_SYS_IOCTL_H && HAVE_TERMIOS_H 19 | # include 20 | # include 21 | # define PHP_CAN_DO_PTS 1 22 | -------------------------------------------------------------------------------- /config/patches/7.3/0014-strcmp_null-OnUpdateErrorLog.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: strcmp_null-OnUpdateErrorLog 4 | 5 | --- 6 | tests/func/null-new_val.phpt | 10 ++++++++++ 7 | 1 file changed, 10 insertions(+) 8 | create mode 100644 tests/func/null-new_val.phpt 9 | 10 | diff --git a/tests/func/null-new_val.phpt b/tests/func/null-new_val.phpt 11 | new file mode 100644 12 | index 0000000..412da39 13 | --- /dev/null 14 | +++ b/tests/func/null-new_val.phpt 15 | @@ -0,0 +1,10 @@ 16 | +--TEST-- 17 | +ini_restore strcmp NULL new_val 18 | +--FILE-- 19 | + 25 | +--EXPECT-- 26 | -------------------------------------------------------------------------------- /config/patches/7.3/0015-dont-gitclean-in-build.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: dont-gitclean-in-build 4 | 5 | --- 6 | build/build.mk | 1 - 7 | 1 file changed, 1 deletion(-) 8 | 9 | diff --git a/build/build.mk b/build/build.mk 10 | index 1ce958f..b8c7492 100644 11 | --- a/build/build.mk 12 | +++ b/build/build.mk 13 | @@ -63,6 +63,5 @@ gitclean-work: 14 | @if (test ! -f '.git/info/exclude' || grep -s "git-ls-files" .git/info/exclude); then \ 15 | (echo "Rebuild .git/info/exclude" && echo '*.o' > .git/info/exclude && git svn propget svn:ignore | grep -v config.nice >> .git/info/exclude); \ 16 | fi; \ 17 | - git clean -X -f -d; 18 | 19 | .PHONY: $(ALWAYS) snapshot 20 | -------------------------------------------------------------------------------- /config/patches/7.3/0016-qdbm-is-usr_include_qdbm.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: qdbm-is-usr_include_qdbm 4 | 5 | --- 6 | ext/dba/config.m4 | 4 ++++ 7 | 1 file changed, 4 insertions(+) 8 | 9 | diff --git a/ext/dba/config.m4 b/ext/dba/config.m4 10 | index ef13306..84ab6a9 100644 11 | --- a/ext/dba/config.m4 12 | +++ b/ext/dba/config.m4 13 | @@ -114,6 +114,10 @@ if test "$PHP_QDBM" != "no"; then 14 | THIS_PREFIX=$i 15 | THIS_INCLUDE=$i/include/depot.h 16 | break 17 | + elif test -f "$i/include/qdbm/depot.h"; then 18 | + THIS_PREFIX=$i 19 | + THIS_INCLUDE=$i/include/qdbm/depot.h 20 | + break 21 | fi 22 | done 23 | 24 | -------------------------------------------------------------------------------- /config/patches/7.3/0020-php-fpm-sysconfdir.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:54 +0200 3 | Subject: php-fpm-sysconfdir 4 | 5 | --- 6 | sapi/fpm/fpm/fpm_conf.c | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | diff --git a/sapi/fpm/fpm/fpm_conf.c b/sapi/fpm/fpm/fpm_conf.c 10 | index 7a05286..7b9772f 100644 11 | --- a/sapi/fpm/fpm/fpm_conf.c 12 | +++ b/sapi/fpm/fpm/fpm_conf.c 13 | @@ -1720,7 +1720,7 @@ int fpm_conf_init_main(int test_conf, int force_daemon) /* {{{ */ 14 | char *tmp; 15 | 16 | if (fpm_globals.prefix == NULL) { 17 | - spprintf(&tmp, 0, "%s/php-fpm.conf", PHP_SYSCONFDIR); 18 | + spprintf(&tmp, 0, "%s/php/%d.%d/fpm/php-fpm.conf", PHP_SYSCONFDIR, PHP_MAJOR_VERSION, PHP_MINOR_VERSION); 19 | } else { 20 | spprintf(&tmp, 0, "%s/etc/php-fpm.conf", fpm_globals.prefix); 21 | } 22 | -------------------------------------------------------------------------------- /config/patches/7.3/0023-hurd-noptrace.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:54 +0200 3 | Subject: hurd-noptrace 4 | 5 | --- 6 | sapi/fpm/config.m4 | 5 +++++ 7 | 1 file changed, 5 insertions(+) 8 | 9 | diff --git a/sapi/fpm/config.m4 b/sapi/fpm/config.m4 10 | index 44d842b..b5f42c0 100644 11 | --- a/sapi/fpm/config.m4 12 | +++ b/sapi/fpm/config.m4 13 | @@ -145,6 +145,11 @@ AC_DEFUN([AC_FPM_TRACE], 14 | pid_t child; 15 | int status; 16 | 17 | + /* broken ptrace on Hurd, avoid hanging */ 18 | + #ifdef __GNU__ 19 | + return 10; 20 | + #endif 21 | + 22 | if ( (child = fork()) ) { /* parent */ 23 | int ret = 0; 24 | 25 | -------------------------------------------------------------------------------- /config/patches/7.3/0035-php-5.4.9-fixheader.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:56 +0200 3 | Subject: php-5.4.9-fixheader 4 | 5 | Make generated php_config.h constant across rebuilds. 6 | --- 7 | configure.ac | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/configure.ac b/configure.ac 11 | index 0868d81..f0312fb 100644 12 | --- a/configure.ac 13 | +++ b/configure.ac 14 | @@ -1358,7 +1358,7 @@ PHP_BUILD_DATE=`date -u +%Y-%m-%d` 15 | fi 16 | AC_DEFINE_UNQUOTED(PHP_BUILD_DATE,"$PHP_BUILD_DATE",[PHP build date]) 17 | 18 | -PHP_UNAME=`uname -a | xargs` 19 | +PHP_UNAME=`uname | xargs` 20 | AC_DEFINE_UNQUOTED(PHP_UNAME,"$PHP_UNAME",[uname -a output]) 21 | PHP_OS=`uname | xargs` 22 | AC_DEFINE_UNQUOTED(PHP_OS,"$PHP_OS",[uname output]) 23 | -------------------------------------------------------------------------------- /config/patches/7.3/0065-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 7 Jun 2022 09:57:15 +0200 3 | Subject: NEWS 4 | 5 | --- 6 | NEWS | 11 +++++++++++ 7 | 1 file changed, 11 insertions(+) 8 | 9 | diff --git a/NEWS b/NEWS 10 | index 9974959..2c3eb54 100644 11 | --- a/NEWS 12 | +++ b/NEWS 13 | @@ -1,5 +1,16 @@ 14 | PHP NEWS 15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 16 | + 17 | +Backported from 7.4.30 18 | + 19 | +- mysqlnd: 20 | + . Fixed bug #81719: mysqlnd/pdo password buffer overflow. 21 | + (CVE-2022-31626) (c dot fol at ambionics dot io) 22 | + 23 | +- pgsql 24 | + . Fixed bug #81720: Uninitialized array in pg_query_params(). 25 | + (CVE-2022-31625) (cmb) 26 | + 27 | 18 Nov 2021, PHP 7.3.33 28 | 29 | - XML: 30 | -------------------------------------------------------------------------------- /config/patches/7.3/0069-Fix-81726-phar-wrapper-DOS-when-using-quine-gzip-fil.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivammathur/php-builder/235015ae2c57cb0e4380ecb327443a3f4d9247bf/config/patches/7.3/0069-Fix-81726-phar-wrapper-DOS-when-using-quine-gzip-fil.patch -------------------------------------------------------------------------------- /config/patches/7.3/0074-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Mon, 19 Dec 2022 09:24:02 +0100 3 | Subject: NEWS 4 | 5 | (cherry picked from commit 7328f3a0344806b846bd05657bdce96e47810bf0) 6 | --- 7 | NEWS | 6 ++++++ 8 | 1 file changed, 6 insertions(+) 9 | 10 | diff --git a/NEWS b/NEWS 11 | index 4f71b11..9db1bb4 100644 12 | --- a/NEWS 13 | +++ b/NEWS 14 | @@ -1,6 +1,12 @@ 15 | PHP NEWS 16 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 17 | 18 | +Backported from 8.0.27 19 | + 20 | +- PDO/SQLite: 21 | + . Fixed bug #81740 (PDO::quote() may return unquoted string). 22 | + (CVE-2022-31631) (cmb) 23 | + 24 | Backported from 7.4.33 25 | 26 | - Hash: 27 | -------------------------------------------------------------------------------- /config/patches/7.3/0081-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 14 Feb 2023 09:14:47 +0100 3 | Subject: NEWS 4 | 5 | (cherry picked from commit 472db3ee3a00ac00d36019eee0b3b7362334481c) 6 | --- 7 | NEWS | 4 ++++ 8 | 1 file changed, 4 insertions(+) 9 | 10 | diff --git a/NEWS b/NEWS 11 | index 971c79c..69cfef2 100644 12 | --- a/NEWS 13 | +++ b/NEWS 14 | @@ -9,6 +9,10 @@ Backported from 8.0.28 15 | . Fixed bug #81746 (1-byte array overrun in common path resolve code). 16 | (CVE-2023-0568). (Niels Dossche) 17 | 18 | +- FPM: 19 | + . Fixed bug GHSA-54hq-v5wp-fqgv (DOS vulnerability when parsing multipart 20 | + request body). (CVE-2023-0662) (Jakub Zelenka) 21 | + 22 | Backported from 8.0.27 23 | 24 | - PDO/SQLite: 25 | -------------------------------------------------------------------------------- /config/patches/7.3/0082-fix-NEWS-not-FPM-specific.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 14 Feb 2023 11:47:22 +0100 3 | Subject: fix NEWS, not FPM specific 4 | 5 | (cherry picked from commit c04f310440a906fc4ca885f4ecf6e3e4cd36edc7) 6 | --- 7 | NEWS | 2 -- 8 | 1 file changed, 2 deletions(-) 9 | 10 | diff --git a/NEWS b/NEWS 11 | index 69cfef2..597b55a 100644 12 | --- a/NEWS 13 | +++ b/NEWS 14 | @@ -8,8 +8,6 @@ Backported from 8.0.28 15 | (CVE-2023-0567). (Tim Düsterhus) 16 | . Fixed bug #81746 (1-byte array overrun in common path resolve code). 17 | (CVE-2023-0568). (Niels Dossche) 18 | - 19 | -- FPM: 20 | . Fixed bug GHSA-54hq-v5wp-fqgv (DOS vulnerability when parsing multipart 21 | request body). (CVE-2023-0662) (Jakub Zelenka) 22 | 23 | -------------------------------------------------------------------------------- /config/patches/7.3/0084-Fix-GH-11382-add-missing-hash-header-for-bin2hex.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 6 Jun 2023 18:05:22 +0200 3 | Subject: Fix GH-11382 add missing hash header for bin2hex 4 | 5 | (cherry picked from commit 40439039c224bb8cdebd1b7b3d03b8cc11e7cce7) 6 | --- 7 | ext/soap/php_http.c | 1 + 8 | 1 file changed, 1 insertion(+) 9 | 10 | diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c 11 | index 9249e8e..243182c 100644 12 | --- a/ext/soap/php_http.c 13 | +++ b/ext/soap/php_http.c 14 | @@ -22,6 +22,7 @@ 15 | #include "ext/standard/base64.h" 16 | #include "ext/standard/md5.h" 17 | #include "ext/standard/php_random.h" 18 | +#include "ext/hash/php_hash.h" 19 | 20 | static char *get_http_header_value_nodup(char *headers, char *type, size_t *len); 21 | static char *get_http_header_value(char *headers, char *type); 22 | -------------------------------------------------------------------------------- /config/patches/7.4/0001-libtool_fixes.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:50 +0200 3 | Subject: libtool_fixes 4 | 5 | --- 6 | configure.ac | 2 -- 7 | 1 file changed, 2 deletions(-) 8 | 9 | diff --git a/configure.ac b/configure.ac 10 | index f2ba8a8..9d21596 100644 11 | --- a/configure.ac 12 | +++ b/configure.ac 13 | @@ -1435,8 +1435,6 @@ AC_PROVIDE_IFELSE([PHP_REQUIRE_CXX], [], [ 14 | ]) 15 | AC_PROG_LIBTOOL 16 | 17 | -PHP_SET_LIBTOOL_VARIABLE([--silent]) 18 | - 19 | dnl libtool 1.4.3 needs this. 20 | PHP_SET_LIBTOOL_VARIABLE([--preserve-dup-deps]) 21 | 22 | -------------------------------------------------------------------------------- /config/patches/7.4/0005-proc_open.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:52 +0200 3 | Subject: proc_open 4 | 5 | --- 6 | ext/standard/proc_open.c | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c 10 | index 25a5f7f..93c47af 100644 11 | --- a/ext/standard/proc_open.c 12 | +++ b/ext/standard/proc_open.c 13 | @@ -55,7 +55,7 @@ 14 | * */ 15 | #ifdef PHP_CAN_SUPPORT_PROC_OPEN 16 | 17 | -#if 0 && HAVE_PTSNAME && HAVE_GRANTPT && HAVE_UNLOCKPT && HAVE_SYS_IOCTL_H && HAVE_TERMIOS_H 18 | +#if HAVE_PTSNAME && HAVE_GRANTPT && HAVE_UNLOCKPT && HAVE_SYS_IOCTL_H && HAVE_TERMIOS_H 19 | # include 20 | # include 21 | # define PHP_CAN_DO_PTS 1 22 | -------------------------------------------------------------------------------- /config/patches/7.4/0009-strcmp_null-OnUpdateErrorLog.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: strcmp_null-OnUpdateErrorLog 4 | 5 | --- 6 | tests/func/null-new_val.phpt | 10 ++++++++++ 7 | 1 file changed, 10 insertions(+) 8 | create mode 100644 tests/func/null-new_val.phpt 9 | 10 | diff --git a/tests/func/null-new_val.phpt b/tests/func/null-new_val.phpt 11 | new file mode 100644 12 | index 0000000..412da39 13 | --- /dev/null 14 | +++ b/tests/func/null-new_val.phpt 15 | @@ -0,0 +1,10 @@ 16 | +--TEST-- 17 | +ini_restore strcmp NULL new_val 18 | +--FILE-- 19 | + 25 | +--EXPECT-- 26 | -------------------------------------------------------------------------------- /config/patches/7.4/0010-qdbm-is-usr_include_qdbm.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: qdbm-is-usr_include_qdbm 4 | 5 | --- 6 | ext/dba/config.m4 | 4 ++++ 7 | 1 file changed, 4 insertions(+) 8 | 9 | diff --git a/ext/dba/config.m4 b/ext/dba/config.m4 10 | index 51bdd84..79136d5 100644 11 | --- a/ext/dba/config.m4 12 | +++ b/ext/dba/config.m4 13 | @@ -145,6 +145,10 @@ if test "$PHP_QDBM" != "no"; then 14 | THIS_PREFIX=$i 15 | THIS_INCLUDE=$i/include/qdbm/depot.h 16 | break 17 | + elif test -f "$i/include/qdbm/depot.h"; then 18 | + THIS_PREFIX=$i 19 | + THIS_INCLUDE=$i/include/qdbm/depot.h 20 | + break 21 | fi 22 | done 23 | 24 | -------------------------------------------------------------------------------- /config/patches/7.4/0014-php-fpm-sysconfdir.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:54 +0200 3 | Subject: php-fpm-sysconfdir 4 | 5 | --- 6 | sapi/fpm/fpm/fpm_conf.c | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | diff --git a/sapi/fpm/fpm/fpm_conf.c b/sapi/fpm/fpm/fpm_conf.c 10 | index 7a05286..7b9772f 100644 11 | --- a/sapi/fpm/fpm/fpm_conf.c 12 | +++ b/sapi/fpm/fpm/fpm_conf.c 13 | @@ -1720,7 +1720,7 @@ int fpm_conf_init_main(int test_conf, int force_daemon) /* {{{ */ 14 | char *tmp; 15 | 16 | if (fpm_globals.prefix == NULL) { 17 | - spprintf(&tmp, 0, "%s/php-fpm.conf", PHP_SYSCONFDIR); 18 | + spprintf(&tmp, 0, "%s/php/%d.%d/fpm/php-fpm.conf", PHP_SYSCONFDIR, PHP_MAJOR_VERSION, PHP_MINOR_VERSION); 19 | } else { 20 | spprintf(&tmp, 0, "%s/etc/php-fpm.conf", fpm_globals.prefix); 21 | } 22 | -------------------------------------------------------------------------------- /config/patches/7.4/0017-hurd-noptrace.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:54 +0200 3 | Subject: hurd-noptrace 4 | 5 | --- 6 | sapi/fpm/config.m4 | 5 +++++ 7 | 1 file changed, 5 insertions(+) 8 | 9 | diff --git a/sapi/fpm/config.m4 b/sapi/fpm/config.m4 10 | index ad89c1b..3f3a2e5 100644 11 | --- a/sapi/fpm/config.m4 12 | +++ b/sapi/fpm/config.m4 13 | @@ -141,6 +141,11 @@ AC_DEFUN([AC_FPM_TRACE], 14 | pid_t child; 15 | int status; 16 | 17 | + /* broken ptrace on Hurd, avoid hanging */ 18 | + #ifdef __GNU__ 19 | + return 10; 20 | + #endif 21 | + 22 | if ( (child = fork()) ) { /* parent */ 23 | int ret = 0; 24 | 25 | -------------------------------------------------------------------------------- /config/patches/7.4/0028-php-5.4.9-fixheader.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:56 +0200 3 | Subject: php-5.4.9-fixheader 4 | 5 | Make generated php_config.h constant across rebuilds. 6 | --- 7 | configure.ac | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/configure.ac b/configure.ac 11 | index d9ba57d..d7ccee1 100644 12 | --- a/configure.ac 13 | +++ b/configure.ac 14 | @@ -1332,7 +1332,7 @@ PHP_BUILD_DATE=`date -u +%Y-%m-%d` 15 | fi 16 | AC_DEFINE_UNQUOTED(PHP_BUILD_DATE,"$PHP_BUILD_DATE",[PHP build date]) 17 | 18 | -UNAME=`uname -a | xargs` 19 | +UNAME=`uname | xargs` 20 | PHP_UNAME=${PHP_UNAME:-$UNAME} 21 | AC_DEFINE_UNQUOTED(PHP_UNAME,"$PHP_UNAME",[uname -a output]) 22 | PHP_OS=`uname | xargs` 23 | -------------------------------------------------------------------------------- /config/patches/7.4/0056-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Mon, 19 Dec 2022 09:24:02 +0100 3 | Subject: NEWS 4 | 5 | --- 6 | NEWS | 7 +++++++ 7 | 1 file changed, 7 insertions(+) 8 | 9 | diff --git a/NEWS b/NEWS 10 | index 8a8c0c9..03e8c83 100644 11 | --- a/NEWS 12 | +++ b/NEWS 13 | @@ -1,5 +1,12 @@ 14 | PHP NEWS 15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 16 | + 17 | +Backported from 8.0.27 18 | + 19 | +- PDO/SQLite: 20 | + . Fixed bug #81740 (PDO::quote() may return unquoted string). 21 | + (CVE-2022-31631) (cmb) 22 | + 23 | 03 Nov 2022, PHP 7.4.33 24 | 25 | - GD: 26 | -------------------------------------------------------------------------------- /config/patches/7.4/0061-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Mon, 13 Feb 2023 11:46:47 +0100 3 | Subject: NEWS 4 | 5 | --- 6 | NEWS | 8 ++++++++ 7 | 1 file changed, 8 insertions(+) 8 | 9 | diff --git a/NEWS b/NEWS 10 | index 03e8c83..8157a20 100644 11 | --- a/NEWS 12 | +++ b/NEWS 13 | @@ -1,6 +1,14 @@ 14 | PHP NEWS 15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 16 | 17 | +Backported from 8.0.28 18 | + 19 | +- Core: 20 | + . Fixed bug #81744 (Password_verify() always return true with some hash). 21 | + (CVE-2023-0567). (Tim Düsterhus) 22 | + . Fixed bug #81746 (1-byte array overrun in common path resolve code). 23 | + (CVE-2023-0568). (Niels Dossche) 24 | + 25 | Backported from 8.0.27 26 | 27 | - PDO/SQLite: 28 | -------------------------------------------------------------------------------- /config/patches/7.4/0064-NEWS.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 14 Feb 2023 09:14:47 +0100 3 | Subject: NEWS 4 | 5 | --- 6 | NEWS | 4 ++++ 7 | 1 file changed, 4 insertions(+) 8 | 9 | diff --git a/NEWS b/NEWS 10 | index 8157a20..c166836 100644 11 | --- a/NEWS 12 | +++ b/NEWS 13 | @@ -9,6 +9,10 @@ Backported from 8.0.28 14 | . Fixed bug #81746 (1-byte array overrun in common path resolve code). 15 | (CVE-2023-0568). (Niels Dossche) 16 | 17 | +- FPM: 18 | + . Fixed bug GHSA-54hq-v5wp-fqgv (DOS vulnerability when parsing multipart 19 | + request body). (CVE-2023-0662) (Jakub Zelenka) 20 | + 21 | Backported from 8.0.27 22 | 23 | - PDO/SQLite: 24 | -------------------------------------------------------------------------------- /config/patches/7.4/0065-fix-NEWS-not-FPM-specific.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 14 Feb 2023 11:47:22 +0100 3 | Subject: fix NEWS, not FPM specific 4 | 5 | --- 6 | NEWS | 2 -- 7 | 1 file changed, 2 deletions(-) 8 | 9 | diff --git a/NEWS b/NEWS 10 | index c166836..3f8739e 100644 11 | --- a/NEWS 12 | +++ b/NEWS 13 | @@ -8,8 +8,6 @@ Backported from 8.0.28 14 | (CVE-2023-0567). (Tim Düsterhus) 15 | . Fixed bug #81746 (1-byte array overrun in common path resolve code). 16 | (CVE-2023-0568). (Niels Dossche) 17 | - 18 | -- FPM: 19 | . Fixed bug GHSA-54hq-v5wp-fqgv (DOS vulnerability when parsing multipart 20 | request body). (CVE-2023-0662) (Jakub Zelenka) 21 | 22 | -------------------------------------------------------------------------------- /config/patches/7.4/0067-Fix-GH-11382-add-missing-hash-header-for-bin2hex.patch: -------------------------------------------------------------------------------- 1 | From: Remi Collet 2 | Date: Tue, 6 Jun 2023 18:05:22 +0200 3 | Subject: Fix GH-11382 add missing hash header for bin2hex 4 | 5 | --- 6 | ext/soap/php_http.c | 1 + 7 | 1 file changed, 1 insertion(+) 8 | 9 | diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c 10 | index e3a9afd..912b8e3 100644 11 | --- a/ext/soap/php_http.c 12 | +++ b/ext/soap/php_http.c 13 | @@ -22,6 +22,7 @@ 14 | #include "ext/standard/base64.h" 15 | #include "ext/standard/md5.h" 16 | #include "ext/standard/php_random.h" 17 | +#include "ext/hash/php_hash.h" 18 | 19 | static char *get_http_header_value_nodup(char *headers, char *type, size_t *len); 20 | static char *get_http_header_value(char *headers, char *type); 21 | -------------------------------------------------------------------------------- /config/patches/8.0/0001-libtool_fixes.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:50 +0200 3 | Subject: libtool_fixes 4 | 5 | --- 6 | configure.ac | 2 -- 7 | 1 file changed, 2 deletions(-) 8 | 9 | --- a/configure.ac 10 | +++ b/configure.ac 11 | @@ -1416,8 +1416,6 @@ 12 | ]) 13 | AC_PROG_LIBTOOL 14 | 15 | -PHP_SET_LIBTOOL_VARIABLE([--silent]) 16 | - 17 | dnl libtool 1.4.3 needs this. 18 | PHP_SET_LIBTOOL_VARIABLE([--preserve-dup-deps]) 19 | 20 | -------------------------------------------------------------------------------- /config/patches/8.0/0005-php.ini_securitynotes.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:52 +0200 3 | Subject: php.ini_securitynotes 4 | 5 | --- 6 | php.ini-development | 6 ++++++ 7 | 1 file changed, 6 insertions(+) 8 | 9 | --- a/php.ini-development 10 | +++ b/php.ini-development 11 | @@ -315,6 +315,12 @@ 12 | ; or per-virtualhost web server configuration file. 13 | ; Note: disables the realpath cache 14 | ; http://php.net/open-basedir 15 | + 16 | +; NOTE: this is considered a "broken" security measure. 17 | +; Applications relying on this feature will not receive full 18 | +; support by the security team. For more information please 19 | +; see /usr/share/doc/php-common/README.Debian.security 20 | +; 21 | ;open_basedir = 22 | 23 | ; This directive allows you to disable certain functions. 24 | -------------------------------------------------------------------------------- /config/patches/8.0/0008-strcmp_null-OnUpdateErrorLog.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: strcmp_null-OnUpdateErrorLog 4 | 5 | --- 6 | tests/func/null-new_val.phpt | 10 ++++++++++ 7 | 1 file changed, 10 insertions(+) 8 | create mode 100644 tests/func/null-new_val.phpt 9 | 10 | --- /dev/null 11 | +++ b/tests/func/null-new_val.phpt 12 | @@ -0,0 +1,10 @@ 13 | +--TEST-- 14 | +ini_restore strcmp NULL new_val 15 | +--FILE-- 16 | + 22 | +--EXPECT-- 23 | -------------------------------------------------------------------------------- /config/patches/8.0/0009-qdbm-is-usr_include_qdbm.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: qdbm-is-usr_include_qdbm 4 | 5 | --- 6 | ext/dba/config.m4 | 4 ++++ 7 | 1 file changed, 4 insertions(+) 8 | 9 | --- a/ext/dba/config.m4 10 | +++ b/ext/dba/config.m4 11 | @@ -145,6 +145,10 @@ 12 | THIS_PREFIX=$i 13 | THIS_INCLUDE=$i/include/qdbm/depot.h 14 | break 15 | + elif test -f "$i/include/qdbm/depot.h"; then 16 | + THIS_PREFIX=$i 17 | + THIS_INCLUDE=$i/include/qdbm/depot.h 18 | + break 19 | fi 20 | done 21 | 22 | -------------------------------------------------------------------------------- /config/patches/8.0/0013-php-fpm-sysconfdir.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:54 +0200 3 | Subject: php-fpm-sysconfdir 4 | 5 | --- 6 | sapi/fpm/fpm/fpm_conf.c | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | --- a/sapi/fpm/fpm/fpm_conf.c 10 | +++ b/sapi/fpm/fpm/fpm_conf.c 11 | @@ -1775,7 +1775,7 @@ 12 | char *tmp; 13 | 14 | if (fpm_globals.prefix == NULL) { 15 | - spprintf(&tmp, 0, "%s/php-fpm.conf", PHP_SYSCONFDIR); 16 | + spprintf(&tmp, 0, "%s/php/%d.%d/fpm/php-fpm.conf", PHP_SYSCONFDIR, PHP_MAJOR_VERSION, PHP_MINOR_VERSION); 17 | } else { 18 | spprintf(&tmp, 0, "%s/etc/php-fpm.conf", fpm_globals.prefix); 19 | } 20 | -------------------------------------------------------------------------------- /config/patches/8.0/0016-hurd-noptrace.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:54 +0200 3 | Subject: hurd-noptrace 4 | 5 | --- 6 | sapi/fpm/config.m4 | 5 +++++ 7 | 1 file changed, 5 insertions(+) 8 | 9 | --- a/sapi/fpm/config.m4 10 | +++ b/sapi/fpm/config.m4 11 | @@ -141,6 +141,11 @@ 12 | pid_t child; 13 | int status; 14 | 15 | + /* broken ptrace on Hurd, avoid hanging */ 16 | + #ifdef __GNU__ 17 | + return 10; 18 | + #endif 19 | + 20 | if ( (child = fork()) ) { /* parent */ 21 | int ret = 0; 22 | 23 | -------------------------------------------------------------------------------- /config/patches/8.0/0019-php-5.2.4-embed.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:55 +0200 3 | Subject: php-5.2.4-embed 4 | 5 | --- 6 | sapi/embed/config.m4 | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | --- a/sapi/embed/config.m4 10 | +++ b/sapi/embed/config.m4 11 | @@ -12,7 +12,7 @@ 12 | yes|shared) 13 | LIBPHP_CFLAGS="-shared" 14 | PHP_EMBED_TYPE=shared 15 | - INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)\$(prefix)/lib" 16 | + INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(libdir); \$(LIBTOOL) --mode=install \$(INSTALL) -m 0755 \$(OVERALL_TARGET) \$(INSTALL_ROOT)\$(libdir)" 17 | ;; 18 | static) 19 | LIBPHP_CFLAGS="-static" 20 | -------------------------------------------------------------------------------- /config/patches/8.0/0025-php-5.4.9-fixheader.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:56 +0200 3 | Subject: php-5.4.9-fixheader 4 | 5 | Make generated php_config.h constant across rebuilds. 6 | --- 7 | configure.ac | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | --- a/configure.ac 11 | +++ b/configure.ac 12 | @@ -1297,7 +1297,7 @@ 13 | EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PHP_LDFLAGS" 14 | EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $PHP_LDFLAGS" 15 | 16 | -UNAME=`uname -a | xargs` 17 | +UNAME=`uname | xargs` 18 | PHP_UNAME=${PHP_UNAME:-$UNAME} 19 | AC_DEFINE_UNQUOTED(PHP_UNAME,"$PHP_UNAME",[uname -a output]) 20 | PHP_OS=`uname | xargs` 21 | -------------------------------------------------------------------------------- /config/patches/8.0/0029-Fix-ZEND_MM_ALIGNMENT-on-m64k.patch: -------------------------------------------------------------------------------- 1 | From: Andreas Schwab 2 | Date: Mon, 14 Jul 2014 10:45:30 +0200 3 | Subject: Fix ZEND_MM_ALIGNMENT on m64k 4 | 5 | --- 6 | Zend/Zend.m4 | 4 ++-- 7 | 1 file changed, 2 insertions(+), 2 deletions(-) 8 | 9 | --- a/Zend/Zend.m4 10 | +++ b/Zend/Zend.m4 11 | @@ -249,7 +249,7 @@ 12 | 13 | int main() 14 | { 15 | - int i = ZEND_MM_ALIGNMENT; 16 | + int i = ZEND_MM_ALIGNMENT < 4 ? 4 : ZEND_MM_ALIGNMENT; 17 | int zeros = 0; 18 | FILE *fp; 19 | 20 | @@ -259,7 +259,7 @@ 21 | } 22 | 23 | fp = fopen("conftest.zend", "w"); 24 | - fprintf(fp, "%d %d\n", ZEND_MM_ALIGNMENT, zeros); 25 | + fprintf(fp, "%d %d\n", ZEND_MM_ALIGNMENT < 4 ? 4 : ZEND_MM_ALIGNMENT, zeros); 26 | fclose(fp); 27 | 28 | return 0; 29 | -------------------------------------------------------------------------------- /config/patches/8.0/0034-Amend-C-11-for-intl-compilation-on-older-distributio.patch: -------------------------------------------------------------------------------- 1 | From: =?utf-8?b?T25kxZllaiBTdXLDvQ==?= 2 | Date: Wed, 10 Apr 2019 06:31:27 +0000 3 | Subject: Amend C++11 for intl compilation on older distributions 4 | 5 | --- 6 | ext/intl/config.m4 | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | --- a/ext/intl/config.m4 10 | +++ b/ext/intl/config.m4 11 | @@ -84,7 +84,7 @@ 12 | 13 | PHP_REQUIRE_CXX() 14 | PHP_CXX_COMPILE_STDCXX(11, mandatory, PHP_INTL_STDCXX) 15 | - PHP_INTL_CXX_FLAGS="$INTL_COMMON_FLAGS $PHP_INTL_STDCXX $ICU_CXXFLAGS" 16 | + PHP_INTL_CXX_FLAGS="$INTL_COMMON_FLAGS $PHP_INTL_STDCXX $ICU_CXXFLAGS -std=c++11" 17 | case $host_alias in 18 | *cygwin*) PHP_INTL_CXX_FLAGS="$PHP_INTL_CXX_FLAGS -D_POSIX_C_SOURCE=200809L" 19 | esac 20 | -------------------------------------------------------------------------------- /config/patches/8.0/0037-Include-all-libtool-files-from-phpize.m4.patch: -------------------------------------------------------------------------------- 1 | From: =?utf-8?b?T25kxZllaiBTdXLDvQ==?= 2 | Date: Sun, 18 Oct 2020 13:31:37 +0200 3 | Subject: Include all libtool files from phpize.m4 4 | 5 | --- 6 | scripts/phpize.m4 | 4 ++++ 7 | 1 file changed, 4 insertions(+) 8 | 9 | --- a/scripts/phpize.m4 10 | +++ b/scripts/phpize.m4 11 | @@ -5,6 +5,10 @@ 12 | m4_include([build/ax_check_compile_flag.m4]) 13 | m4_include([build/ax_gcc_func_attribute.m4]) 14 | m4_include([build/libtool.m4]) 15 | +m4_include([build/ltoptions.m4]) 16 | +m4_include([build/ltsugar.m4]) 17 | +m4_include([build/ltversion.m4]) 18 | +m4_include([build/lt~obsolete.m4]) 19 | m4_include([build/php_cxx_compile_stdcxx.m4]) 20 | m4_include([build/php.m4]) 21 | m4_include([build/pkg.m4]) 22 | -------------------------------------------------------------------------------- /config/patches/8.1/0001-libtool_fixes.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:50 +0200 3 | Subject: libtool_fixes 4 | 5 | --- 6 | configure.ac | 2 -- 7 | 1 file changed, 2 deletions(-) 8 | 9 | diff --git a/configure.ac b/configure.ac 10 | index 4ac2455..2e4df7b 100644 11 | --- a/configure.ac 12 | +++ b/configure.ac 13 | @@ -1546,8 +1546,6 @@ AC_PROVIDE_IFELSE([PHP_REQUIRE_CXX], [], [ 14 | ]) 15 | AC_PROG_LIBTOOL 16 | 17 | -PHP_SET_LIBTOOL_VARIABLE([--silent]) 18 | - 19 | dnl libtool 1.4.3 needs this. 20 | PHP_SET_LIBTOOL_VARIABLE([--preserve-dup-deps]) 21 | 22 | -------------------------------------------------------------------------------- /config/patches/8.1/0008-strcmp_null-OnUpdateErrorLog.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: strcmp_null-OnUpdateErrorLog 4 | 5 | --- 6 | tests/func/null-new_val.phpt | 10 ++++++++++ 7 | 1 file changed, 10 insertions(+) 8 | create mode 100644 tests/func/null-new_val.phpt 9 | 10 | diff --git a/tests/func/null-new_val.phpt b/tests/func/null-new_val.phpt 11 | new file mode 100644 12 | index 0000000..412da39 13 | --- /dev/null 14 | +++ b/tests/func/null-new_val.phpt 15 | @@ -0,0 +1,10 @@ 16 | +--TEST-- 17 | +ini_restore strcmp NULL new_val 18 | +--FILE-- 19 | + 25 | +--EXPECT-- 26 | -------------------------------------------------------------------------------- /config/patches/8.1/0009-qdbm-is-usr_include_qdbm.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: qdbm-is-usr_include_qdbm 4 | 5 | --- 6 | ext/dba/config.m4 | 4 ++++ 7 | 1 file changed, 4 insertions(+) 8 | 9 | diff --git a/ext/dba/config.m4 b/ext/dba/config.m4 10 | index 51bdd84..79136d5 100644 11 | --- a/ext/dba/config.m4 12 | +++ b/ext/dba/config.m4 13 | @@ -145,6 +145,10 @@ if test "$PHP_QDBM" != "no"; then 14 | THIS_PREFIX=$i 15 | THIS_INCLUDE=$i/include/qdbm/depot.h 16 | break 17 | + elif test -f "$i/include/qdbm/depot.h"; then 18 | + THIS_PREFIX=$i 19 | + THIS_INCLUDE=$i/include/qdbm/depot.h 20 | + break 21 | fi 22 | done 23 | 24 | -------------------------------------------------------------------------------- /config/patches/8.1/0013-php-fpm-sysconfdir.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:54 +0200 3 | Subject: php-fpm-sysconfdir 4 | 5 | --- 6 | sapi/fpm/fpm/fpm_conf.c | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | diff --git a/sapi/fpm/fpm/fpm_conf.c b/sapi/fpm/fpm/fpm_conf.c 10 | index 0464a36..d08d2eb 100644 11 | --- a/sapi/fpm/fpm/fpm_conf.c 12 | +++ b/sapi/fpm/fpm/fpm_conf.c 13 | @@ -1784,7 +1784,7 @@ int fpm_conf_init_main(int test_conf, int force_daemon) /* {{{ */ 14 | char *tmp; 15 | 16 | if (fpm_globals.prefix == NULL) { 17 | - spprintf(&tmp, 0, "%s/php-fpm.conf", PHP_SYSCONFDIR); 18 | + spprintf(&tmp, 0, "%s/php/%d.%d/fpm/php-fpm.conf", PHP_SYSCONFDIR, PHP_MAJOR_VERSION, PHP_MINOR_VERSION); 19 | } else { 20 | spprintf(&tmp, 0, "%s/etc/php-fpm.conf", fpm_globals.prefix); 21 | } 22 | -------------------------------------------------------------------------------- /config/patches/8.1/0016-hurd-noptrace.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:54 +0200 3 | Subject: hurd-noptrace 4 | 5 | --- 6 | sapi/fpm/config.m4 | 5 +++++ 7 | 1 file changed, 5 insertions(+) 8 | 9 | diff --git a/sapi/fpm/config.m4 b/sapi/fpm/config.m4 10 | index 7c2fdec..fad1dff 100644 11 | --- a/sapi/fpm/config.m4 12 | +++ b/sapi/fpm/config.m4 13 | @@ -141,6 +141,11 @@ AC_DEFUN([AC_FPM_TRACE], 14 | pid_t child; 15 | int status; 16 | 17 | + /* broken ptrace on Hurd, avoid hanging */ 18 | + #ifdef __GNU__ 19 | + return 10; 20 | + #endif 21 | + 22 | if ( (child = fork()) ) { /* parent */ 23 | int ret = 0; 24 | 25 | -------------------------------------------------------------------------------- /config/patches/8.1/0025-php-5.4.9-fixheader.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:56 +0200 3 | Subject: php-5.4.9-fixheader 4 | 5 | Make generated php_config.h constant across rebuilds. 6 | --- 7 | configure.ac | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/configure.ac b/configure.ac 11 | index fd032a0..b9db001 100644 12 | --- a/configure.ac 13 | +++ b/configure.ac 14 | @@ -1398,7 +1398,7 @@ PHP_REMOVE_USR_LIB(LDFLAGS) 15 | EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PHP_LDFLAGS" 16 | EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $PHP_LDFLAGS" 17 | 18 | -UNAME=`uname -a | xargs` 19 | +UNAME=`uname | xargs` 20 | PHP_UNAME=${PHP_UNAME:-$UNAME} 21 | AC_DEFINE_UNQUOTED(PHP_UNAME,"$PHP_UNAME",[uname -a output]) 22 | PHP_OS=`uname | xargs` 23 | -------------------------------------------------------------------------------- /config/patches/8.1/0033-Fix-ext-date-lib-parse_tz-PATH_MAX-HURD-FTBFS.patch: -------------------------------------------------------------------------------- 1 | From: Svante Signell 2 | Date: Thu, 31 Mar 2016 14:58:42 +0200 3 | Subject: Fix ext/date/lib/parse_tz PATH_MAX HURD FTBFS 4 | 5 | --- 6 | ext/date/lib/parse_tz.c | 4 ++++ 7 | 1 file changed, 4 insertions(+) 8 | 9 | diff --git a/ext/date/lib/parse_tz.c b/ext/date/lib/parse_tz.c 10 | index cc87b45..b376547 100644 11 | --- a/ext/date/lib/parse_tz.c 12 | +++ b/ext/date/lib/parse_tz.c 13 | @@ -43,6 +43,10 @@ 14 | 15 | #include 16 | 17 | +#if !defined(PATH_MAX) 18 | +#define PATH_MAX 4096 19 | +#endif 20 | + 21 | #if (defined(__APPLE__) || defined(__APPLE_CC__)) && (defined(__BIG_ENDIAN__) || defined(__LITTLE_ENDIAN__)) 22 | # if defined(__LITTLE_ENDIAN__) 23 | # undef WORDS_BIGENDIAN 24 | -------------------------------------------------------------------------------- /config/patches/8.1/0041-Override-result-of-AC_PROG_LN_S-to-fix-FTBFS-on-ppc6.patch: -------------------------------------------------------------------------------- 1 | From: =?utf-8?b?T25kxZllaiBTdXLDvQ==?= 2 | Date: Mon, 3 Jan 2022 15:32:12 +0100 3 | Subject: Override result of AC_PROG_LN_S to fix FTBFS on ppc64el 4 | 5 | --- 6 | configure.ac | 5 +++++ 7 | 1 file changed, 5 insertions(+) 8 | 9 | diff --git a/configure.ac b/configure.ac 10 | index 30ed61d..e1abe42 100644 11 | --- a/configure.ac 12 | +++ b/configure.ac 13 | @@ -135,6 +135,11 @@ AC_PROG_CPP 14 | AC_USE_SYSTEM_EXTENSIONS 15 | AC_PROG_LN_S 16 | 17 | +if test "$LN_S" != "ln -s"; then 18 | + AC_MSG_WARN([Overriding result of AC_PROG_LN_S, ln -s always works here]) 19 | + LN_S='ln -s' 20 | +fi 21 | + 22 | if test "$cross_compiling" = yes ; then 23 | AC_MSG_CHECKING(for native build C compiler) 24 | AC_CHECK_PROGS(BUILD_CC, [gcc clang c99 c89 cc cl],none) 25 | -------------------------------------------------------------------------------- /config/patches/8.2/0001-libtool_fixes.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:50 +0200 3 | Subject: libtool_fixes 4 | 5 | --- 6 | configure.ac | 2 -- 7 | 1 file changed, 2 deletions(-) 8 | 9 | --- a/configure.ac 10 | +++ b/configure.ac 11 | @@ -1556,8 +1556,6 @@ AC_PROVIDE_IFELSE([PHP_REQUIRE_CXX], [], 12 | ]) 13 | AC_PROG_LIBTOOL 14 | 15 | -PHP_SET_LIBTOOL_VARIABLE([--silent]) 16 | - 17 | dnl libtool 1.4.3 needs this. 18 | PHP_SET_LIBTOOL_VARIABLE([--preserve-dup-deps]) 19 | 20 | -------------------------------------------------------------------------------- /config/patches/8.2/0008-strcmp_null-OnUpdateErrorLog.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: strcmp_null-OnUpdateErrorLog 4 | 5 | --- 6 | tests/func/null-new_val.phpt | 10 ++++++++++ 7 | 1 file changed, 10 insertions(+) 8 | create mode 100644 tests/func/null-new_val.phpt 9 | 10 | --- /dev/null 11 | +++ b/tests/func/null-new_val.phpt 12 | @@ -0,0 +1,10 @@ 13 | +--TEST-- 14 | +ini_restore strcmp NULL new_val 15 | +--FILE-- 16 | + 22 | +--EXPECT-- 23 | -------------------------------------------------------------------------------- /config/patches/8.2/0009-qdbm-is-usr_include_qdbm.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: qdbm-is-usr_include_qdbm 4 | 5 | --- 6 | ext/dba/config.m4 | 4 ++++ 7 | 1 file changed, 4 insertions(+) 8 | 9 | --- a/ext/dba/config.m4 10 | +++ b/ext/dba/config.m4 11 | @@ -145,6 +145,10 @@ if test "$PHP_QDBM" != "no"; then 12 | THIS_PREFIX=$i 13 | THIS_INCLUDE=$i/include/qdbm/depot.h 14 | break 15 | + elif test -f "$i/include/qdbm/depot.h"; then 16 | + THIS_PREFIX=$i 17 | + THIS_INCLUDE=$i/include/qdbm/depot.h 18 | + break 19 | fi 20 | done 21 | 22 | -------------------------------------------------------------------------------- /config/patches/8.2/0013-php-fpm-sysconfdir.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:54 +0200 3 | Subject: php-fpm-sysconfdir 4 | 5 | --- 6 | sapi/fpm/fpm/fpm_conf.c | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | --- a/sapi/fpm/fpm/fpm_conf.c 10 | +++ b/sapi/fpm/fpm/fpm_conf.c 11 | @@ -1784,7 +1784,7 @@ int fpm_conf_init_main(int test_conf, in 12 | char *tmp; 13 | 14 | if (fpm_globals.prefix == NULL) { 15 | - spprintf(&tmp, 0, "%s/php-fpm.conf", PHP_SYSCONFDIR); 16 | + spprintf(&tmp, 0, "%s/php/%d.%d/fpm/php-fpm.conf", PHP_SYSCONFDIR, PHP_MAJOR_VERSION, PHP_MINOR_VERSION); 17 | } else { 18 | spprintf(&tmp, 0, "%s/etc/php-fpm.conf", fpm_globals.prefix); 19 | } 20 | -------------------------------------------------------------------------------- /config/patches/8.2/0016-hurd-noptrace.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:54 +0200 3 | Subject: hurd-noptrace 4 | 5 | --- 6 | sapi/fpm/config.m4 | 5 +++++ 7 | 1 file changed, 5 insertions(+) 8 | 9 | --- a/sapi/fpm/config.m4 10 | +++ b/sapi/fpm/config.m4 11 | @@ -165,6 +165,11 @@ AC_DEFUN([AC_FPM_TRACE], 12 | pid_t child; 13 | int status; 14 | 15 | + /* broken ptrace on Hurd, avoid hanging */ 16 | + #ifdef __GNU__ 17 | + return 10; 18 | + #endif 19 | + 20 | if ( (child = fork()) ) { /* parent */ 21 | int ret = 0; 22 | 23 | -------------------------------------------------------------------------------- /config/patches/8.2/0019-php-5.2.4-embed.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:55 +0200 3 | Subject: php-5.2.4-embed 4 | 5 | --- 6 | sapi/embed/config.m4 | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | --- a/sapi/embed/config.m4 10 | +++ b/sapi/embed/config.m4 11 | @@ -12,7 +12,7 @@ if test "$PHP_EMBED" != "no"; then 12 | yes|shared) 13 | LIBPHP_CFLAGS="-shared" 14 | PHP_EMBED_TYPE=shared 15 | - INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)\$(prefix)/lib" 16 | + INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(libdir); \$(LIBTOOL) --mode=install \$(INSTALL) -m 0755 \$(OVERALL_TARGET) \$(INSTALL_ROOT)\$(libdir)" 17 | ;; 18 | static) 19 | LIBPHP_CFLAGS="-static" 20 | -------------------------------------------------------------------------------- /config/patches/8.2/0025-php-5.4.9-fixheader.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:56 +0200 3 | Subject: php-5.4.9-fixheader 4 | 5 | Make generated php_config.h constant across rebuilds. 6 | --- 7 | configure.ac | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | --- a/configure.ac 11 | +++ b/configure.ac 12 | @@ -1402,7 +1402,7 @@ PHP_REMOVE_USR_LIB(LDFLAGS) 13 | EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PHP_LDFLAGS" 14 | EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $PHP_LDFLAGS" 15 | 16 | -UNAME=`uname -a | xargs` 17 | +UNAME=`uname | xargs` 18 | PHP_UNAME=${PHP_UNAME:-$UNAME} 19 | AC_DEFINE_UNQUOTED(PHP_UNAME,"$PHP_UNAME",[uname -a output]) 20 | PHP_OS=`uname | xargs` 21 | -------------------------------------------------------------------------------- /config/patches/8.2/0033-Fix-ext-date-lib-parse_tz-PATH_MAX-HURD-FTBFS.patch: -------------------------------------------------------------------------------- 1 | From: Svante Signell 2 | Date: Thu, 31 Mar 2016 14:58:42 +0200 3 | Subject: Fix ext/date/lib/parse_tz PATH_MAX HURD FTBFS 4 | 5 | --- 6 | ext/date/lib/parse_tz.c | 4 ++++ 7 | 1 file changed, 4 insertions(+) 8 | 9 | --- a/ext/date/lib/parse_tz.c 10 | +++ b/ext/date/lib/parse_tz.c 11 | @@ -43,6 +43,10 @@ 12 | 13 | #include 14 | 15 | +#if !defined(PATH_MAX) 16 | +#define PATH_MAX 4096 17 | +#endif 18 | + 19 | #if (defined(__APPLE__) || defined(__APPLE_CC__)) && (defined(__BIG_ENDIAN__) || defined(__LITTLE_ENDIAN__)) 20 | # if defined(__LITTLE_ENDIAN__) 21 | # undef WORDS_BIGENDIAN 22 | -------------------------------------------------------------------------------- /config/patches/8.2/0037-Include-all-libtool-files-from-phpize.m4.patch: -------------------------------------------------------------------------------- 1 | From: =?utf-8?b?T25kxZllaiBTdXLDvQ==?= 2 | Date: Sun, 18 Oct 2020 13:31:37 +0200 3 | Subject: Include all libtool files from phpize.m4 4 | 5 | --- 6 | scripts/phpize.m4 | 4 ++++ 7 | 1 file changed, 4 insertions(+) 8 | 9 | --- a/scripts/phpize.m4 10 | +++ b/scripts/phpize.m4 11 | @@ -5,6 +5,10 @@ dnl comments starting with # and empty n 12 | m4_include([build/ax_check_compile_flag.m4]) 13 | m4_include([build/ax_gcc_func_attribute.m4]) 14 | m4_include([build/libtool.m4]) 15 | +m4_include([build/ltoptions.m4]) 16 | +m4_include([build/ltsugar.m4]) 17 | +m4_include([build/ltversion.m4]) 18 | +m4_include([build/lt~obsolete.m4]) 19 | m4_include([build/php_cxx_compile_stdcxx.m4]) 20 | m4_include([build/php.m4]) 21 | m4_include([build/pkg.m4]) 22 | -------------------------------------------------------------------------------- /config/patches/8.2/0041-Override-result-of-AC_PROG_LN_S-to-fix-FTBFS-on-ppc6.patch: -------------------------------------------------------------------------------- 1 | From: =?utf-8?b?T25kxZllaiBTdXLDvQ==?= 2 | Date: Mon, 3 Jan 2022 15:32:12 +0100 3 | Subject: Override result of AC_PROG_LN_S to fix FTBFS on ppc64el 4 | 5 | --- 6 | configure.ac | 5 +++++ 7 | 1 file changed, 5 insertions(+) 8 | 9 | diff --git a/configure.ac b/configure.ac 10 | index 9f04a06..05fea1e 100644 11 | --- a/configure.ac 12 | +++ b/configure.ac 13 | @@ -133,6 +133,11 @@ AC_PROG_CPP 14 | AC_USE_SYSTEM_EXTENSIONS 15 | AC_PROG_LN_S 16 | 17 | +if test "$LN_S" != "ln -s"; then 18 | + AC_MSG_WARN([Overriding result of AC_PROG_LN_S, ln -s always works here]) 19 | + LN_S='ln -s' 20 | +fi 21 | + 22 | if test "$cross_compiling" = yes ; then 23 | AC_MSG_CHECKING(for native build C compiler) 24 | AC_CHECK_PROGS(BUILD_CC, [gcc clang c99 c89 cc cl],none) 25 | -------------------------------------------------------------------------------- /config/patches/8.3/0001-libtool_fixes.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:50 +0200 3 | Subject: libtool_fixes 4 | 5 | --- 6 | configure.ac | 2 -- 7 | 1 file changed, 2 deletions(-) 8 | 9 | --- a/configure.ac 10 | +++ b/configure.ac 11 | @@ -1556,8 +1556,6 @@ AC_PROVIDE_IFELSE([PHP_REQUIRE_CXX], [], 12 | ]) 13 | AC_PROG_LIBTOOL 14 | 15 | -PHP_SET_LIBTOOL_VARIABLE([--silent]) 16 | - 17 | dnl libtool 1.4.3 needs this. 18 | PHP_SET_LIBTOOL_VARIABLE([--preserve-dup-deps]) 19 | 20 | -------------------------------------------------------------------------------- /config/patches/8.3/0008-strcmp_null-OnUpdateErrorLog.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: strcmp_null-OnUpdateErrorLog 4 | 5 | --- 6 | tests/func/null-new_val.phpt | 10 ++++++++++ 7 | 1 file changed, 10 insertions(+) 8 | create mode 100644 tests/func/null-new_val.phpt 9 | 10 | --- /dev/null 11 | +++ b/tests/func/null-new_val.phpt 12 | @@ -0,0 +1,10 @@ 13 | +--TEST-- 14 | +ini_restore strcmp NULL new_val 15 | +--FILE-- 16 | + 22 | +--EXPECT-- 23 | -------------------------------------------------------------------------------- /config/patches/8.3/0009-qdbm-is-usr_include_qdbm.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: qdbm-is-usr_include_qdbm 4 | 5 | --- 6 | ext/dba/config.m4 | 4 ++++ 7 | 1 file changed, 4 insertions(+) 8 | 9 | --- a/ext/dba/config.m4 10 | +++ b/ext/dba/config.m4 11 | @@ -145,6 +145,10 @@ if test "$PHP_QDBM" != "no"; then 12 | THIS_PREFIX=$i 13 | THIS_INCLUDE=$i/include/qdbm/depot.h 14 | break 15 | + elif test -f "$i/include/qdbm/depot.h"; then 16 | + THIS_PREFIX=$i 17 | + THIS_INCLUDE=$i/include/qdbm/depot.h 18 | + break 19 | fi 20 | done 21 | 22 | -------------------------------------------------------------------------------- /config/patches/8.3/0013-php-fpm-sysconfdir.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:54 +0200 3 | Subject: php-fpm-sysconfdir 4 | 5 | --- 6 | sapi/fpm/fpm/fpm_conf.c | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | --- a/sapi/fpm/fpm/fpm_conf.c 10 | +++ b/sapi/fpm/fpm/fpm_conf.c 11 | @@ -1784,7 +1784,7 @@ int fpm_conf_init_main(int test_conf, in 12 | char *tmp; 13 | 14 | if (fpm_globals.prefix == NULL) { 15 | - spprintf(&tmp, 0, "%s/php-fpm.conf", PHP_SYSCONFDIR); 16 | + spprintf(&tmp, 0, "%s/php/%d.%d/fpm/php-fpm.conf", PHP_SYSCONFDIR, PHP_MAJOR_VERSION, PHP_MINOR_VERSION); 17 | } else { 18 | spprintf(&tmp, 0, "%s/etc/php-fpm.conf", fpm_globals.prefix); 19 | } 20 | -------------------------------------------------------------------------------- /config/patches/8.3/0016-hurd-noptrace.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:54 +0200 3 | Subject: hurd-noptrace 4 | 5 | --- 6 | sapi/fpm/config.m4 | 5 +++++ 7 | 1 file changed, 5 insertions(+) 8 | 9 | --- a/sapi/fpm/config.m4 10 | +++ b/sapi/fpm/config.m4 11 | @@ -165,6 +165,11 @@ AC_DEFUN([AC_FPM_TRACE], 12 | pid_t child; 13 | int status; 14 | 15 | + /* broken ptrace on Hurd, avoid hanging */ 16 | + #ifdef __GNU__ 17 | + return 10; 18 | + #endif 19 | + 20 | if ( (child = fork()) ) { /* parent */ 21 | int ret = 0; 22 | 23 | -------------------------------------------------------------------------------- /config/patches/8.3/0025-php-5.4.9-fixheader.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:56 +0200 3 | Subject: php-5.4.9-fixheader 4 | 5 | Make generated php_config.h constant across rebuilds. 6 | --- 7 | configure.ac | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | --- a/configure.ac 11 | +++ b/configure.ac 12 | @@ -1402,7 +1402,7 @@ PHP_REMOVE_USR_LIB(LDFLAGS) 13 | EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PHP_LDFLAGS" 14 | EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $PHP_LDFLAGS" 15 | 16 | -UNAME=`uname -a | xargs` 17 | +UNAME=`uname | xargs` 18 | PHP_UNAME=${PHP_UNAME:-$UNAME} 19 | AC_DEFINE_UNQUOTED(PHP_UNAME,"$PHP_UNAME",[uname -a output]) 20 | PHP_OS=`uname | xargs` 21 | -------------------------------------------------------------------------------- /config/patches/8.3/0033-Fix-ext-date-lib-parse_tz-PATH_MAX-HURD-FTBFS.patch: -------------------------------------------------------------------------------- 1 | From: Svante Signell 2 | Date: Thu, 31 Mar 2016 14:58:42 +0200 3 | Subject: Fix ext/date/lib/parse_tz PATH_MAX HURD FTBFS 4 | 5 | --- 6 | ext/date/lib/parse_tz.c | 4 ++++ 7 | 1 file changed, 4 insertions(+) 8 | 9 | --- a/ext/date/lib/parse_tz.c 10 | +++ b/ext/date/lib/parse_tz.c 11 | @@ -43,6 +43,10 @@ 12 | 13 | #include 14 | 15 | +#if !defined(PATH_MAX) 16 | +#define PATH_MAX 4096 17 | +#endif 18 | + 19 | #if (defined(__APPLE__) || defined(__APPLE_CC__)) && (defined(__BIG_ENDIAN__) || defined(__LITTLE_ENDIAN__)) 20 | # if defined(__LITTLE_ENDIAN__) 21 | # undef WORDS_BIGENDIAN 22 | -------------------------------------------------------------------------------- /config/patches/8.3/0037-Include-all-libtool-files-from-phpize.m4.patch: -------------------------------------------------------------------------------- 1 | From: =?utf-8?b?T25kxZllaiBTdXLDvQ==?= 2 | Date: Sun, 18 Oct 2020 13:31:37 +0200 3 | Subject: Include all libtool files from phpize.m4 4 | 5 | --- 6 | scripts/phpize.m4 | 4 ++++ 7 | 1 file changed, 4 insertions(+) 8 | 9 | --- a/scripts/phpize.m4 10 | +++ b/scripts/phpize.m4 11 | @@ -5,6 +5,10 @@ dnl comments starting with # and empty n 12 | m4_include([build/ax_check_compile_flag.m4]) 13 | m4_include([build/ax_gcc_func_attribute.m4]) 14 | m4_include([build/libtool.m4]) 15 | +m4_include([build/ltoptions.m4]) 16 | +m4_include([build/ltsugar.m4]) 17 | +m4_include([build/ltversion.m4]) 18 | +m4_include([build/lt~obsolete.m4]) 19 | m4_include([build/php_cxx_compile_stdcxx.m4]) 20 | m4_include([build/php.m4]) 21 | m4_include([build/pkg.m4]) 22 | -------------------------------------------------------------------------------- /config/patches/8.3/0041-Override-result-of-AC_PROG_LN_S-to-fix-FTBFS-on-ppc6.patch: -------------------------------------------------------------------------------- 1 | From: =?utf-8?b?T25kxZllaiBTdXLDvQ==?= 2 | Date: Mon, 3 Jan 2022 15:32:12 +0100 3 | Subject: Override result of AC_PROG_LN_S to fix FTBFS on ppc64el 4 | 5 | --- 6 | configure.ac | 5 +++++ 7 | 1 file changed, 5 insertions(+) 8 | 9 | diff --git a/configure.ac b/configure.ac 10 | index 143e397..f119c24 100644 11 | --- a/configure.ac 12 | +++ b/configure.ac 13 | @@ -135,6 +135,11 @@ AC_PROG_CPP 14 | AC_USE_SYSTEM_EXTENSIONS 15 | AC_PROG_LN_S 16 | 17 | +if test "$LN_S" != "ln -s"; then 18 | + AC_MSG_WARN([Overriding result of AC_PROG_LN_S, ln -s always works here]) 19 | + LN_S='ln -s' 20 | +fi 21 | + 22 | if test "$cross_compiling" = yes ; then 23 | AC_MSG_CHECKING(for native build C compiler) 24 | AC_CHECK_PROGS(BUILD_CC, [gcc clang c99 c89 cc cl],none) 25 | -------------------------------------------------------------------------------- /config/patches/8.4/0001-libtool_fixes.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:50 +0200 3 | Subject: libtool_fixes 4 | 5 | --- 6 | configure.ac | 2 -- 7 | 1 file changed, 2 deletions(-) 8 | 9 | --- a/configure.ac 10 | +++ b/configure.ac 11 | @@ -1556,8 +1556,6 @@ AC_PROVIDE_IFELSE([PHP_REQUIRE_CXX], [], 12 | ]) 13 | AC_PROG_LIBTOOL 14 | 15 | -PHP_SET_LIBTOOL_VARIABLE([--silent]) 16 | - 17 | dnl libtool 1.4.3 needs this. 18 | PHP_SET_LIBTOOL_VARIABLE([--preserve-dup-deps]) 19 | 20 | -------------------------------------------------------------------------------- /config/patches/8.4/0008-strcmp_null-OnUpdateErrorLog.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: strcmp_null-OnUpdateErrorLog 4 | 5 | --- 6 | tests/func/null-new_val.phpt | 10 ++++++++++ 7 | 1 file changed, 10 insertions(+) 8 | create mode 100644 tests/func/null-new_val.phpt 9 | 10 | --- /dev/null 11 | +++ b/tests/func/null-new_val.phpt 12 | @@ -0,0 +1,10 @@ 13 | +--TEST-- 14 | +ini_restore strcmp NULL new_val 15 | +--FILE-- 16 | + 22 | +--EXPECT-- 23 | -------------------------------------------------------------------------------- /config/patches/8.4/0009-qdbm-is-usr_include_qdbm.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: qdbm-is-usr_include_qdbm 4 | 5 | --- 6 | ext/dba/config.m4 | 4 ++++ 7 | 1 file changed, 4 insertions(+) 8 | 9 | --- a/ext/dba/config.m4 10 | +++ b/ext/dba/config.m4 11 | @@ -145,6 +145,10 @@ if test "$PHP_QDBM" != "no"; then 12 | THIS_PREFIX=$i 13 | THIS_INCLUDE=$i/include/qdbm/depot.h 14 | break 15 | + elif test -f "$i/include/qdbm/depot.h"; then 16 | + THIS_PREFIX=$i 17 | + THIS_INCLUDE=$i/include/qdbm/depot.h 18 | + break 19 | fi 20 | done 21 | 22 | -------------------------------------------------------------------------------- /config/patches/8.4/0013-php-fpm-sysconfdir.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:54 +0200 3 | Subject: php-fpm-sysconfdir 4 | 5 | --- 6 | sapi/fpm/fpm/fpm_conf.c | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | --- a/sapi/fpm/fpm/fpm_conf.c 10 | +++ b/sapi/fpm/fpm/fpm_conf.c 11 | @@ -1784,7 +1784,7 @@ int fpm_conf_init_main(int test_conf, in 12 | char *tmp; 13 | 14 | if (fpm_globals.prefix == NULL) { 15 | - spprintf(&tmp, 0, "%s/php-fpm.conf", PHP_SYSCONFDIR); 16 | + spprintf(&tmp, 0, "%s/php/%d.%d/fpm/php-fpm.conf", PHP_SYSCONFDIR, PHP_MAJOR_VERSION, PHP_MINOR_VERSION); 17 | } else { 18 | spprintf(&tmp, 0, "%s/etc/php-fpm.conf", fpm_globals.prefix); 19 | } 20 | -------------------------------------------------------------------------------- /config/patches/8.4/0016-hurd-noptrace.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:54 +0200 3 | Subject: hurd-noptrace 4 | 5 | --- 6 | sapi/fpm/config.m4 | 5 +++++ 7 | 1 file changed, 5 insertions(+) 8 | 9 | --- a/sapi/fpm/config.m4 10 | +++ b/sapi/fpm/config.m4 11 | @@ -165,6 +165,11 @@ AC_DEFUN([AC_FPM_TRACE], 12 | pid_t child; 13 | int status; 14 | 15 | + /* broken ptrace on Hurd, avoid hanging */ 16 | + #ifdef __GNU__ 17 | + return 10; 18 | + #endif 19 | + 20 | if ( (child = fork()) ) { /* parent */ 21 | int ret = 0; 22 | 23 | -------------------------------------------------------------------------------- /config/patches/8.4/0025-php-5.4.9-fixheader.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:56 +0200 3 | Subject: php-5.4.9-fixheader 4 | 5 | Make generated php_config.h constant across rebuilds. 6 | --- 7 | configure.ac | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | --- a/configure.ac 11 | +++ b/configure.ac 12 | @@ -1412,7 +1412,7 @@ EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $PHP_LDFLAGS" 13 | 14 | AC_ARG_VAR([PHP_UNAME], 15 | [System information (defaults to the 'uname -a' output)]) 16 | -AS_VAR_IF([PHP_UNAME],, [PHP_UNAME=$(uname -a | xargs)]) 17 | +AS_VAR_IF([PHP_UNAME],, [PHP_UNAME=$(uname | xargs)]) 18 | AC_DEFINE_UNQUOTED([PHP_UNAME], ["$PHP_UNAME"], [The 'uname -a' output.]) 19 | 20 | PHP_OS=$(uname | xargs) 21 | -------------------------------------------------------------------------------- /config/patches/8.4/0028-hack-phpdbg-to-explicitly-link-with-libedit.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:57 +0200 3 | Subject: hack-phpdbg-to-explicitly-link-with-libedit 4 | 5 | --- 6 | sapi/phpdbg/config.m4 | 2 ++ 7 | 1 file changed, 2 insertions(+) 8 | 9 | --- a/sapi/phpdbg/config.m4 10 | +++ b/sapi/phpdbg/config.m4 11 | @@ -35,6 +35,8 @@ if test "$PHP_PHPDBG" != "no"; then 12 | AC_DEFINE([HAVE_PHPDBG_READLINE], [1], 13 | [Define to 1 if the phpdbg SAPI has libedit/readline integration.]) 14 | PHPDBG_EXTRA_LIBS="$PHP_READLINE_LIBS" 15 | +# Temporary hack until this gets fixed 16 | + PHPDBG_EXTRA_LIBS="-ledit -ltermcap" 17 | AC_MSG_RESULT([ok]) 18 | else 19 | AC_MSG_RESULT([readline is not available]) 20 | -------------------------------------------------------------------------------- /config/patches/8.4/0033-Fix-ext-date-lib-parse_tz-PATH_MAX-HURD-FTBFS.patch: -------------------------------------------------------------------------------- 1 | From: Svante Signell 2 | Date: Thu, 31 Mar 2016 14:58:42 +0200 3 | Subject: Fix ext/date/lib/parse_tz PATH_MAX HURD FTBFS 4 | 5 | --- 6 | ext/date/lib/parse_tz.c | 4 ++++ 7 | 1 file changed, 4 insertions(+) 8 | 9 | --- a/ext/date/lib/parse_tz.c 10 | +++ b/ext/date/lib/parse_tz.c 11 | @@ -43,6 +43,10 @@ 12 | 13 | #include 14 | 15 | +#if !defined(PATH_MAX) 16 | +#define PATH_MAX 4096 17 | +#endif 18 | + 19 | #if (defined(__APPLE__) || defined(__APPLE_CC__)) && (defined(__BIG_ENDIAN__) || defined(__LITTLE_ENDIAN__)) 20 | # if defined(__LITTLE_ENDIAN__) 21 | # undef WORDS_BIGENDIAN 22 | -------------------------------------------------------------------------------- /config/patches/8.4/0037-Include-all-libtool-files-from-phpize.m4.patch: -------------------------------------------------------------------------------- 1 | From: =?utf-8?b?T25kxZllaiBTdXLDvQ==?= 2 | Date: Sun, 18 Oct 2020 13:31:37 +0200 3 | Subject: Include all libtool files from phpize.m4 4 | 5 | --- 6 | scripts/phpize.m4 | 4 ++++ 7 | 1 file changed, 4 insertions(+) 8 | 9 | --- a/scripts/phpize.m4 10 | +++ b/scripts/phpize.m4 11 | @@ -5,6 +5,10 @@ dnl comments starting with # and empty n 12 | m4_include([build/ax_check_compile_flag.m4]) 13 | m4_include([build/ax_gcc_func_attribute.m4]) 14 | m4_include([build/libtool.m4]) 15 | +m4_include([build/ltoptions.m4]) 16 | +m4_include([build/ltsugar.m4]) 17 | +m4_include([build/ltversion.m4]) 18 | +m4_include([build/lt~obsolete.m4]) 19 | m4_include([build/php_cxx_compile_stdcxx.m4]) 20 | m4_include([build/php.m4]) 21 | m4_include([build/pkg.m4]) 22 | -------------------------------------------------------------------------------- /config/patches/8.4/0041-Override-result-of-AC_PROG_LN_S-to-fix-FTBFS-on-ppc6.patch: -------------------------------------------------------------------------------- 1 | From: =?utf-8?b?T25kxZllaiBTdXLDvQ==?= 2 | Date: Mon, 3 Jan 2022 15:32:12 +0100 3 | Subject: Override result of AC_PROG_LN_S to fix FTBFS on ppc64el 4 | 5 | --- 6 | configure.ac | 5 +++++ 7 | 1 file changed, 5 insertions(+) 8 | 9 | diff --git a/configure.ac b/configure.ac 10 | index 143e397..f119c24 100644 11 | --- a/configure.ac 12 | +++ b/configure.ac 13 | @@ -139,6 +139,11 @@ AC_PROG_CPP 14 | AC_USE_SYSTEM_EXTENSIONS 15 | AC_PROG_LN_S 16 | 17 | +if test "$LN_S" != "ln -s"; then 18 | + AC_MSG_WARN([Overriding result of AC_PROG_LN_S, ln -s always works here]) 19 | + LN_S='ln -s' 20 | +fi 21 | + 22 | AS_VAR_IF([cross_compiling], [yes], 23 | [AC_CHECK_PROGS([BUILD_CC], [gcc clang c99 c89 cc cl], [none]) 24 | AC_MSG_CHECKING([for native build C compiler]) 25 | -------------------------------------------------------------------------------- /config/patches/8.5/0001-libtool_fixes.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:50 +0200 3 | Subject: libtool_fixes 4 | 5 | --- 6 | configure.ac | 2 -- 7 | 1 file changed, 2 deletions(-) 8 | 9 | --- a/configure.ac 10 | +++ b/configure.ac 11 | @@ -1556,8 +1556,6 @@ AC_PROVIDE_IFELSE([PHP_REQUIRE_CXX], [], 12 | ]) 13 | AC_PROG_LIBTOOL 14 | 15 | -PHP_SET_LIBTOOL_VARIABLE([--silent]) 16 | - 17 | dnl libtool 1.4.3 needs this. 18 | PHP_SET_LIBTOOL_VARIABLE([--preserve-dup-deps]) 19 | 20 | -------------------------------------------------------------------------------- /config/patches/8.5/0008-strcmp_null-OnUpdateErrorLog.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: strcmp_null-OnUpdateErrorLog 4 | 5 | --- 6 | tests/func/null-new_val.phpt | 10 ++++++++++ 7 | 1 file changed, 10 insertions(+) 8 | create mode 100644 tests/func/null-new_val.phpt 9 | 10 | --- /dev/null 11 | +++ b/tests/func/null-new_val.phpt 12 | @@ -0,0 +1,10 @@ 13 | +--TEST-- 14 | +ini_restore strcmp NULL new_val 15 | +--FILE-- 16 | + 22 | +--EXPECT-- 23 | -------------------------------------------------------------------------------- /config/patches/8.5/0009-qdbm-is-usr_include_qdbm.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:53 +0200 3 | Subject: qdbm-is-usr_include_qdbm 4 | 5 | --- 6 | ext/dba/config.m4 | 4 ++++ 7 | 1 file changed, 4 insertions(+) 8 | 9 | --- a/ext/dba/config.m4 10 | +++ b/ext/dba/config.m4 11 | @@ -145,6 +145,10 @@ if test "$PHP_QDBM" != "no"; then 12 | THIS_PREFIX=$i 13 | THIS_INCLUDE=$i/include/qdbm/depot.h 14 | break 15 | + elif test -f "$i/include/qdbm/depot.h"; then 16 | + THIS_PREFIX=$i 17 | + THIS_INCLUDE=$i/include/qdbm/depot.h 18 | + break 19 | fi 20 | done 21 | 22 | -------------------------------------------------------------------------------- /config/patches/8.5/0013-php-fpm-sysconfdir.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:54 +0200 3 | Subject: php-fpm-sysconfdir 4 | 5 | --- 6 | sapi/fpm/fpm/fpm_conf.c | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | --- a/sapi/fpm/fpm/fpm_conf.c 10 | +++ b/sapi/fpm/fpm/fpm_conf.c 11 | @@ -1784,7 +1784,7 @@ int fpm_conf_init_main(int test_conf, in 12 | char *tmp; 13 | 14 | if (fpm_globals.prefix == NULL) { 15 | - spprintf(&tmp, 0, "%s/php-fpm.conf", PHP_SYSCONFDIR); 16 | + spprintf(&tmp, 0, "%s/php/%d.%d/fpm/php-fpm.conf", PHP_SYSCONFDIR, PHP_MAJOR_VERSION, PHP_MINOR_VERSION); 17 | } else { 18 | spprintf(&tmp, 0, "%s/etc/php-fpm.conf", fpm_globals.prefix); 19 | } 20 | -------------------------------------------------------------------------------- /config/patches/8.5/0016-hurd-noptrace.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:54 +0200 3 | Subject: hurd-noptrace 4 | 5 | --- 6 | sapi/fpm/config.m4 | 5 +++++ 7 | 1 file changed, 5 insertions(+) 8 | 9 | --- a/sapi/fpm/config.m4 10 | +++ b/sapi/fpm/config.m4 11 | @@ -165,6 +165,11 @@ AC_DEFUN([AC_FPM_TRACE], 12 | pid_t child; 13 | int status; 14 | 15 | + /* broken ptrace on Hurd, avoid hanging */ 16 | + #ifdef __GNU__ 17 | + return 10; 18 | + #endif 19 | + 20 | if ( (child = fork()) ) { /* parent */ 21 | int ret = 0; 22 | 23 | -------------------------------------------------------------------------------- /config/patches/8.5/0025-php-5.4.9-fixheader.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:56 +0200 3 | Subject: php-5.4.9-fixheader 4 | 5 | Make generated php_config.h constant across rebuilds. 6 | --- 7 | configure.ac | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | --- a/configure.ac 11 | +++ b/configure.ac 12 | @@ -1412,7 +1412,7 @@ EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $PHP_LDFLAGS" 13 | 14 | AC_ARG_VAR([PHP_UNAME], 15 | [System information (defaults to the 'uname -a' output)]) 16 | -AS_VAR_IF([PHP_UNAME],, [PHP_UNAME=$(uname -a | xargs)]) 17 | +AS_VAR_IF([PHP_UNAME],, [PHP_UNAME=$(uname | xargs)]) 18 | AC_DEFINE_UNQUOTED([PHP_UNAME], ["$PHP_UNAME"], [The 'uname -a' output.]) 19 | 20 | PHP_OS=$(uname | xargs) 21 | -------------------------------------------------------------------------------- /config/patches/8.5/0028-hack-phpdbg-to-explicitly-link-with-libedit.patch: -------------------------------------------------------------------------------- 1 | From: Debian PHP Maintainers 2 | Date: Sat, 2 May 2015 10:26:57 +0200 3 | Subject: hack-phpdbg-to-explicitly-link-with-libedit 4 | 5 | --- 6 | sapi/phpdbg/config.m4 | 2 ++ 7 | 1 file changed, 2 insertions(+) 8 | 9 | --- a/sapi/phpdbg/config.m4 10 | +++ b/sapi/phpdbg/config.m4 11 | @@ -35,6 +35,8 @@ if test "$PHP_PHPDBG" != "no"; then 12 | AC_DEFINE([HAVE_PHPDBG_READLINE], [1], 13 | [Define to 1 if the phpdbg SAPI has libedit/readline integration.]) 14 | PHPDBG_EXTRA_LIBS="$PHP_READLINE_LIBS" 15 | +# Temporary hack until this gets fixed 16 | + PHPDBG_EXTRA_LIBS="-ledit -ltermcap" 17 | AC_MSG_RESULT([ok]) 18 | else 19 | AC_MSG_RESULT([readline is not available]) 20 | -------------------------------------------------------------------------------- /config/patches/8.5/0033-Fix-ext-date-lib-parse_tz-PATH_MAX-HURD-FTBFS.patch: -------------------------------------------------------------------------------- 1 | From: Svante Signell 2 | Date: Thu, 31 Mar 2016 14:58:42 +0200 3 | Subject: Fix ext/date/lib/parse_tz PATH_MAX HURD FTBFS 4 | 5 | --- 6 | ext/date/lib/parse_tz.c | 4 ++++ 7 | 1 file changed, 4 insertions(+) 8 | 9 | --- a/ext/date/lib/parse_tz.c 10 | +++ b/ext/date/lib/parse_tz.c 11 | @@ -43,6 +43,10 @@ 12 | 13 | #include 14 | 15 | +#if !defined(PATH_MAX) 16 | +#define PATH_MAX 4096 17 | +#endif 18 | + 19 | #if (defined(__APPLE__) || defined(__APPLE_CC__)) && (defined(__BIG_ENDIAN__) || defined(__LITTLE_ENDIAN__)) 20 | # if defined(__LITTLE_ENDIAN__) 21 | # undef WORDS_BIGENDIAN 22 | -------------------------------------------------------------------------------- /config/patches/8.5/0037-Include-all-libtool-files-from-phpize.m4.patch: -------------------------------------------------------------------------------- 1 | From: =?utf-8?b?T25kxZllaiBTdXLDvQ==?= 2 | Date: Sun, 18 Oct 2020 13:31:37 +0200 3 | Subject: Include all libtool files from phpize.m4 4 | 5 | --- 6 | scripts/phpize.m4 | 4 ++++ 7 | 1 file changed, 4 insertions(+) 8 | 9 | --- a/scripts/phpize.m4 10 | +++ b/scripts/phpize.m4 11 | @@ -5,6 +5,10 @@ dnl comments starting with # and empty n 12 | m4_include([build/ax_check_compile_flag.m4]) 13 | m4_include([build/ax_gcc_func_attribute.m4]) 14 | m4_include([build/libtool.m4]) 15 | +m4_include([build/ltoptions.m4]) 16 | +m4_include([build/ltsugar.m4]) 17 | +m4_include([build/ltversion.m4]) 18 | +m4_include([build/lt~obsolete.m4]) 19 | m4_include([build/php_cxx_compile_stdcxx.m4]) 20 | m4_include([build/php.m4]) 21 | m4_include([build/pkg.m4]) 22 | -------------------------------------------------------------------------------- /config/patches/8.5/0041-Override-result-of-AC_PROG_LN_S-to-fix-FTBFS-on-ppc6.patch: -------------------------------------------------------------------------------- 1 | From: =?utf-8?b?T25kxZllaiBTdXLDvQ==?= 2 | Date: Mon, 3 Jan 2022 15:32:12 +0100 3 | Subject: Override result of AC_PROG_LN_S to fix FTBFS on ppc64el 4 | 5 | --- 6 | configure.ac | 5 +++++ 7 | 1 file changed, 5 insertions(+) 8 | 9 | diff --git a/configure.ac b/configure.ac 10 | index 143e397..f119c24 100644 11 | --- a/configure.ac 12 | +++ b/configure.ac 13 | @@ -139,6 +139,11 @@ AC_PROG_CPP 14 | AC_USE_SYSTEM_EXTENSIONS 15 | AC_PROG_LN_S 16 | 17 | +if test "$LN_S" != "ln -s"; then 18 | + AC_MSG_WARN([Overriding result of AC_PROG_LN_S, ln -s always works here]) 19 | + LN_S='ln -s' 20 | +fi 21 | + 22 | AS_VAR_IF([cross_compiling], [yes], 23 | [AC_CHECK_PROGS([BUILD_CC], [gcc clang c99 c89 cc cl], [none]) 24 | AC_MSG_CHECKING([for native build C compiler]) 25 | -------------------------------------------------------------------------------- /config/php-fpm.logrotate: -------------------------------------------------------------------------------- 1 | /var/log/phpPHP_VERSION-fpm.log { 2 | rotate 12 3 | weekly 4 | missingok 5 | notifempty 6 | compress 7 | delaycompress 8 | postrotate 9 | if [ -x /usr/lib/php/phpPHP_VERSION-fpm-reopenlogs ]; then 10 | /usr/lib/php/phpPHP_VERSION-fpm-reopenlogs; 11 | fi 12 | endscript 13 | } 14 | -------------------------------------------------------------------------------- /config/php-fpm.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=The PHP PHP_VERSION FastCGI Process Manager 3 | Documentation=man:php-fpmPHP_VERSION(8) 4 | After=network.target 5 | 6 | [Service] 7 | Type=notify 8 | ExecStart=/usr/sbin/php-fpmPHP_VERSION --nodaemonize --fpm-config /etc/php/PHP_VERSION/fpm/php-fpm.conf 9 | ExecStartPost=-/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/PHP_VERSION/fpm/pool.d/www.conf NO_DOT 10 | ExecStopPost=-/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/PHP_VERSION/fpm/pool.d/www.conf NO_DOT 11 | ExecReload=/bin/kill -USR2 $MAINPID 12 | Restart=on-failure 13 | 14 | [Install] 15 | WantedBy=multi-user.target -------------------------------------------------------------------------------- /config/php-fpm.tmpfile: -------------------------------------------------------------------------------- 1 | #Type Path Mode UID GID Age Argument 2 | d /run/php 0755 www-data www-data - - 3 | -------------------------------------------------------------------------------- /config/php.load: -------------------------------------------------------------------------------- 1 | LoadModule phpPHP_MAJOR_module /usr/lib/apache2/modules/libphpPHP_VERSION.so -------------------------------------------------------------------------------- /scripts/build_partials/sapi/cli.sh: -------------------------------------------------------------------------------- 1 | # Function to configure PHP cli build. 2 | configure_cli() { 3 | # Remove libtool files. 4 | find "${INSTALL_ROOT:?}" -name '*.la' -delete 5 | } 6 | 7 | # Function to build PHP cli sapi. 8 | build_cli() { 9 | mkdir -p "${INSTALL_ROOT:?}" \ 10 | "$INSTALL_ROOT"/etc/php/"${PHP_VERSION:?}" 11 | chmod -R 777 "$INSTALL_ROOT" 12 | 13 | configure_sapi_options cli 14 | save_commit 15 | build_php cli 16 | configure_cli 17 | package_sapi cli 18 | } 19 | -------------------------------------------------------------------------------- /scripts/build_partials/sapi/embed.sh: -------------------------------------------------------------------------------- 1 | # Function to configure PHP embed build. 2 | configure_embed() { 3 | mv "${INSTALL_ROOT:?}"/usr/lib/php/libphp*.so "$INSTALL_ROOT"/usr/lib/libphp"$PHP_VERSION".so 4 | 5 | # Remove any php binaries in the embed build. 6 | rm -rf "${INSTALL_ROOT:?}"/usr/bin 7 | 8 | # Remove libtool files and extensions. 9 | find "${INSTALL_ROOT:?}" -name '*.la' -name '*.so' -delete 10 | } 11 | 12 | # Function to build PHP embed sapi. 13 | build_embed() { 14 | mkdir -p "${INSTALL_ROOT:?}" 15 | chmod -R 777 "$INSTALL_ROOT" 16 | 17 | configure_sapi_options embed 18 | build_php embed 19 | configure_embed 20 | package_sapi embed 21 | } 22 | -------------------------------------------------------------------------------- /scripts/build_partials/sapi/phpdbg.sh: -------------------------------------------------------------------------------- 1 | # Function to configure phpdbg build. 2 | configure_phpdbg() { 3 | # Remove all binaries except phpdbg. 4 | find "${INSTALL_ROOT:?}/usr/bin" -name "*$PHP_VERSION*" ! -name "phpdbg$PHP_VERSION" -delete 5 | 6 | # Remove libtool files and extensions. 7 | find "${INSTALL_ROOT:?}" -name '*.la' -name '*.so' -delete 8 | } 9 | 10 | # Function to build PHP phpdbg sapi. 11 | build_phpdbg() { 12 | mkdir -p "${INSTALL_ROOT:?}" 13 | chmod -R 777 "$INSTALL_ROOT" 14 | 15 | configure_sapi_options phpdbg 16 | build_php phpdbg 17 | configure_phpdbg 18 | package_sapi phpdbg 19 | } 20 | -------------------------------------------------------------------------------- /scripts/php-fpm-reopenlogs: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | CONFFILE=/etc/php/PHP_VERSION/fpm/php-fpm.conf 3 | [ -r /etc/default/phpPHP_VERSION-fpm ] && . /etc/default/phpPHP_VERSION-fpm 4 | CONF_PIDFILE=$(sed -n 's/^[[:space:]]*pid[[:space:]]*=[[:space:]]*//p' $CONFFILE) 5 | PIDFILE=${CONF_PIDFILE:-/run/php/phpPHP_VERSION-fpm.pid} 6 | [ -r "$PIDFILE" ] && kill -USR1 $(cat "$PIDFILE") > /dev/null 7 | exit 0 8 | -------------------------------------------------------------------------------- /scripts/retry.sh: -------------------------------------------------------------------------------- 1 | num_args=$# 2 | max_runs=$1 3 | sleep=$2 4 | cmd=$3 5 | shift 3 6 | args=("$@") 7 | runs=0 8 | [[ $num_args -le 2 ]] && echo "Usage retry.sh " && exit 0; 9 | until [[ $runs -ge $max_runs ]] 10 | do 11 | if $cmd "${args[@]}"; then 12 | break; 13 | else 14 | echo "Failed" 15 | ((runs++)) 16 | echo "retry $runs ::" 17 | sleep "$sleep"; 18 | fi 19 | done -------------------------------------------------------------------------------- /scripts/test_extensions.sh: -------------------------------------------------------------------------------- 1 | set -e 2 | php -m 3 | 4 | extensions=() 5 | while read -r extension_config; do 6 | extensions+=($(echo "$extension_config" | cut -d ' ' -f 2 | cut -d '-' -f 1)) 7 | done < config/extensions/"$PHP_VERSION" 8 | 9 | for extension in "${extensions[@]}"; do 10 | if [ "$extension" = "pcov" ]; then 11 | ln -sf /etc/php/"$PHP_VERSION"/mods-available/pcov.ini /etc/php/"$PHP_VERSION"/cli/conf.d/20-pcov.ini 12 | fi 13 | php -r "if(! extension_loaded(\"$extension\")) {throw new Exception(\"$extension not found\");}" 14 | done 15 | -------------------------------------------------------------------------------- /scripts/test_pecl.sh: -------------------------------------------------------------------------------- 1 | if [ "$PHP_VERSION" = "5.6" ]; then 2 | sudo pecl install -f psr-0.6.0 3 | elif [[ "$PHP_VERSION" =~ 7.[0-2]$ ]]; then 4 | sudo pecl install -f psr-1.1.0 5 | else 6 | sudo pecl install -f psr 7 | fi 8 | php -m | grep -q psr || exit 1 9 | -------------------------------------------------------------------------------- /scripts/test_sapi.sh: -------------------------------------------------------------------------------- 1 | sudo mkdir -p /var/www/html 2 | sudo rm -rf /var/www/html/index.html 3 | printf "/dev/null 4 | for sapi in apache2handler:apache fpm:apache cgi:apache fpm:nginx; do 5 | sudo switch_sapi -v "$PHP_VERSION" -s "$sapi" 6 | resp="$(curl -s http://localhost)" 7 | [ "$sapi" != "$resp" ] && exit 1 || echo "$resp" 8 | done 9 | --------------------------------------------------------------------------------