mysqli_open_bug74432.phpt 629 B

12345678910111213141516171819202122232425262728
  1. --TEST--
  2. Bug #74432, BC issue on undocumented connect string
  3. --EXTENSIONS--
  4. mysqli
  5. --SKIPIF--
  6. <?php
  7. require_once('skipifconnectfailure.inc');
  8. ?>
  9. --FILE--
  10. <?php
  11. /* This behavior is undocumented, but might be in use. Until there's no officially
  12. supported alternative, ensure changes doesn't cause BC breach. Otherwise,
  13. the test should be removed once the undocumented behavior changes. */
  14. require_once("connect.inc");
  15. $handle = mysqli_connect("$host:$port", $user, $passwd);
  16. var_dump($handle);
  17. if ($handle) {
  18. mysqli_close($handle);
  19. }
  20. ?>
  21. --EXPECTF--
  22. object(mysqli)#%d (%d) {
  23. %A
  24. }