diff options
| author | Zeev Suraski <zeev@php.net> | 2001-07-30 05:36:18 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 2001-07-30 05:36:18 +0000 |
| commit | b0224d51daa79a1b72df0e4a8213e425b5582102 (patch) | |
| tree | 730404b9029ae7e7ea335db411407d54f16acccb /ext/pcntl | |
| parent | b52554951fe50acb55e5607987994b69032198a3 (diff) | |
| download | php-git-b0224d51daa79a1b72df0e4a8213e425b5582102.tar.gz | |
Zend compatibility patch
Diffstat (limited to 'ext/pcntl')
| -rwxr-xr-x | ext/pcntl/pcntl.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c index 47da23fa28..cba769d12a 100755 --- a/ext/pcntl/pcntl.c +++ b/ext/pcntl/pcntl.c @@ -40,7 +40,7 @@ static int pcntl_zend_extension_active; function_entry pcntl_functions[] = { PHP_FE(pcntl_fork, NULL) - PHP_FE(pcntl_waitpid, NULL) + PHP_FE(pcntl_waitpid, second_arg_force_ref) PHP_FE(pcntl_signal, NULL) PHP_FE(pcntl_wifexited, NULL) PHP_FE(pcntl_wifstopped, NULL) @@ -212,13 +212,7 @@ PHP_FUNCTION(pcntl_waitpid) } convert_to_long_ex(pid); - convert_to_long_ex(options); - - if (!ParameterPassedByReference(ht, 2)) { - php_error(E_WARNING, "Status not passed by reference in %s", get_active_function_name()); - RETURN_FALSE; - } - + convert_to_long_ex(options); convert_to_long_ex(status); if (ZEND_NUM_ARGS()==2) temp_options=0; |
