[Tickets #15086] deprecated $php_errormsg in lib/Horde/String.php

noreply at bugs.horde.org noreply at bugs.horde.org
Sun Jan 9 15:42:03 UTC 2022


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: https://bugs.horde.org/ticket/15086
------------------------------------------------------------------------------
  Ticket             | 15086
  Created By         | daniel at ziegenberg.at
  Summary            | deprecated $php_errormsg in lib/Horde/String.php
  Queue              | Horde Framework Packages
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


daniel at ziegenberg.at (2022-01-09 15:42) wrote:

 From the PHP 8.0 migration guide  
(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






More information about the bugs mailing list