From 0aa6354a2d14b5e477fcb7cb7c4d370aeefd012a Mon Sep 17 00:00:00 2001 From: Andrey Hristov Date: Mon, 22 Aug 2011 10:42:43 +0000 Subject: Fix Bug #55473 mysql_pconnect leaks file descriptors on reconnect The fix is for now in 5_4 and trunk, to be merged into 5_3 after 5.3.8 is packaged (expected today). The test case goes to all branches --- ext/mysql/tests/bug55473.phpt | 68 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 ext/mysql/tests/bug55473.phpt (limited to 'ext/mysql/tests') diff --git a/ext/mysql/tests/bug55473.phpt b/ext/mysql/tests/bug55473.phpt new file mode 100644 index 0000000000..8d42744fdf --- /dev/null +++ b/ext/mysql/tests/bug55473.phpt @@ -0,0 +1,68 @@ +--TEST-- +Bug #5547 (mysql_pconnect leaks file descriptors on reconnect) +--SKIPIF-- + +--INI-- +mysql.max_persistent=30 +mysql.allow_persistent=1 +--FILE-- + +--EXPECTF-- +Warning: mysql_ping(): MySQL server has gone away in %s on line %d +reconnect +OK + +Warning: mysql_ping(): MySQL server has gone away in %s on line %d +reconnect +OK + +Warning: mysql_ping(): MySQL server has gone away in %s on line %d +reconnect +OK + +Warning: mysql_ping(): MySQL server has gone away in %s on line %d +reconnect +OK +done! \ No newline at end of file -- cgit v1.2.1