mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
first shot remove TSRMLS_* things
This commit is contained in:
parent
bb66f385d0
commit
bdeb220f48
786 changed files with 27049 additions and 27411 deletions
28
main/php.h
28
main/php.h
|
@ -280,11 +280,11 @@ ssize_t pread(int, void *, size_t, off64_t);
|
|||
|
||||
BEGIN_EXTERN_C()
|
||||
void phperror(char *error);
|
||||
PHPAPI size_t php_write(void *buf, size_t size TSRMLS_DC);
|
||||
PHPAPI size_t php_write(void *buf, size_t size);
|
||||
PHPAPI size_t php_printf(const char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, 1,
|
||||
2);
|
||||
PHPAPI int php_get_module_initialized(void);
|
||||
PHPAPI void php_log_err(char *log_message TSRMLS_DC);
|
||||
PHPAPI void php_log_err(char *log_message);
|
||||
int Debug(char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, 1, 2);
|
||||
int cfgparse(void);
|
||||
END_EXTERN_C()
|
||||
|
@ -293,13 +293,13 @@ END_EXTERN_C()
|
|||
#define error_handling_t zend_error_handling_t
|
||||
|
||||
BEGIN_EXTERN_C()
|
||||
static inline ZEND_ATTRIBUTE_DEPRECATED void php_set_error_handling(error_handling_t error_handling, zend_class_entry *exception_class TSRMLS_DC)
|
||||
static inline ZEND_ATTRIBUTE_DEPRECATED void php_set_error_handling(error_handling_t error_handling, zend_class_entry *exception_class)
|
||||
{
|
||||
zend_replace_error_handling(error_handling, exception_class, NULL TSRMLS_CC);
|
||||
zend_replace_error_handling(error_handling, exception_class, NULL);
|
||||
}
|
||||
static inline ZEND_ATTRIBUTE_DEPRECATED void php_std_error_handling() {}
|
||||
|
||||
PHPAPI void php_verror(const char *docref, const char *params, int type, const char *format, va_list args TSRMLS_DC) PHP_ATTRIBUTE_FORMAT(printf, 4, 0);
|
||||
PHPAPI void php_verror(const char *docref, const char *params, int type, const char *format, va_list args) PHP_ATTRIBUTE_FORMAT(printf, 4, 0);
|
||||
|
||||
#ifdef ZTS
|
||||
#define PHP_ATTR_FMT_OFFSET 1
|
||||
|
@ -308,14 +308,14 @@ PHPAPI void php_verror(const char *docref, const char *params, int type, const c
|
|||
#endif
|
||||
|
||||
/* PHPAPI void php_error(int type, const char *format, ...); */
|
||||
PHPAPI void php_error_docref0(const char *docref TSRMLS_DC, int type, const char *format, ...)
|
||||
PHPAPI void php_error_docref0(const char *docref, int type, const char *format, ...)
|
||||
PHP_ATTRIBUTE_FORMAT(printf, PHP_ATTR_FMT_OFFSET + 3, PHP_ATTR_FMT_OFFSET + 4);
|
||||
PHPAPI void php_error_docref1(const char *docref TSRMLS_DC, const char *param1, int type, const char *format, ...)
|
||||
PHPAPI void php_error_docref1(const char *docref, const char *param1, int type, const char *format, ...)
|
||||
PHP_ATTRIBUTE_FORMAT(printf, PHP_ATTR_FMT_OFFSET + 4, PHP_ATTR_FMT_OFFSET + 5);
|
||||
PHPAPI void php_error_docref2(const char *docref TSRMLS_DC, const char *param1, const char *param2, int type, const char *format, ...)
|
||||
PHPAPI void php_error_docref2(const char *docref, const char *param1, const char *param2, int type, const char *format, ...)
|
||||
PHP_ATTRIBUTE_FORMAT(printf, PHP_ATTR_FMT_OFFSET + 5, PHP_ATTR_FMT_OFFSET + 6);
|
||||
#ifdef PHP_WIN32
|
||||
PHPAPI void php_win32_docref2_from_error(DWORD error, const char *param1, const char *param2 TSRMLS_DC);
|
||||
PHPAPI void php_win32_docref2_from_error(DWORD error, const char *param1, const char *param2);
|
||||
#endif
|
||||
END_EXTERN_C()
|
||||
|
||||
|
@ -332,12 +332,12 @@ END_EXTERN_C()
|
|||
|
||||
/* functions */
|
||||
BEGIN_EXTERN_C()
|
||||
PHPAPI extern int (*php_register_internal_extensions_func)(TSRMLS_D);
|
||||
PHPAPI int php_register_internal_extensions(TSRMLS_D);
|
||||
PHPAPI int php_mergesort(void *base, size_t nmemb, register size_t size, int (*cmp)(const void *, const void * TSRMLS_DC) TSRMLS_DC);
|
||||
PHPAPI extern int (*php_register_internal_extensions_func)(void);
|
||||
PHPAPI int php_register_internal_extensions(void);
|
||||
PHPAPI int php_mergesort(void *base, size_t nmemb, register size_t size, int (*cmp)(const void *, const void *));
|
||||
PHPAPI void php_register_pre_request_shutdown(void (*func)(void *), void *userdata);
|
||||
PHPAPI void php_com_initialize(TSRMLS_D);
|
||||
PHPAPI char *php_get_current_user(TSRMLS_D);
|
||||
PHPAPI void php_com_initialize(void);
|
||||
PHPAPI char *php_get_current_user(void);
|
||||
END_EXTERN_C()
|
||||
|
||||
/* PHP-named Zend macro wrappers */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue