summaryrefslogtreecommitdiff
path: root/ext/mysql/tests/mysql_constants.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mysql/tests/mysql_constants.phpt')
-rw-r--r--ext/mysql/tests/mysql_constants.phpt2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysql/tests/mysql_constants.phpt b/ext/mysql/tests/mysql_constants.phpt
index e88e6556f8..1346100209 100644
--- a/ext/mysql/tests/mysql_constants.phpt
+++ b/ext/mysql/tests/mysql_constants.phpt
@@ -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]);