mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
Obtained from: https://github.com/mtorromeo/php-pecl-proctitle/commit/05e7c3e368fae981f6132c1f2979ef9a42b56d78
30 lines
866 B
C
30 lines
866 B
C
--- proctitle.c.orig 2022-12-11 12:38:30 UTC
|
|
+++ proctitle.c
|
|
@@ -69,7 +69,11 @@ PHP_MINIT_FUNCTION(proctitle)
|
|
}
|
|
#endif
|
|
|
|
-/* {{{ proto void setproctitle(string title)
|
|
+ZEND_BEGIN_ARG_INFO_EX(arginfo_title, 0, 0, 1)
|
|
+ ZEND_ARG_INFO(0, title)
|
|
+ZEND_END_ARG_INFO()
|
|
+
|
|
+/*
|
|
* Changes the current process' title in system's list of processes
|
|
*/
|
|
PHP_FUNCTION(setproctitle)
|
|
@@ -117,10 +121,10 @@ PHP_FUNCTION(setthreadtitle)
|
|
*
|
|
* Every user visible function must have an entry in proctitle_functions[].
|
|
*/
|
|
-static zend_function_entry proctitle_functions[] = {
|
|
- PHP_FE(setproctitle, NULL)
|
|
+static const zend_function_entry proctitle_functions[] = {
|
|
+ PHP_FE(setproctitle, arginfo_title)
|
|
#if HAVE_PRCTL
|
|
- PHP_FE(setthreadtitle, NULL)
|
|
+ PHP_FE(setthreadtitle, arginfo_title)
|
|
#endif
|
|
{NULL, NULL, NULL} /* Must be the last line in proctitle_functions[] */
|
|
};
|