1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/mysqli/tests/bug62885.phpt
2024-08-18 00:12:23 +02:00

32 lines
592 B
PHP

--TEST--
Bug #62885 (mysqli_poll - Segmentation fault)
--EXTENSIONS--
mysqli
--SKIPIF--
<?php
require_once 'connect.inc';
?>
--FILE--
<?php
error_reporting(E_ALL);
$tablica = array();
try {
$test1 = mysqli_poll($test2, $test3, $tablica, 0);
} catch (\ValueError $e) {
echo $e->getMessage() . \PHP_EOL;
}
$test2 = array();
try {
$test1 = mysqli_poll($test2, $test3, $tablica, 0);
} catch (\ValueError $e) {
echo $e->getMessage() . \PHP_EOL;
}
echo "okey";
?>
--EXPECTF--
No stream arrays were passed
Warning: mysqli_poll(): No stream arrays were passed in %s on line %d
okey