1
0
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:
Ulf Wendel
2010-06-18 09:56:18 +00:00
parent d52e132203
commit f3448471df
+1 -1
View File
@@ -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]);