each() got depricated in latest PHP

Bug #1824151 reported by Reto on 2019-04-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php-pear (Ubuntu)
Status tracked in Eoan
Bionic
Undecided
Unassigned
Cosmic
Undecided
Unassigned
Disco
Undecided
Unassigned
Eoan
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

Paride Legovini (legovini) 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
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers