Skip to content

Commit

Permalink
Do not compile setproctitle() for PHP 5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
pp3345 committed Mar 26, 2013
1 parent 65b2e50 commit acfdb1d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DeepTrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ ZEND_END_ARG_INFO()
/* {{{ DeepTrace function table */
const zend_function_entry DeepTrace_functions[] = {
PHP_FE(dt_phpinfo_mode, arginfo_dt_phpinfo_mode)
#if DEEPTRACE_PHP_VERSION < 55
PHP_FE(dt_set_proctitle, arginfo_dt_set_proctitle)
#endif
PHP_FE(dt_remove_include, arginfo_dt_remove_include)
PHP_FE(dt_inspect_zval, arginfo_dt_inspect_zval)

Expand Down
2 changes: 2 additions & 0 deletions DeepTrace_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include "php_DeepTrace.h"

#if DEEPTRACE_PHP_VERSION < 55
/* {{{ setproctitle */
#ifndef DEEPTRACE_SYSTEM_PROVIDES_SETPROCTITLE
static zend_bool setproctitle(char *title, int title_len TSRMLS_DC)
Expand Down Expand Up @@ -69,6 +70,7 @@ PHP_FUNCTION(dt_set_proctitle)
#endif
}
/* }}} */
#endif

/* {{{ proto bool dt_phpinfo_mode(bool phpInfoAsText)
Switches between text-only and HTML phpinfo() mode */
Expand Down
2 changes: 2 additions & 0 deletions php_DeepTrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ void DeepTrace_clear_all_functions_runtime_cache(TSRMLS_D);

/* DeepTrace PHP functions */
PHP_FUNCTION(dt_phpinfo_mode);
#if DEEPTRACE_PHP_VERSION < 55
PHP_FUNCTION(dt_set_proctitle);
#endif
PHP_FUNCTION(dt_exit_mode);
PHP_FUNCTION(dt_exit_fetch_exception);
PHP_FUNCTION(dt_inspect_zval);
Expand Down

0 comments on commit acfdb1d

Please sign in to comment.