summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/mysqli_get_cache_stats.phpt
diff options
context:
space:
mode:
authorUlf Wendel <uw@php.net>2009-07-01 12:52:58 +0000
committerUlf Wendel <uw@php.net>2009-07-01 12:52:58 +0000
commitb5455f7a7d6468eee2b7728ee43db6edcf5d076f (patch)
tree13db1ae2b87c6e085449c1b3c36f1b639bbdabbd /ext/mysqli/tests/mysqli_get_cache_stats.phpt
parentd9061f95fabcb5f03e81cfc1c429dde17208eaab (diff)
downloadphp-git-b5455f7a7d6468eee2b7728ee43db6edcf5d076f.tar.gz
MFH - Adding XFAIL for some tests which expect the zval cache of mysqlnd to be on. It has been disabled for the PHP 5.3.0 release. Adding INI sections to ensure that statistics are collected. Adding tests that check if statistics collection can be disabled
Diffstat (limited to 'ext/mysqli/tests/mysqli_get_cache_stats.phpt')
-rw-r--r--ext/mysqli/tests/mysqli_get_cache_stats.phpt9
1 files changed, 7 insertions, 2 deletions
diff --git a/ext/mysqli/tests/mysqli_get_cache_stats.phpt b/ext/mysqli/tests/mysqli_get_cache_stats.phpt
index c9dcc09598..745787f7ff 100644
--- a/ext/mysqli/tests/mysqli_get_cache_stats.phpt
+++ b/ext/mysqli/tests/mysqli_get_cache_stats.phpt
@@ -1,5 +1,10 @@
--TEST--
mysqli_get_cache_stats()
+--XFAIL--
+zval caching has been temporarily disabled for the 5.3.0 release
+--INI--
+mysqlnd.collect_statistics="1"
+mysqlnd.collect_memory_statistics="1"
--SKIPIF--
<?PHP
require_once('skipif.inc');
@@ -22,9 +27,9 @@ if (!function_exists('mysqli_get_cache_stats')) {
var_dump($info);
- if ($info['size'] !== $info['free_items'])
+ if ($info["size"] !== $info['free_items'])
printf("[003] Unused cache should have size (%d) == free_items (%d)\n",
- $info['size'], $info['free_items']);
+ $info["size"], $info['free_items']);
require_once('table.inc');