From a581e641994908af2ffdcac652ad14c34fbdef4c Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Mon, 1 May 2017 18:01:05 +0200 Subject: [PATCH] Tests to ensure BC with undocumented behavior used in hacks Should become obsolete, once behaviors change. --- ext/mysqli/tests/mysqli_open_bug74432.phpt | 29 +++++++++++++++++ .../tests/network/socket_bug74429.phpt | 32 +++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 ext/mysqli/tests/mysqli_open_bug74432.phpt create mode 100644 ext/standard/tests/network/socket_bug74429.phpt diff --git a/ext/mysqli/tests/mysqli_open_bug74432.phpt b/ext/mysqli/tests/mysqli_open_bug74432.phpt new file mode 100644 index 00000000000..c1ed86d88dc --- /dev/null +++ b/ext/mysqli/tests/mysqli_open_bug74432.phpt @@ -0,0 +1,29 @@ +--TEST-- +Bug #74432, BC issue on undocumented connect string +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +object(mysqli)#%d (%d) { +%A +} + diff --git a/ext/standard/tests/network/socket_bug74429.phpt b/ext/standard/tests/network/socket_bug74429.phpt new file mode 100644 index 00000000000..8c595468e17 --- /dev/null +++ b/ext/standard/tests/network/socket_bug74429.phpt @@ -0,0 +1,32 @@ +--TEST-- +Bug #74429 Remote socket URI with unique persistence identifier broken +--FILE-- + +--EXPECTF-- +resource(%d) of type (stream) +resource(%d) of type (stream) +