php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch pcntl_addition for PCNTL related Bug #68505Patch version 2014-11-26 13:00 UTC Return to Bug #68505 | Download this patchThis patch is obsolete Obsoleted by patches: Patch Revisions:Developer: xilon.jul@gmail.comindex 8104c96..11ad101 100644 --- a/ext/pcntl/pcntl.c +++ b/ext/pcntl/pcntl.c @@ -100,10 +100,6 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_pcntl_wifsignaled, 0, 0, 1) ZEND_ARG_INFO(0, status) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_pcntl_wifcontinued, 0, 0, 1) - ZEND_ARG_INFO(0, status) -ZEND_END_ARG_INFO() - ZEND_BEGIN_ARG_INFO_EX(arginfo_pcntl_wifexitstatus, 0, 0, 1) ZEND_ARG_INFO(0, status) ZEND_END_ARG_INFO() @@ -155,7 +151,6 @@ const zend_function_entry pcntl_functions[] = { PHP_FE(pcntl_wifexited, arginfo_pcntl_wifexited) PHP_FE(pcntl_wifstopped, arginfo_pcntl_wifstopped) PHP_FE(pcntl_wifsignaled, arginfo_pcntl_wifsignaled) - PHP_FE(pcntl_wifcontinued, arginfo_pcntl_wifcontinued) PHP_FE(pcntl_wexitstatus, arginfo_pcntl_wifexitstatus) PHP_FE(pcntl_wtermsig, arginfo_pcntl_wtermsig) PHP_FE(pcntl_wstopsig, arginfo_pcntl_wstopsig) @@ -687,27 +682,8 @@ PHP_FUNCTION(pcntl_wifsignaled) } /* }}} */ - -/* {{{ proto bool pcntl_wifcontinued(int status) - Returns true if the child status code represents a resumed process (WUNTRACED must have been used with waitpid) */ -PHP_FUNCTION(pcntl_wifcontinued) -{ -#ifdef WIFCONTINUED - zend_long status_word; - - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &status_word) == FAILURE) { - return; - } - - if (WIFCONTINUED(status_word)) - RETURN_TRUE; -#endif - RETURN_FALSE; -} -/* }}} */ - -/* {{{ proto bool pcntl_wifexited(int status) - Returns true if the child status code represents a successful exit */ +/* {{{ proto int pcntl_wexitstatus(int status) + Returns the status code of a child's exit */ PHP_FUNCTION(pcntl_wexitstatus) { #ifdef WEXITSTATUS diff --git a/ext/pcntl/php_pcntl.h b/ext/pcntl/php_pcntl.h index 4c58fe8..d02d686 100644 --- a/ext/pcntl/php_pcntl.h +++ b/ext/pcntl/php_pcntl.h @@ -37,7 +37,6 @@ PHP_FUNCTION(pcntl_wait); PHP_FUNCTION(pcntl_wifexited); PHP_FUNCTION(pcntl_wifstopped); PHP_FUNCTION(pcntl_wifsignaled); -PHP_FUNCTION(pcntl_wifcontinued); PHP_FUNCTION(pcntl_wexitstatus); PHP_FUNCTION(pcntl_wtermsig); PHP_FUNCTION(pcntl_wstopsig); |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Thu Nov 21 15:01:30 2024 UTC |