From 1da5b05dbdf803b6862c09d0c3f7c9cc3bee5f30 Mon Sep 17 00:00:00 2001 From: Andrey Hristov Date: Mon, 22 Aug 2011 10:42:43 +0000 Subject: [PATCH] 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 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 -- 2.50.1