mirror of
https://github.com/php/php-src.git
synced 2024-10-01 23:06:11 +00:00
cd63986283
(patch by nick dot telford at gmail dot com)
18 lines
289 B
PHP
18 lines
289 B
PHP
--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)
|