php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #68505
Patch pcntl_addition revision 2014-11-26 13:27 UTC by xilon dot jul at gmail dot com
revision 2014-11-26 13:00 UTC by xilon dot jul at gmail dot com

Patch pcntl_addition for PCNTL related Bug #68505

Patch version 2014-11-26 13:27 UTC

Return to Bug #68505 | Download this patch
This patch renders other patches obsolete

Obsolete patches:

Patch Revisions:

Developer: xilon.jul@gmail.com

index d1a01dc..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)
@@ -211,9 +206,6 @@ void php_register_signal_constants(INIT_FUNC_ARGS)
 #ifdef WNOHANG
 	REGISTER_LONG_CONSTANT("WNOHANG",  (zend_long) WNOHANG, CONST_CS | CONST_PERSISTENT);
 #endif
-#ifdef	WCONTINUED
-	REGISTER_LONG_CONSTANT("WCONTINUED",  (zend_long) WUNTRACED, CONST_CS | CONST_PERSISTENT);
-#endif
 #ifdef WUNTRACED
 	REGISTER_LONG_CONSTANT("WUNTRACED",  (zend_long) WUNTRACED, CONST_CS | CONST_PERSISTENT);
 #endif
@@ -690,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);
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 15:01:30 2024 UTC