xref: /PHP-8.4/ext/mysqli/tests/bug62885.phpt (revision 7e5171d1)
1--TEST--
2Bug #62885 (mysqli_poll - Segmentation fault)
3--EXTENSIONS--
4mysqli
5--SKIPIF--
6<?php
7require_once 'connect.inc';
8?>
9--FILE--
10<?php
11error_reporting(E_ALL);
12$tablica = array();
13try {
14    $test1 = mysqli_poll($test2, $test3, $tablica, 0);
15} catch (\ValueError $e) {
16    echo $e->getMessage() . \PHP_EOL;
17}
18
19$test2 = array();
20try {
21    $test1 = mysqli_poll($test2, $test3, $tablica, 0);
22} catch (\ValueError $e) {
23    echo $e->getMessage() . \PHP_EOL;
24}
25echo "okey";
26?>
27--EXPECTF--
28No stream arrays were passed
29
30Warning: mysqli_poll(): No stream arrays were passed in %s on line %d
31okey
32