xref: /PHP-8.3/ext/mysqli/tests/bug62885.phpt (revision a21edc52)
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();
20$test2 = array();
21try {
22    $test1 = mysqli_poll($test2, $test3, $tablica, 0);
23} catch (\ValueError $e) {
24    echo $e->getMessage() . \PHP_EOL;
25}
26echo "okey";
27?>
28--EXPECTF--
29No stream arrays were passed
30
31Warning: mysqli_poll(): No stream arrays were passed in %s on line %d
32okey
33