each() got deprecated in latest PHP
Bug #1824151 reported by
Reto
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/
Upstream has a fix for it:
https:/
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 |
summary: |
- each() got depricated in latest PHP + each() got deprecated in latest PHP |
To post a comment you must log in.
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.