diff options
author | Anatol Belski <ab@php.net> | 2017-05-01 18:01:05 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2017-05-01 18:01:05 +0200 |
commit | a581e641994908af2ffdcac652ad14c34fbdef4c (patch) | |
tree | 24e203a80666975e810a90d038bc223a9ab686f8 /ext/mysqli | |
parent | 1967950dc33b87a5b92c33875885cfb0b5b5bffc (diff) | |
download | php-git-a581e641994908af2ffdcac652ad14c34fbdef4c.tar.gz |
Tests to ensure BC with undocumented behavior used in hacks
Should become obsolete, once behaviors change.
Diffstat (limited to 'ext/mysqli')
-rw-r--r-- | ext/mysqli/tests/mysqli_open_bug74432.phpt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/ext/mysqli/tests/mysqli_open_bug74432.phpt b/ext/mysqli/tests/mysqli_open_bug74432.phpt new file mode 100644 index 0000000000..c1ed86d88d --- /dev/null +++ b/ext/mysqli/tests/mysqli_open_bug74432.phpt @@ -0,0 +1,29 @@ +--TEST-- +Bug #74432, BC issue on undocumented connect string +--SKIPIF-- +<?php +require_once('skipif.inc'); +require_once('skipifemb.inc'); +require_once('skipifconnectfailure.inc'); +?> +--FILE-- +<?php + /* This behavior is undocumented, but might be in use. Until there's no officially + supported alternative, ensure changes doesn't cause BC breach. Otherwise, + the test should be removed once the undocumented behavior changes. */ + + require_once("connect.inc"); + + $handle = mysqli_connect("$host:$port", $user, $passwd); + + var_dump($handle); + + if ($handle) { + mysqli_close($handle); + } +?> +--EXPECTF-- +object(mysqli)#%d (%d) { +%A +} + |