mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
Don't bail if there is another extension that exports constants starting with mysql<something>
This commit is contained in:
parent
aac1ef3815
commit
c71d35120c
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue