diff options
| author | Arnaud Le Blanc <lbarnaud@php.net> | 2010-11-01 20:10:17 +0000 |
|---|---|---|
| committer | Arnaud Le Blanc <lbarnaud@php.net> | 2010-11-01 20:10:17 +0000 |
| commit | a9507474e3ec43dbffc83875229ee155a425f94d (patch) | |
| tree | e0717266e1b1dbc7db13ebd52dd06fbb8de0a349 /ext/pcntl/tests | |
| parent | 8f8b24866d6d75daf0f307b051cf1426e3e67f2f (diff) | |
| download | php-git-a9507474e3ec43dbffc83875229ee155a425f94d.tar.gz | |
Fix bug #52173 (ext/pcntl doesn't store/report errors) (patch
by nick dot telford at gmail dot com)
Diffstat (limited to 'ext/pcntl/tests')
| -rw-r--r-- | ext/pcntl/tests/pcntl_get_last_error.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/pcntl/tests/pcntl_get_last_error.phpt b/ext/pcntl/tests/pcntl_get_last_error.phpt new file mode 100644 index 0000000000..4ed66c9610 --- /dev/null +++ b/ext/pcntl/tests/pcntl_get_last_error.phpt @@ -0,0 +1,17 @@ +--TEST-- +Test pcntl_get_last_error() +--SKIPIF-- +<?php + if (!extension_loaded("pcntl")) print "skip"; +?> +--FILE-- +<?php +var_dump(pcntl_get_last_error()); +$pid = pcntl_wait($status); +var_dump($pid); +var_dump(pcntl_get_last_error() == PCNTL_ECHILD); +?> +--EXPECT-- +int(0) +int(-1) +bool(true) |
