|
@@ 370-377 (lines=8) @@
|
| 367 |
|
// check regex |
| 368 |
|
if(empty($p)){return 0;} |
| 369 |
|
if($v = function_exists('error_clear_last') && function_exists('error_get_last')){error_clear_last();} |
| 370 |
|
else{ |
| 371 |
|
if($t = ini_get('track_errors')){$o = isset($php_errormsg) ? $php_errormsg : null;} |
| 372 |
|
else{ini_set('track_errors', 1);} |
| 373 |
|
unset($php_errormsg); |
| 374 |
|
} |
| 375 |
|
if(($d = ini_get('display_errors'))){ini_set('display_errors', 0);} |
| 376 |
|
preg_match($p, ''); |
| 377 |
|
if($v){$r = error_get_last() == null ? 1 : 0; } |
| 378 |
|
else{ |
| 379 |
|
$r = isset($php_errormsg) ? 0 : 1; |
| 380 |
|
if($t){$php_errormsg = isset($o) ? $o : null;} |
|
@@ 378-385 (lines=8) @@
|
| 375 |
|
if(($d = ini_get('display_errors'))){ini_set('display_errors', 0);} |
| 376 |
|
preg_match($p, ''); |
| 377 |
|
if($v){$r = error_get_last() == null ? 1 : 0; } |
| 378 |
|
else{ |
| 379 |
|
$r = isset($php_errormsg) ? 0 : 1; |
| 380 |
|
if($t){$php_errormsg = isset($o) ? $o : null;} |
| 381 |
|
else{ini_set('track_errors', 0);} |
| 382 |
|
} |
| 383 |
|
if($d){ini_set('display_errors', 1);} |
| 384 |
|
return $r; |
| 385 |
|
} |
| 386 |
|
|
| 387 |
|
function hl_spec($t){ |
| 388 |
|
// final $spec |