each() got deprecated in latest PHP

Bug #1824151 reported by Reto
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php-pear (Ubuntu)
Fix Released
Undecided
Unassigned
Bionic
Won't Fix
Undecided
Unassigned
Cosmic
Won't Fix
Undecided
Unassigned
Disco
Won't Fix
Undecided
Unassigned
Eoan
Fix Released
Undecided
Unassigned

Bug Description

Running a script which uses Getopt produces the following output:

PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /usr/share/php/Console/Getopt.php on line 135

Upstream has a fix for it:
https://github.com/pear/Console_Getopt/commit/417f9c464eb3922997177e8857e17d020a3e4618

Revision history for this message
Paride Legovini (paride) wrote :

Thanks for your report. We will have to ensure php-pear >=1.4.2 is in before php8, and this will likely happen in Ubuntu 19.10.

For existing Ubuntu releases the deprecation warning is correct but we think it is not a problem for now, as it has been there since php 7.2.0 (i.e. since Ubuntu 18.04). For this reason I'm marking this bug as "Won't Fix". If you think otherwise don't hesitate to set the status back to New and reopen the discussion.

Changed in php-pear (Ubuntu):
status: New → Won't Fix
Changed in php-pear (Ubuntu Cosmic):
status: New → Won't Fix
Changed in php-pear (Ubuntu Bionic):
status: New → Won't Fix
Changed in php-pear (Ubuntu):
status: Won't Fix → Triaged
Rolf Leggewie (r0lf)
summary: - each() got depricated in latest PHP
+ each() got deprecated in latest PHP
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

This fix is in Eoan and Focal - updating bug tasks

Changed in php-pear (Ubuntu Eoan):
status: Triaged → Fix Released
Changed in php-pear (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.