[phpMyAdmin Git] [phpmyadmin/phpmyadmin] a29402: Simplified getting error from preg_match
Michal Čihař
michal at cihar.com
Wed Aug 3 10:59:46 CEST 2016
Branch: refs/heads/QA_4_6
Home: https://github.com/phpmyadmin/phpmyadmin
Commit: a294026e3799eefa195b89f5833e44ddeb7eb503
https://github.com/phpmyadmin/phpmyadmin/commit/a294026e3799eefa195b89f5833e44ddeb7eb503
Author: Michal Čihař <michal at cihar.com>
Date: 2016-08-03 (Wed, 03 Aug 2016)
Changed paths:
M libraries/config/Validator.php
Log Message:
-----------
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
mailing list