]> granicus.if.org Git - php/commitdiff
- MFH: Fixed bug #29873 (No defines around pcntl_*priority definitions).
authorDerick Rethans <derick@php.net>
Sat, 28 Aug 2004 12:20:41 +0000 (12:20 +0000)
committerDerick Rethans <derick@php.net>
Sat, 28 Aug 2004 12:20:41 +0000 (12:20 +0000)
NEWS
ext/pcntl/pcntl.c
ext/pcntl/php_pcntl.h

diff --git a/NEWS b/NEWS
index c7693c7aa681a74d3652894f6d6fce79fe9d9157..04725bdfc6fcbf41814061303015064f679fc93d 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,7 @@ PHP                                                                        NEWS
   (Paul Hudson, Derick)
 - Fixed bug with raw_post_data not getting set (Brian)
 - Fixed a file-descriptor leak with phpinfo() and other 'special' URLs (Zeev)
+- Fixed bug #29873 (No defines around pcntl_*priority definitions). (Derick)
 - Fixed bug #29844 (SOAP doesn't return the result of a valid SOAP request).
   (Dmitry)
 - Fixed bug #29842 (soapclient return null value). (Dmitry)
index 8aa9290011213b11408b840521fcd8a90d977f80..eb1a0f38f1fb9cd234e79cbe0601b416a008877d 100755 (executable)
@@ -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}      
 };
 
index b9ac364f856a809f6d47a946c017f1de7565983b..590d5779bd40b8c694db3983fdcca7d323df6c54 100644 (file)
@@ -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;