[pkg-php-pear] Bug#1041477: php-net-ftp: PHP Fatal error with Bookworm PHP 8.2
Benjamin Renard
brenard at easter-eggs.com
Wed Jul 19 12:24:44 BST 2023
Package: php-net-ftp
Version: 1:1.4.0-2.1
Severity: important
Dear Maintainer,
This package seem not compatible with the PHP 8.2 version included in
Debian Bookworn. I have the following PHP Fatal error when including the
/usr/share/php/Net/FTP.php file:
PHP Fatal error: Array and string offset access syntax with curly braces
is no longer supported in /usr/share/php/Net/FTP.php on line 1181
This problem could be quickly fixed:
https://github.com/pear/Net_FTP/pull/9/commits/b8d35f51815619460daa67bbed67dda3f96ed1b5
Furthermore, we have PHP warnings about the $case_insensitive parameter
of define function:
PHP Warning: define(): Argument #3 ($case_insensitive) is ignored since declaration of case-insensitive constants is no longer supported in /usr/share/php/Net/FTP.php on line 34
PHP Warning: define(): Argument #3 ($case_insensitive) is ignored since declaration of case-insensitive constants is no longer supported in /usr/share/php/Net/FTP.php on line 43
PHP Warning: define(): Argument #3 ($case_insensitive) is ignored since declaration of case-insensitive constants is no longer supported in /usr/share/php/Net/FTP.php on line 52
PHP Warning: define(): Argument #3 ($case_insensitive) is ignored since declaration of case-insensitive constants is no longer supported in /usr/share/php/Net/FTP.php on line 61
PHP Warning: define(): Argument #3 ($case_insensitive) is ignored since declaration of case-insensitive constants is no longer supported in /usr/share/php/Net/FTP.php on line 71
PHP Warning: define(): Argument #3 ($case_insensitive) is ignored since declaration of case-insensitive constants is no longer supported in /usr/share/php/Net/FTP.php on line 83
This could be also quickly fixed:
https://github.com/pear/Net_FTP/pull/9/commits/d5a2bda1e3418c4c0a397f25afffb072d7f964d5
Regards,
-- System Information:
Debian Release: 12.0
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-9-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_USER, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Versions of packages php-net-ftp depends on:
ii php-common 2:93
php-net-ftp recommends no packages.
php-net-ftp suggests no packages.
-- no debconf information
More information about the pkg-php-pear
mailing list