1--TEST-- 2pcntl_sigwaitinfo abort when signals is an array with self-reference. 3--EXTENSIONS-- 4pcntl 5--SKIPIF-- 6<?php if (!function_exists("pcntl_sigwaitinfo")) die("skip pcntl_sigwaitinfo() not available"); ?> 7--FILE-- 8<?php 9$a[0] = &$a; 10 11try { 12 pcntl_sigwaitinfo($a,$a); 13} catch(\TypeError $e) { 14 echo $e->getMessage(); 15} 16?> 17--EXPECT-- 18pcntl_sigwaitinfo(): Argument #1 ($signals) signals must be of type int, array given 19