bug63398.phpt 917 B

123456789101112131415161718192021222324252627282930313233343536
  1. --TEST--
  2. Bug #63398 (Segfault when polling closed link)
  3. --SKIPIF--
  4. <?php
  5. require_once('skipif.inc');
  6. require_once("connect.inc");
  7. if (!$IS_MYSQLND) {
  8. die("skip mysqlnd only test");
  9. }
  10. require_once('skipifconnectfailure.inc');
  11. ?>
  12. --FILE--
  13. <?php
  14. require 'connect.inc';
  15. $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
  16. mysqli_close($link);
  17. $read = $error = $reject = array();
  18. $read[] = $error[] = $reject[] = $link;
  19. mysqli_poll($read, $error, $reject, 1);
  20. echo "okey";
  21. ?>
  22. --EXPECTF--
  23. Warning: mysqli_poll(): [1] Couldn't fetch mysqli in %sbug63398.php on line %d
  24. Warning: mysqli_poll(): [1] Couldn't fetch mysqli in %sbug63398.php on line %d
  25. Warning: mysqli_poll(): No stream arrays were passed in %sbug63398.php on line %d
  26. Warning: mysqli_poll(): [1] Couldn't fetch mysqli in %sbug63398.php on line %d
  27. Warning: mysqli_poll(): [1] Couldn't fetch mysqli in %sbug63398.php on line %d
  28. okey