Bug 32968 - PHP: update to 8.2.17
Summary: PHP: update to 8.2.17
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA9-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2024-03-14 20:13 CET by Marc Krämer
Modified: 2024-03-21 05:57 CET (History)
3 users (show)

See Also:
Source RPM: php
CVE:
Status comment:


Attachments

Description Marc Krämer 2024-03-14 20:13:07 CET
https://www.php.net/ChangeLog-8.php#8.2.17
Comment 1 Marc Krämer 2024-03-14 20:17:31 CET
Updated php to version 8.2.17 fixes some bugs:

Core:
 - Fix ZTS persistent resource crashes on shutdown.

DOM:
 - Fix reference access in dimensions for DOMNodeList and DOMNodeMap.

Fileinfo:
 - Fixed bug finfo::buffer(): Failed identify data 0:(null), backport

FPM:
 - getenv in php-fpm should not read $_ENV, $_SERVER

GD:
 - detection of image formats in system gd library

MySQLnd:
 - Fixed not to set CR_MALFORMED_PACKET to error if CR_SERVER_GONE_ERROR is already set

PGSQL:
 - pg_execute/pg_send_query_params/pg_send_execute with null value passed by reference

Standard:
 - Fixed array key as hash to string (case insensitive) comparison typo for the second operand buffer size (albeit unused for now).

References:
https://www.php.net/ChangeLog-8.php#8.2.17
========================

Updated packages in core/updates_testing:
========================
php-phar-debuginfo-8.2.17-1.mga9
php-intl-8.2.17-1.mga9
php-dom-debuginfo-8.2.17-1.mga9
php-openssl-debuginfo-8.2.17-1.mga9
php-opcache-8.2.17-1.mga9
php-mbstring-8.2.17-1.mga9
php-mysqlnd-debuginfo-8.2.17-1.mga9
php-mbstring-debuginfo-8.2.17-1.mga9
php-debuginfo-8.2.17-1.mga9
php-curl-debuginfo-8.2.17-1.mga9
php-soap-debuginfo-8.2.17-1.mga9
php-pgsql-debuginfo-8.2.17-1.mga9
php-soap-8.2.17-1.mga9
php-mysqli-debuginfo-8.2.17-1.mga9
php-pdo-debuginfo-8.2.17-1.mga9
php-fileinfo-debuginfo-8.2.17-1.mga9
php-phar-8.2.17-1.mga9
php-sockets-debuginfo-8.2.17-1.mga9
php-zip-debuginfo-8.2.17-1.mga9
php-mysqlnd-8.2.17-1.mga9
php-session-debuginfo-8.2.17-1.mga9
php-sodium-debuginfo-8.2.17-1.mga9
php-ini-8.2.17-1.mga9
php-gd-debuginfo-8.2.17-1.mga9
php-imap-debuginfo-8.2.17-1.mga9
php-ldap-debuginfo-8.2.17-1.mga9
php-dba-debuginfo-8.2.17-1.mga9
php-dom-8.2.17-1.mga9
php-openssl-8.2.17-1.mga9
php-intl-debuginfo-8.2.17-1.mga9
php-opcache-debuginfo-8.2.17-1.mga9
php-tidy-debuginfo-8.2.17-1.mga9
php-snmp-debuginfo-8.2.17-1.mga9
php-sqlite3-debuginfo-8.2.17-1.mga9
php-gmp-debuginfo-8.2.17-1.mga9
php-mysqli-8.2.17-1.mga9
php-ftp-debuginfo-8.2.17-1.mga9
php-pdo-8.2.17-1.mga9
php-exif-debuginfo-8.2.17-1.mga9
php-pgsql-8.2.17-1.mga9
php-odbc-debuginfo-8.2.17-1.mga9
php-doc-8.2.17-1.mga9
php-bcmath-debuginfo-8.2.17-1.mga9
php-curl-8.2.17-1.mga9
php-pcntl-debuginfo-8.2.17-1.mga9
php-filter-debuginfo-8.2.17-1.mga9
php-iconv-debuginfo-8.2.17-1.mga9
php-session-8.2.17-1.mga9
php-sodium-8.2.17-1.mga9
php-imap-8.2.17-1.mga9
php-pdo_pgsql-debuginfo-8.2.17-1.mga9
php-zlib-debuginfo-8.2.17-1.mga9
php-xmlreader-debuginfo-8.2.17-1.mga9
php-pdo_mysql-debuginfo-8.2.17-1.mga9
php-ldap-8.2.17-1.mga9
php-gd-8.2.17-1.mga9
php-posix-debuginfo-8.2.17-1.mga9
php-zip-8.2.17-1.mga9
php-sockets-8.2.17-1.mga9
php-exif-8.2.17-1.mga9
php-pdo_sqlite-debuginfo-8.2.17-1.mga9
php-xmlwriter-debuginfo-8.2.17-1.mga9
php-xsl-debuginfo-8.2.17-1.mga9
php-pdo_firebird-debuginfo-8.2.17-1.mga9
php-sqlite3-8.2.17-1.mga9
php-tokenizer-debuginfo-8.2.17-1.mga9
php-dba-8.2.17-1.mga9
php-gmp-8.2.17-1.mga9
php-ftp-8.2.17-1.mga9
php-pdo_dblib-debuginfo-8.2.17-1.mga9
php-odbc-8.2.17-1.mga9
php-calendar-debuginfo-8.2.17-1.mga9
php-zlib-8.2.17-1.mga9
php-readline-debuginfo-8.2.17-1.mga9
php-pdo_odbc-debuginfo-8.2.17-1.mga9
php-bz2-debuginfo-8.2.17-1.mga9
php-tidy-8.2.17-1.mga9
php-snmp-8.2.17-1.mga9
php-cgi-8.2.17-1.mga9
php-iconv-8.2.17-1.mga9
php-enchant-debuginfo-8.2.17-1.mga9
php-pcntl-8.2.17-1.mga9
php-xmlreader-8.2.17-1.mga9
php-xmlwriter-8.2.17-1.mga9
php-filter-8.2.17-1.mga9
php-sysvmsg-debuginfo-8.2.17-1.mga9
php-cli-8.2.17-1.mga9
php-ctype-debuginfo-8.2.17-1.mga9
php-bcmath-8.2.17-1.mga9
php-posix-8.2.17-1.mga9
php-pdo_firebird-8.2.17-1.mga9
php-pdo_odbc-8.2.17-1.mga9
php-pdo_pgsql-8.2.17-1.mga9
php-gettext-debuginfo-8.2.17-1.mga9
phpdbg-8.2.17-1.mga9
php-bz2-8.2.17-1.mga9
php-calendar-8.2.17-1.mga9
apache-mod_php-8.2.17-1.mga9
php-sysvsem-debuginfo-8.2.17-1.mga9
php-pdo_mysql-8.2.17-1.mga9
php-shmop-debuginfo-8.2.17-1.mga9
php-sysvshm-debuginfo-8.2.17-1.mga9
php-sysvshm-8.2.17-1.mga9
php-pdo_dblib-8.2.17-1.mga9
php-pdo_sqlite-8.2.17-1.mga9
php-readline-8.2.17-1.mga9
php-tokenizer-8.2.17-1.mga9
php-fpm-8.2.17-1.mga9
php-xsl-8.2.17-1.mga9
php-fpm-nginx-8.2.17-1.mga9
php-ctype-8.2.17-1.mga9
php-gettext-8.2.17-1.mga9
php-enchant-8.2.17-1.mga9
php-shmop-8.2.17-1.mga9
php-sysvsem-8.2.17-1.mga9
php-fpm-apache-8.2.17-1.mga9
php-sysvmsg-8.2.17-1.mga9
php-fileinfo-8.2.17-1.mga9
php-cgi-debuginfo-8.2.17-1.mga9
php-fpm-debuginfo-8.2.17-1.mga9
php-cli-debuginfo-8.2.17-1.mga9
phpdbg-debuginfo-8.2.17-1.mga9
apache-mod_php-debuginfo-8.2.17-1.mga9
php-debugsource-8.2.17-1.mga9
php-devel-8.2.17-1.mga9

SRPM:
php-8.2.17-1.mga9.src.rpm

Assignee: mageia => qa-bugs

Comment 2 Herman Viaene 2024-03-18 14:28:36 CET
The following package cannot be installed because it depends on packages
that are older than the installed ones:
php-bcmath-8.2.17-1.mga9

CC: (none) => herman.viaene

Comment 3 katnatek 2024-03-18 19:10:47 CET
(In reply to Herman Viaene from comment #2)
> The following package cannot be installed because it depends on packages
> that are older than the installed ones:
> php-bcmath-8.2.17-1.mga9

I think you have to update other packages first

After update the few php packages that I use

installing //home/katnatek/qa-testing/x86_64/php-ini-8.2.17-1.mga9.x86_64.rpm                                           
//home/katnatek/qa-testing/x86_64/php-zlib-8.2.17-1.mga9.x86_64.rpm
//home/katnatek/qa-testing/x86_64/php-session-8.2.17-1.mga9.x86_64.rpm
//home/katnatek/qa-testing/x86_64/php-cli-8.2.17-1.mga9.x86_64.rpm
//home/katnatek/qa-testing/x86_64/php-openssl-8.2.17-1.mga9.x86_64.rpm
//home/katnatek/qa-testing/x86_64/php-sysvsem-8.2.17-1.mga9.x86_64.rpm
//home/katnatek/qa-testing/x86_64/php-sysvshm-8.2.17-1.mga9.x86_64.rpm
//home/katnatek/qa-testing/x86_64/php-fpm-apache-8.2.17-1.mga9.x86_64.rpm


LC_ALL=C urpmi --test php-bcmath


installing php-bcmath-8.2.17-1.mga9.x86_64.rpm from //home/katnatek/qa-testing/x86_64
Preparing...                     ######################################################################################
Installation is possible

LC_ALL=C urpmi  php-bcmath


installing php-bcmath-8.2.17-1.mga9.x86_64.rpm from //home/katnatek/qa-testing/x86_64
Preparing...                     ######################################################################################
      1/1: php-bcmath            ######################################################################################


Except for debug packages, I always put all the list in qarepo and update the packages that I use
katnatek 2024-03-18 22:33:05 CET

Keywords: (none) => advisory

Comment 4 katnatek 2024-03-19 00:11:28 CET
RH mageia 9 i586

LC_ALL=C urpmi --auto --auto-update 
medium "QA Testing (32-bit)" is up-to-date
medium "Core Release (distrib1)" is up-to-date
medium "Core Updates (distrib3)" is up-to-date
medium "Nonfree Release (distrib11)" is up-to-date
medium "Nonfree Updates (distrib13)" is up-to-date
medium "Tainted Release (distrib21)" is up-to-date
medium "Tainted Updates (distrib23)" is up-to-date


installing php-sysvshm-8.2.17-1.mga9.i586.rpm php-ini-8.2.17-1.mga9.i586.rpm php-cli-8.2.17-1.mga9.i586.rpm php-openssl-8.2.17-1.mga9.i586.rpm php-sysvsem-8.2.17-1.mga9.i586.rpm php-zlib-8.2.17-1.mga9.i586.rpm from //home/katnatek/qa-testing/i586
Preparing...                     ################################################################
      1/6: php-cli               ################################################################
      2/6: php-openssl           ################################################################
      3/6: php-sysvsem           ################################################################
      4/6: php-zlib              ################################################################
      5/6: php-ini               ################################################################
      6/6: php-sysvshm           ################################################################
      1/6: removing php-sysvshm-3:8.2.16-1.mga9.i586
                                 ################################################################
      2/6: removing php-ini-3:8.2.16-1.mga9.i586
                                 ################################################################
      3/6: removing php-cli-3:8.2.16-1.mga9.i586
                                 ################################################################
      4/6: removing php-openssl-3:8.2.16-1.mga9.i586
                                 ################################################################
      5/6: removing php-sysvsem-3:8.2.16-1.mga9.i586
                                 ################################################################
      6/6: removing php-zlib-3:8.2.16-1.mga9.i586
                                 ################################################################

php script tested and works as before update
Comment 5 katnatek 2024-03-19 00:23:37 CET
RH mageia 9 x86_64

in comment#3 I update without issues
test php page of one my projects It works as before the update
Comment 6 Herman Viaene 2024-03-19 08:55:57 CET
To Comment 3:
I always use QArepo as well, and that as such was no problem. But when I used MCC to update I got a blank list. Used "Install" from MCC and I could see all updated packes in the list, but as soosn as I selected one, I got the error "This package XXXX cannot be selected". Finally the urpmi command displayed some reason why.
I have been using the QARepo procedure over and over in the past years since it exists.
Comment 7 Marc Krämer 2024-03-19 11:00:59 CET
hmm, maybe you should file a bug against this, or ask by the qa team, if there is some change, why this does not work anymore. I guess it is beyond this bug.
Comment 8 katnatek 2024-03-19 17:17:04 CET
(In reply to Herman Viaene from comment #6)
> To Comment 3:
> I always use QArepo as well, and that as such was no problem. But when I
> used MCC to update I got a blank list. Used "Install" from MCC and I could
> see all updated packes in the list, but as soosn as I selected one, I got
> the error "This package XXXX cannot be selected". Finally the urpmi command
> displayed some reason why.
> I have been using the QARepo procedure over and over in the past years since
> it exists.

I always start by the most obvious, sorry is part of my workflow

The next step is check you not have php 8.3 backports in your system
The ones with php8.3 in name must be able to be installed with the php 8.2 packages (if are the source of the conflict please report in https://bugs.mageia.org/show_bug.cgi?id=32854) but the php-*-8.3 not so they will produce this kind of conflicts.

I assume you know how to check ;)
Comment 9 Herman Viaene 2024-03-20 10:36:53 CET
No backup repo enabled here. But a more carefull look at the packages kisted in MCC showed that a few 8.3.1 packages had been installed (drawn in by some previous other package????).
Removed those and now the update is proceeding.
Returning later with results.
Comment 10 Herman Viaene 2024-03-20 14:44:33 CET
M9-64 Plasma Wayland on HP Pavillion
No installation issues.$ php -S localhost:8000 -t php
[Wed Mar 20 14:27:16 2024] PHP 8.2.17 Development Server (http://localhost:8000) started
Then pointing firefox to http://localhost:8000/create-png.php and http://localhost:8000/sample.php displays correct image and text message.
Works OK and get feedback at the CLI:
[Wed Mar 20 14:27:24 2024] [::1]:45596 [200]: GET /create-png.php
[Wed Mar 20 14:27:24 2024] [::1]:45596 Closing
[Wed Mar 20 14:27:25 2024] [::1]:45606 Accepted
[Wed Mar 20 14:27:25 2024] [::1]:45606 [404]: GET /favicon.ico - No such file or directory
[Wed Mar 20 14:27:25 2024] [::1]:45606 Closing
[Wed Mar 20 14:27:30 2024] [::1]:45610 Accepted
[Wed Mar 20 14:27:30 2024] [::1]:45610 [200]: GET /sample.php
[Wed Mar 20 14:27:30 2024] [::1]:45610 Closing
Make sure httpd and mysqld are running, then start phpmyadmin, login,  create a new database testphp8217 and create a new table with PK and unique key and timestamp .
All works OK.

Whiteboard: (none) => MGA9-64-OK

Comment 11 Thomas Andrews 2024-03-21 01:20:49 CET
Yes, the first suspect I would have if php updates could not be selected would be that some had been unknowingly drawn in from backports. That issue was supposed to be fixed, but perhaps it's not fixed as well as we thought.

Validating.

Keywords: (none) => validated_update
CC: (none) => andrewsfarm, sysadmin-bugs

Comment 12 Mageia Robot 2024-03-21 05:57:17 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2024-0110.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.