We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63aaeac commit 0c1da10Copy full SHA for 0c1da10
src/PcreException.php
@@ -45,7 +45,7 @@ private static function pcreLastErrorMessage($code)
45
}
46
47
$constants = get_defined_constants(true);
48
- if (!isset($constants['pcre'])) {
+ if (!isset($constants['pcre']) || !is_array($constants['pcre'])) {
49
return 'UNDEFINED_ERROR';
50
51
0 commit comments