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 aac1ef3815
commit c71d35120c

View file

@ -38,7 +38,7 @@ $unexpected_constants = array();
foreach ($constants as $group => $consts) { foreach ($constants as $group => $consts) {
foreach ($consts as $name => $value) { foreach ($consts as $name => $value) {
if (stristr($name, 'mysql') && !stristr($name, 'mysqli')) { if (stristr($name, 'mysql') && !preg_match("/^mysql([^_]+)_/iu", $name)) {
$name = strtoupper($name); $name = strtoupper($name);
if (isset($expected_constants[$name])) { if (isset($expected_constants[$name])) {
unset($expected_constants[$name]); unset($expected_constants[$name]);