bug62885.phpt 579 B

123456789101112131415161718192021222324252627
  1. --TEST--
  2. Bug #62885 (mysqli_poll - Segmentation fault)
  3. --EXTENSIONS--
  4. mysqli
  5. --SKIPIF--
  6. <?php
  7. require_once("connect.inc");
  8. if (!$IS_MYSQLND) {
  9. die("skip mysqlnd only test");
  10. }
  11. ?>
  12. --FILE--
  13. <?php
  14. error_reporting(E_ALL);
  15. $tablica = array();
  16. $test1 = mysqli_poll($test2, $test3, $tablica, 0);
  17. $test2 = array();
  18. $test2 = array();
  19. $test1 = mysqli_poll($test2, $test3, $tablica, 0);
  20. echo "okey";
  21. ?>
  22. --EXPECTF--
  23. Warning: mysqli_poll(): No stream arrays were passed in %sbug62885.php on line %d
  24. Warning: mysqli_poll(): No stream arrays were passed in %sbug62885.php on line %d
  25. okey