mirror of
https://github.com/php/php-src.git
synced 2026-04-29 03:03:26 +02:00
Don't bail if there is another extension that exports constants starting with mysql<something>
This commit is contained in:
@@ -38,7 +38,7 @@ $unexpected_constants = array();
|
||||
|
||||
foreach ($constants as $group => $consts) {
|
||||
foreach ($consts as $name => $value) {
|
||||
if (stristr($name, 'mysql') && !stristr($name, 'mysqli')) {
|
||||
if (stristr($name, 'mysql') && !preg_match("/^mysql([^_]+)_/iu", $name)) {
|
||||
$name = strtoupper($name);
|
||||
if (isset($expected_constants[$name])) {
|
||||
unset($expected_constants[$name]);
|
||||
|
||||
Reference in New Issue
Block a user