summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott MacVicar <scottmac@php.net>2009-06-09 01:04:35 +0000
committerScott MacVicar <scottmac@php.net>2009-06-09 01:04:35 +0000
commitf250ef78245d6f713d2340a2be4e8ed4647928b2 (patch)
treef76df0237c5dc7169a6801cce175a1b0fe9e7809
parent813dd91af8a746d09a81537324c32c2f30fe6baf (diff)
downloadphp-git-f250ef78245d6f713d2340a2be4e8ed4647928b2.tar.gz
Add test
-rw-r--r--ext/mysqli/tests/bug46109.phpt17
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/mysqli/tests/bug46109.phpt b/ext/mysqli/tests/bug46109.phpt
new file mode 100644
index 0000000000..358f1bf1fa
--- /dev/null
+++ b/ext/mysqli/tests/bug46109.phpt
@@ -0,0 +1,17 @@
+--TEST--
+Bug #46109 (MySQLi::init - Memory leaks)
+--SKIPIF--
+<?php
+require_once('skipif.inc');
+?>
+--FILE--
+<?php
+ include "connect.inc";
+
+ $mysqli = new mysqli();
+ $mysqli->init();
+ $mysqli->init();
+ echo "done";
+?>
+--EXPECTF--
+done