Browse Source

debug

master
Sergio Álvarez 5 months ago
parent
commit
f5e1ccb714
  1. 7
      src/preg.php

7
src/preg.php

@ -127,14 +127,13 @@ class Preg
$e = error_get_last();
$gdc = get_defined_constants(true)['pcre'];
$return = [];
var_dump($ple);
var_dump($e);
var_dump($gdc);
if ($ple and in_array($ple, $gdc)) {
$return["preg_last_error()"] = array_flip($gdc)[preg_last_error()];
}
if ($e['type'] < E_NOTICE) {
if (is_array($e) and $e['type'] < E_NOTICE) {
var_dump($e);
$return["php error message"] = $e['message'];
}

Loading…
Cancel
Save