Skip to content

Commit 23654a1

Browse files
juan-moralesjcmcmb69
authoredJul 11, 2022
QA - Test Cov - ext:pcntl - pcntl_signal() - max signal allowed (#8956)
Co-authored-by: jcm <juan.carlos.morales@tradebyte.com> Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
1 parent a759a7f commit 23654a1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
 

‎ext/pcntl/tests/pcntl_signal_001.phpt

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
--TEST--
2+
pcntl_signal() signal greater than max available.
3+
--EXTENSIONS--
4+
pcntl
5+
--FILE--
6+
<?php
7+
try {
8+
pcntl_signal(1000000, function($signo){
9+
echo "signaled\n";
10+
});
11+
} catch (Error $e) {
12+
echo $e->getMessage();
13+
}
14+
?>
15+
--EXPECTF--
16+
pcntl_signal(): Argument #1 ($signal) must be less than %d

0 commit comments

Comments
 (0)