Summary | deprecated $php_errormsg in lib/Horde/String.php |
Queue | Horde Framework Packages |
Type | Bug |
State | Unconfirmed |
Priority | 1. Low |
Owners | |
Requester | daniel (at) ziegenberg (dot) at |
Created | 01/09/2022 (1221 days ago) |
Due | |
Updated | 01/09/2022 (1221 days ago) |
Assigned | |
Resolved | |
Milestone | |
Patch | Yes |
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ deprecated $php_errormsg in lib/Horde/String.php
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ Yes
(https://www.php.net/manual/de/migration80.incompatible.php):
The track_errors ini directive has been removed. This means that
php_errormsg is no longer available. The error_get_last() function may
be used instead.
Also the documentation on $php_errormsg
(https://www.php.net/manual/en/reserved.variables.phperrormsg.php) says:
This feature has been DEPRECATED as of PHP 7.2.0. Relying on this
feature is highly discouraged. Use error_get_last() instead.
FILE: lib/Horde/String.php
--------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 11 WARNINGS AFFECTING 11 LINES
--------------------------------------------------------------------------------------------------------
148 | WARNING | The variable '$php_errormsg' is deprecated since PHP
7.2; Use error_get_last() instead
149 | WARNING | INI directive 'track_errors' is deprecated since PHP 7.2
151 | WARNING | The variable '$php_errormsg' is deprecated since PHP
7.2; Use error_get_last() instead
487 | WARNING | The variable '$php_errormsg' is deprecated since PHP
7.2; Use error_get_last() instead
488 | WARNING | INI directive 'track_errors' is deprecated since PHP 7.2
490 | WARNING | INI directive 'track_errors' is deprecated since PHP 7.2
491 | WARNING | The variable '$php_errormsg' is deprecated since PHP
7.2; Use error_get_last() instead
497 | WARNING | The variable '$php_errormsg' is deprecated since PHP
7.2; Use error_get_last() instead
498 | WARNING | INI directive 'track_errors' is deprecated since PHP 7.2
509 | WARNING | INI directive 'track_errors' is deprecated since PHP 7.2
510 | WARNING | The variable '$php_errormsg' is deprecated since PHP
7.2; Use error_get_last() instead
--------------------------------------------------------------------------------------------------------
See my PR here: https://github.com/horde/Util/pull/7