mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
Enabling test as requested by the skipif comment... it does pass when slightly modified.
This commit is contained in:
parent
4df1f0d912
commit
a2577bb946
1 changed files with 1 additions and 7 deletions
|
@ -4,21 +4,15 @@ Constants exported by ext/mysqli - checking category - PHP bug not mysqli bug (c
|
||||||
<?php
|
<?php
|
||||||
require_once('skipif.inc');
|
require_once('skipif.inc');
|
||||||
require_once('skipifemb.inc');
|
require_once('skipifemb.inc');
|
||||||
require_once('connect.inc');
|
|
||||||
if (!$TEST_EXPERIMENTAL)
|
|
||||||
die("skip This hits a known PHP bug, run the test from time to time and enable it once PHP got fixed");
|
|
||||||
?>
|
?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require("connect.inc");
|
|
||||||
require("table.inc");
|
|
||||||
|
|
||||||
$constants = get_defined_constants(true);
|
$constants = get_defined_constants(true);
|
||||||
|
|
||||||
foreach ($constants as $group => $consts) {
|
foreach ($constants as $group => $consts) {
|
||||||
foreach ($consts as $name => $value) {
|
foreach ($consts as $name => $value) {
|
||||||
if (stristr($name, 'mysqli')) {
|
if (stristr($name, 'mysqli')) {
|
||||||
if ('mysqli' !== $group)
|
if ('mysqli' != $group)
|
||||||
printf("found constant '%s' in group '%s'. expecting group 'mysqli'\n", $name, $group);
|
printf("found constant '%s' in group '%s'. expecting group 'mysqli'\n", $name, $group);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue