Browse Source

- Fixed bug #29873 (No defines around pcntl_*priority definitions).

PHP-5.1
Derick Rethans 22 years ago
parent
commit
52d6a64efa
  1. 4
      ext/pcntl/pcntl.c
  2. 4
      ext/pcntl/php_pcntl.h

4
ext/pcntl/pcntl.c

@ -56,8 +56,12 @@ function_entry pcntl_functions[] = {
PHP_FE(pcntl_wstopsig, NULL)
PHP_FE(pcntl_exec, NULL)
PHP_FE(pcntl_alarm, NULL)
#ifdef HAVE_GETPRIORITY
PHP_FE(pcntl_getpriority, NULL)
#endif
#ifdef HAVE_SETPRIORITY
PHP_FE(pcntl_setpriority, NULL)
#endif
{NULL, NULL, NULL}
};

4
ext/pcntl/php_pcntl.h

@ -51,8 +51,12 @@ PHP_FUNCTION(pcntl_wtermsig);
PHP_FUNCTION(pcntl_wstopsig);
PHP_FUNCTION(pcntl_signal);
PHP_FUNCTION(pcntl_exec);
#ifdef HAVE_GETPRIORITY
PHP_FUNCTION(pcntl_getpriority);
#endif
#ifdef HAVE_SETPRIORITY
PHP_FUNCTION(pcntl_setpriority);
#endif
ZEND_BEGIN_MODULE_GLOBALS(pcntl)
HashTable php_signal_table;

Loading…
Cancel
Save