[phpMyAdmin Git] [phpmyadmin/phpmyadmin] a29402: Simplified getting error from preg_match
michal at cihar.com
Wed Aug 3 10:59:46 CEST 2016
Author: Michal Čihař <michal at cihar.com>
Date: 2016-08-03 (Wed, 03 Aug 2016)
Simplified getting error from preg_match
It's enough to use error_get_last to obtain the message without need to
play with PHP configuration and error handling.
The only tricky thing is to know that there is new error. With PHP 7,
there is error_clear_last() which ensures this, on older PHP we need to
trigger *another* error to be able to detect that new error comes.
Signed-off-by: Michal Čihař <michal at cihar.com>
More information about the Git