A better error message for proc_nice() failure.
#endif
#ifdef HAVE_NICE
- PHP_FE(nice, NULL)
+ PHP_FE(proc_nice, NULL)
#endif
PHP_FE(rand, NULL)
/* }}} */
#ifdef HAVE_NICE
-/* {{{ proto bool nice(int priority)
+/* {{{ proto bool proc_nice(int priority)
Change the priority of the current process */
-PHP_FUNCTION(nice)
+PHP_FUNCTION(proc_nice)
{
long pri;
errno = 0;
nice(pri);
if (errno) {
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "Only a super user may attempt to increase the process priority.");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Only a super user may attempt to increase the priority of a process.");
RETURN_FALSE;
}
PHP_FUNCTION(proc_get_status);
PHP_FUNCTION(proc_close);
PHP_FUNCTION(proc_terminate);
-PHP_FUNCTION(nice);
+PHP_FUNCTION(proc_nice);
PHP_MINIT_FUNCTION(proc_open);
char *php_escape_shell_cmd(char *);