diff --git a/php-8.2.3.tar.xz b/php-8.2.4.tar.xz similarity index 59% rename from php-8.2.3.tar.xz rename to php-8.2.4.tar.xz index 942ae7389de25c23476014a48e60cad8af45d381..5bd9555d18e120ad5bc94b37b04b517d09cd0a1f 100644 Binary files a/php-8.2.3.tar.xz and b/php-8.2.4.tar.xz differ diff --git a/php.ini b/php.ini index bf9eb12413a09de2257d68d47ca958fe0629221e..adb94c7ac18c22870e0dc536b6d58469b9a91ee5 100644 --- a/php.ini +++ b/php.ini @@ -9,8 +9,8 @@ ; PHP attempts to find and load this configuration from a number of locations. ; The following is a summary of its search order: ; 1. SAPI module specific location. -; 2. The PHPRC environment variable. (As of PHP 5.2.0) -; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0) +; 2. The PHPRC environment variable. +; 3. A number of predefined registry keys on Windows ; 4. Current working directory (except CLI) ; 5. The web server's directory (for SAPI modules), or directory of PHP ; (otherwise in Windows) @@ -425,6 +425,11 @@ max_input_time = 60 ; How many GET/POST/COOKIE input variables may be accepted ;max_input_vars = 1000 +; How many multipart body parts (combined input variable and file uploads) may +; be accepted. +; Default Value: -1 (Sum of max_input_vars and max_file_uploads) +;max_multipart_body_parts = 1500 + ; Maximum amount of memory a script may consume ; https://php.net/memory-limit memory_limit = 128M @@ -449,7 +454,7 @@ memory_limit = 128M ; development and early testing. ; ; Error Level Constants: -; E_ALL - All errors and warnings (includes E_STRICT as of PHP 5.4.0) +; E_ALL - All errors and warnings ; E_ERROR - fatal run-time errors ; E_RECOVERABLE_ERROR - almost fatal run-time errors ; E_WARNING - run-time warnings (non-fatal errors) diff --git a/php.spec b/php.spec index d731b38bc41fda3ce6cf8bd91affea5be581cda7..bb7e770b94ffcbc1a5343cccb6e61883673afa6c 100644 --- a/php.spec +++ b/php.spec @@ -1,4 +1,4 @@ -%define anolis_release 3 +%define anolis_release 1 # API/ABI check %global apiver 20220829 @@ -42,7 +42,7 @@ Summary: PHP scripting language for creating dynamic web sites Name: php -Version: 8.2.3 +Version: 8.2.4 Release: %{anolis_release}%{?dist} # All files licensed under PHP version 3.01, except # Zend is licensed under Zend @@ -631,6 +631,20 @@ BuildRequires: pkgconfig(enchant-2) The php-enchant package contains a dynamic shared object that will add support for using the enchant library to PHP. +%package zip +Summary: ZIP archive management extension for PHP +# All files licensed under PHP version 3.0.1 +License: PHP +Requires: php-common = %{version}-%{release} +Obsoletes: php-pecl-zip < %{zipver} +Provides: php-pecl(zip) = %{zipver} +Provides: php-pecl-zip = %{zipver} +BuildRequires: pkgconfig(libzip) >= 0.11 + +%description zip +The php-zip package provides an extension that will add +support for ZIP archive management to PHP. + %if %{with sodium} %package sodium Summary: Wrapper for the Sodium cryptographic library @@ -912,6 +926,7 @@ build --libdir=%{_libdir}/php \ --with-pdo-dblib=shared,%{_prefix} \ %endif --with-sqlite3=shared \ + --with-zip=shared \ --without-readline \ --with-libedit \ %if %{with pspell} @@ -1204,6 +1219,7 @@ for mod in pgsql odbc ldap snmp \ mbstring gd dom xsl soap bcmath dba \ simplexml bz2 calendar ctype exif ftp gettext gmp iconv \ sockets tokenizer opcache \ + zip \ sqlite3 \ enchant phar fileinfo intl \ ffi \ @@ -1483,6 +1499,7 @@ systemctl try-restart php-fpm.service >/dev/null 2>&1 || : %if %{with zts} %config(noreplace) %{_sysconfdir}/php-zts.d/opcache-default.blacklist %endif +%files zip -f files.zip %if %{with sodium} %files sodium -f files.sodium %endif @@ -1491,6 +1508,10 @@ systemctl try-restart php-fpm.service >/dev/null 2>&1 || : %changelog +* Wed Mar 15 2023 Funda Wang - 8.2.4-1 +- New version 8.2.4 +- Add zip extension for composer + * Sat Mar 04 2023 Funda Wang - 8.2.3-3 - Rebuild for new libpq