Branch: refs/heads/QA_4_6
  Home:   https://github.com/phpmyadmin/phpmyadmin
  Commit: a294026e3799eefa195b89f5833e44ddeb7eb503
      
https://github.com/phpmyadmin/phpmyadmin/commit/a294026e3799eefa195b89f5833e44ddeb7eb503
  Author: Michal Čihař <mic...@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ř <mic...@cihar.com>


_______________________________________________
Git mailing list
Git@phpmyadmin.net
https://lists.phpmyadmin.net/mailman/listinfo/git

Reply via email to