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