]> granicus.if.org Git - php/commitdiff
second shot on removing TSRMLS_*
authorAnatol Belski <ab@php.net>
Sun, 14 Dec 2014 13:07:59 +0000 (14:07 +0100)
committerAnatol Belski <ab@php.net>
Sun, 14 Dec 2014 13:07:59 +0000 (14:07 +0100)
59 files changed:
Zend/zend.h
Zend/zend_alloc.c
Zend/zend_alloc.h
Zend/zend_compile.c
Zend/zend_compile.h
Zend/zend_modules.h
Zend/zend_vm_execute.h
Zend/zend_vm_gen.php
ext/bz2/bz2_filter.c
ext/exif/exif.c
ext/filter/php_filter.h
ext/gmp/gmp.c
ext/interbase/ibase_query.c
ext/interbase/interbase.c
ext/interbase/php_ibase_udf.c
ext/mysqlnd/mysqlnd.c
ext/mysqlnd/mysqlnd.h
ext/mysqlnd/mysqlnd_auth.c
ext/mysqlnd/mysqlnd_priv.h
ext/mysqlnd/mysqlnd_result.c
ext/mysqlnd/mysqlnd_statistics.c
ext/mysqlnd/mysqlnd_statistics.h
ext/mysqlnd/mysqlnd_structs.h
ext/mysqlnd/php_mysqlnd.c
ext/opcache/Optimizer/block_pass.c
ext/openssl/xp_ssl.c
ext/pdo/pdo_dbh.c
ext/pdo/pdo_stmt.c
ext/pdo_odbc/php_pdo_odbc.h
ext/pdo_sqlite/php_pdo_sqlite.h
ext/session/php_session.h
ext/skeleton/php_skeleton.h
ext/spl/spl_directory.c
ext/standard/basic_functions.c
ext/standard/filters.c
ext/standard/streamsfuncs.c
ext/standard/url_scanner_ex.c
ext/standard/url_scanner_ex.re
ext/standard/user_filters.c
ext/standard/var_unserializer.c
ext/standard/var_unserializer.re
ext/xsl/php_xsl.h
ext/zlib/zlib_filter.c
main/internal_functions.c.in
main/network.c
main/php_network.h
main/php_streams.h
main/streams/php_stream_filter_api.h
main/streams/php_stream_transport.h
main/streams/streams.c
main/streams/transports.c
main/streams/userspace.c
main/streams/xp_socket.c
sapi/phpdbg/phpdbg_cmd.h
sapi/phpdbg/phpdbg_help.c
sapi/phpdbg/phpdbg_lexer.c
sapi/phpdbg/phpdbg_lexer.l
sapi/phpdbg/phpdbg_watch.c
sapi/thttpd/thttpd.c

index 832bd6e7dc23b185d69c2047252059b6f496e4a7..dd04aab63e93471df8ba65415b5f6564b7e95e16 100644 (file)
@@ -52,8 +52,8 @@
 # define HANDLE_UNBLOCK_INTERRUPTIONS()                ZEND_SIGNAL_UNBLOCK_INTERRUPTIONS()
 #endif
 
-#define INTERNAL_FUNCTION_PARAMETERS zend_execute_data *execute_data, zval *return_value TSRMLS_DC
-#define INTERNAL_FUNCTION_PARAM_PASSTHRU execute_data, return_value TSRMLS_CC
+#define INTERNAL_FUNCTION_PARAMETERS zend_execute_data *execute_data, zval *return_value
+#define INTERNAL_FUNCTION_PARAM_PASSTHRU execute_data, return_value
 
 #define USED_RET() \
        (!EX(prev_execute_data) || \
index 5ec025ee6d72350db0257bc35c3249fe23d55fd9..1ce393f9502931a4f91dc6739e65566caa24eb4c 100644 (file)
@@ -2116,7 +2116,6 @@ ZEND_API int is_zend_mm(void)
 
 # define _ZEND_BIN_ALLOCATOR(_num, _size, _elements, _pages, x, y) \
        ZEND_API void* ZEND_FASTCALL _emalloc_ ## _size(void) { \
-               TSRMLS_FETCH(); \
                ZEND_MM_CUSTOM_ALLOCATOR(_size); \
                return zend_mm_alloc_small(AG(mm_heap), _size, _num ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); \
        }
@@ -2140,7 +2139,6 @@ ZEND_API void* ZEND_FASTCALL _emalloc_huge(size_t size)
 #if ZEND_DEBUG
 # define _ZEND_BIN_FREE(_num, _size, _elements, _pages, x, y) \
        ZEND_API void ZEND_FASTCALL _efree_ ## _size(void *ptr) { \
-               TSRMLS_FETCH(); \
                ZEND_MM_CUSTOM_DEALLOCATOR(ptr); \
                { \
                        size_t page_offset = ZEND_MM_ALIGNED_OFFSET(ptr, ZEND_MM_CHUNK_SIZE); \
@@ -2155,7 +2153,6 @@ ZEND_API void* ZEND_FASTCALL _emalloc_huge(size_t size)
 #else
 # define _ZEND_BIN_FREE(_num, _size, _elements, _pages, x, y) \
        ZEND_API void ZEND_FASTCALL _efree_ ## _size(void *ptr) { \
-               TSRMLS_FETCH(); \
                ZEND_MM_CUSTOM_DEALLOCATOR(ptr); \
                { \
                        zend_mm_chunk *chunk = (zend_mm_chunk*)ZEND_MM_ALIGNED_BASE(ptr, ZEND_MM_CHUNK_SIZE); \
@@ -2225,7 +2222,7 @@ ZEND_API void* ZEND_FASTCALL _erealloc(void *ptr, size_t size, int allow_failure
        return zend_mm_realloc_heap(AG(mm_heap), ptr, size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
 }
 
-ZEND_API size_t ZEND_FASTCALL _zend_mem_block_size(void *ptr TSRMLS_DC ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)
+ZEND_API size_t ZEND_FASTCALL _zend_mem_block_size(void *ptr ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)
 {
        if (UNEXPECTED(AG(mm_heap)->use_custom_heap)) {
                return 0;
index 3c5d2f66848688d47d221ac4a1b8551400b4ed31..fddade0d1e336e61ea8e20489ccebd13b94e21a6 100644 (file)
@@ -64,7 +64,7 @@ ZEND_API void*  ZEND_FASTCALL _safe_erealloc(void *ptr, size_t nmemb, size_t siz
 ZEND_API void*  ZEND_FASTCALL _safe_realloc(void *ptr, size_t nmemb, size_t size, size_t offset);
 ZEND_API char*  ZEND_FASTCALL _estrdup(const char *s ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) ZEND_ATTRIBUTE_MALLOC;
 ZEND_API char*  ZEND_FASTCALL _estrndup(const char *s, size_t length ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) ZEND_ATTRIBUTE_MALLOC;
-ZEND_API size_t ZEND_FASTCALL _zend_mem_block_size(void *ptr TSRMLS_DC ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
+ZEND_API size_t ZEND_FASTCALL _zend_mem_block_size(void *ptr ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
 
 #include "zend_alloc_sizes.h"
 
@@ -150,7 +150,7 @@ ZEND_API void ZEND_FASTCALL _efree_huge(void *, size_t size);
 #define erealloc_recoverable(ptr, size)                _erealloc((ptr), (size), 1 ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
 #define estrdup(s)                                                     _estrdup((s) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
 #define estrndup(s, length)                                    _estrndup((s), (length) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
-#define zend_mem_block_size(ptr)                       _zend_mem_block_size((ptr) TSRMLS_CC ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
+#define zend_mem_block_size(ptr)                       _zend_mem_block_size((ptr) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
 
 /* Relay wrapper macros */
 #define emalloc_rel(size)                                              _emalloc((size) ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_CC)
@@ -162,7 +162,7 @@ ZEND_API void ZEND_FASTCALL _efree_huge(void *, size_t size);
 #define safe_erealloc_rel(ptr, nmemb, size, offset)    _safe_erealloc((ptr), (nmemb), (size), (offset) ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_CC)
 #define estrdup_rel(s)                                                 _estrdup((s) ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_CC)
 #define estrndup_rel(s, length)                                        _estrndup((s), (length) ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_CC)
-#define zend_mem_block_size_rel(ptr)                   _zend_mem_block_size((ptr) TSRMLS_CC ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_CC)
+#define zend_mem_block_size_rel(ptr)                   _zend_mem_block_size((ptr) ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_CC)
 
 zend_always_inline static void * __zend_malloc(size_t len)
 {
index 686788cded6bb58c417a1664da159eb0b65b87bb..2987b8cc3ff44619bf8aa867bad653542de8e437 100644 (file)
@@ -607,7 +607,7 @@ void *zend_hash_find_ptr_lc(HashTable *ht, const char *str, size_t len) {
 
 zend_string *zend_resolve_non_class_name(
        zend_string *name, uint32_t type, zend_bool *is_fully_qualified,
-       zend_bool case_sensitive, HashTable *current_import_sub TSRMLS_DC
+       zend_bool case_sensitive, HashTable *current_import_sub
 ) {
        char *compound;
        *is_fully_qualified = 0;
index d2f9254675505a529849853be5153e5e45420e40..d01be0eb7257c29089db4299c9a3da392c6749d8 100644 (file)
@@ -120,8 +120,8 @@ void zend_compile_var(znode *node, zend_ast *ast, uint32_t type);
 void zend_eval_const_expr(zend_ast **ast_ptr);
 void zend_const_expr_to_zval(zval *result, zend_ast *ast);
 
-#define ZEND_OPCODE_HANDLER_ARGS zend_execute_data *execute_data TSRMLS_DC
-#define ZEND_OPCODE_HANDLER_ARGS_PASSTHRU execute_data TSRMLS_CC
+#define ZEND_OPCODE_HANDLER_ARGS zend_execute_data *execute_data
+#define ZEND_OPCODE_HANDLER_ARGS_PASSTHRU execute_data
 
 typedef int (*user_opcode_handler_t) (ZEND_OPCODE_HANDLER_ARGS);
 typedef int (ZEND_FASTCALL *opcode_handler_t) (ZEND_OPCODE_HANDLER_ARGS);
index b757af642e775cd5ea5e374bf0f89364cbfa2ad7..96f1e7598fb85de866f7c42f966e9c462d9cbb0e 100644 (file)
 #include "zend_compile.h"
 #include "zend_build.h"
 
-#define INIT_FUNC_ARGS         int type, int module_number TSRMLS_DC
-#define INIT_FUNC_ARGS_PASSTHRU        type, module_number TSRMLS_CC
-#define SHUTDOWN_FUNC_ARGS     int type, int module_number TSRMLS_DC
-#define SHUTDOWN_FUNC_ARGS_PASSTHRU type, module_number TSRMLS_CC
-#define ZEND_MODULE_INFO_FUNC_ARGS zend_module_entry *zend_module TSRMLS_DC
-#define ZEND_MODULE_INFO_FUNC_ARGS_PASSTHRU zend_module TSRMLS_CC
+#define INIT_FUNC_ARGS         int type, int module_number
+#define INIT_FUNC_ARGS_PASSTHRU        type, module_number
+#define SHUTDOWN_FUNC_ARGS     int type, int module_number
+#define SHUTDOWN_FUNC_ARGS_PASSTHRU type, module_number
+#define ZEND_MODULE_INFO_FUNC_ARGS zend_module_entry *zend_module
+#define ZEND_MODULE_INFO_FUNC_ARGS_PASSTHRU zend_module
 
 #define ZEND_MODULE_API_NO 20141001
 #ifdef ZTS
index 2eca1421a95dc239afea1e8b30122662ba0d8c88..5b1d22edccd01692a82ac7043fdc76e7bb1b8de8 100644 (file)
@@ -331,7 +331,7 @@ static opcode_handler_t zend_vm_get_opcode_handler(zend_uchar opcode, const zend
 #define ZEND_VM_LEAVE()            return  2
 #define ZEND_VM_DISPATCH(opcode, opline) return zend_vm_get_opcode_handler(opcode, opline)(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 
-#define ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_INTERNAL execute_data TSRMLS_CC
+#define ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_INTERNAL execute_data
 
 ZEND_API void execute_ex(zend_execute_data *execute_data)
 {
index 331286b3d888c9aec93e3ea1603e85e51aea7c17..4d2ba3a706dac7b0009e08cd59228cb223ecc9fa 100644 (file)
@@ -139,7 +139,7 @@ $op1_get_zval_ptr = array(
        "VAR"    => "_get_zval_ptr_var(opline->op1.var, execute_data, &free_op1)",
        "CONST"  => "EX_CONSTANT(opline->op1)",
        "UNUSED" => "NULL",
-       "CV"     => "_get_zval_ptr_cv_\\1(execute_data, opline->op1.var TSRMLS_CC)",
+       "CV"     => "_get_zval_ptr_cv_\\1(execute_data, opline->op1.var)",
        "TMPVAR" => "_get_zval_ptr_var(opline->op1.var, execute_data, &free_op1)",
 );
 
@@ -149,7 +149,7 @@ $op2_get_zval_ptr = array(
        "VAR"    => "_get_zval_ptr_var(opline->op2.var, execute_data, &free_op2)",
        "CONST"  => "EX_CONSTANT(opline->op2)",
        "UNUSED" => "NULL",
-       "CV"     => "_get_zval_ptr_cv_\\1(execute_data, opline->op2.var TSRMLS_CC)",
+       "CV"     => "_get_zval_ptr_cv_\\1(execute_data, opline->op2.var)",
        "TMPVAR" => "_get_zval_ptr_var(opline->op2.var, execute_data, &free_op2)",
 );
 
@@ -159,7 +159,7 @@ $op1_get_zval_ptr_ptr = array(
        "VAR"    => "_get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1)",
        "CONST"  => "NULL",
        "UNUSED" => "NULL",
-       "CV"     => "_get_zval_ptr_cv_\\1(execute_data, opline->op1.var TSRMLS_CC)",
+       "CV"     => "_get_zval_ptr_cv_\\1(execute_data, opline->op1.var)",
        "TMPVAR" => "???",
 );
 
@@ -169,7 +169,7 @@ $op2_get_zval_ptr_ptr = array(
        "VAR"    => "_get_zval_ptr_ptr_var(opline->op2.var, execute_data, &free_op2)",
        "CONST"  => "NULL",
        "UNUSED" => "NULL",
-       "CV"     => "_get_zval_ptr_cv_\\1(execute_data, opline->op2.var TSRMLS_CC)",
+       "CV"     => "_get_zval_ptr_cv_\\1(execute_data, opline->op2.var)",
        "TMPVAR" => "???",
 );
 
@@ -179,7 +179,7 @@ $op1_get_zval_ptr_deref = array(
        "VAR"    => "_get_zval_ptr_var_deref(opline->op1.var, execute_data, &free_op1)",
        "CONST"  => "EX_CONSTANT(opline->op1)",
        "UNUSED" => "NULL",
-       "CV"     => "_get_zval_ptr_cv_deref_\\1(execute_data, opline->op1.var TSRMLS_CC)",
+       "CV"     => "_get_zval_ptr_cv_deref_\\1(execute_data, opline->op1.var)",
        "TMPVAR" => "???",
 );
 
@@ -189,7 +189,7 @@ $op2_get_zval_ptr_deref = array(
        "VAR"    => "_get_zval_ptr_var_deref(opline->op2.var, execute_data, &free_op2)",
        "CONST"  => "EX_CONSTANT(opline->op2)",
        "UNUSED" => "NULL",
-       "CV"     => "_get_zval_ptr_cv_deref_\\1(execute_data, opline->op2.var TSRMLS_CC)",
+       "CV"     => "_get_zval_ptr_cv_deref_\\1(execute_data, opline->op2.var)",
        "TMPVAR" => "???",
 );
 
@@ -199,7 +199,7 @@ $op1_get_zval_ptr_ptr_undef = array(
        "VAR"    => "_get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1)",
        "CONST"  => "NULL",
        "UNUSED" => "NULL",
-       "CV"     => "_get_zval_ptr_cv_undef_\\1(execute_data, opline->op1.var TSRMLS_CC)",
+       "CV"     => "_get_zval_ptr_cv_undef_\\1(execute_data, opline->op1.var)",
        "TMPVAR" => "???",
 );
 
@@ -209,7 +209,7 @@ $op2_get_zval_ptr_ptr_undef = array(
        "VAR"    => "_get_zval_ptr_ptr_var(opline->op2.var, execute_data, &free_op2)",
        "CONST"  => "NULL",
        "UNUSED" => "NULL",
-       "CV"     => "_get_zval_ptr_cv_undef_\\1(execute_data, opline->op2.var TSRMLS_CC)",
+       "CV"     => "_get_zval_ptr_cv_undef_\\1(execute_data, opline->op2.var)",
        "TMPVAR" => "???",
 );
 
@@ -219,7 +219,7 @@ $op1_get_obj_zval_ptr = array(
        "VAR"    => "_get_zval_ptr_var(opline->op1.var, execute_data, &free_op1)",
        "CONST"  => "EX_CONSTANT(opline->op1)",
        "UNUSED" => "_get_obj_zval_ptr_unused(execute_data)",
-       "CV"     => "_get_zval_ptr_cv_\\1(execute_data, opline->op1.var TSRMLS_CC)",
+       "CV"     => "_get_zval_ptr_cv_\\1(execute_data, opline->op1.var)",
        "TMPVAR" => "_get_zval_ptr_var(opline->op1.var, execute_data, &free_op1)",
 );
 
@@ -229,7 +229,7 @@ $op2_get_obj_zval_ptr = array(
        "VAR"    => "_get_zval_ptr_var(opline->op2.var, execute_data, &free_op2)",
        "CONST"  => "EX_CONSTANT(opline->op2)",
        "UNUSED" => "_get_obj_zval_ptr_unused(execute_data)",
-       "CV"     => "_get_zval_ptr_cv_\\1(execute_data, opline->op2.var TSRMLS_CC)",
+       "CV"     => "_get_zval_ptr_cv_\\1(execute_data, opline->op2.var)",
        "TMPVAR" => "_get_zval_ptr_var(opline->op2.var, execute_data, &free_op2)",
 );
 
@@ -239,7 +239,7 @@ $op1_get_obj_zval_ptr_deref = array(
        "VAR"    => "_get_zval_ptr_var_deref(opline->op1.var, execute_data, &free_op1)",
        "CONST"  => "EX_CONSTANT(opline->op1)",
        "UNUSED" => "_get_obj_zval_ptr_unused(execute_data)",
-       "CV"     => "_get_zval_ptr_cv_deref_\\1(execute_data, opline->op1.var TSRMLS_CC)",
+       "CV"     => "_get_zval_ptr_cv_deref_\\1(execute_data, opline->op1.var)",
        "TMPVAR" => "???",
 );
 
@@ -249,7 +249,7 @@ $op2_get_obj_zval_ptr_deref = array(
        "VAR"    => "_get_zval_ptr_var_deref(opline->op2.var, execute_data, &free_op2)",
        "CONST"  => "EX_CONSTANT(opline->op2)",
        "UNUSED" => "_get_obj_zval_ptr_unused(execute_data)",
-       "CV"     => "_get_zval_ptr_cv_deref_\\1(execute_data, opline->op2.var TSRMLS_CC)",
+       "CV"     => "_get_zval_ptr_cv_deref_\\1(execute_data, opline->op2.var)",
        "TMPVAR" => "???",
 );
 
@@ -259,7 +259,7 @@ $op1_get_obj_zval_ptr_ptr = array(
        "VAR"    => "_get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1)",
        "CONST"  => "NULL",
        "UNUSED" => "_get_obj_zval_ptr_unused(execute_data)",
-       "CV"     => "_get_zval_ptr_cv_\\1(execute_data, opline->op1.var TSRMLS_CC)",
+       "CV"     => "_get_zval_ptr_cv_\\1(execute_data, opline->op1.var)",
        "TMPVAR" => "???",
 );
 
@@ -269,7 +269,7 @@ $op2_get_obj_zval_ptr_ptr = array(
        "VAR"    => "_get_zval_ptr_ptr_var(opline->op2.var, execute_data, &free_op2)",
        "CONST"  => "NULL",
        "UNUSED" => "_get_obj_zval_ptr_unused(execute_data)",
-       "CV"     => "_get_zval_ptr_cv_\\1(execute_data, opline->op2.var TSRMLS_CC)",
+       "CV"     => "_get_zval_ptr_cv_\\1(execute_data, opline->op2.var)",
        "TMPVAR" => "???",
 );
 
@@ -279,7 +279,7 @@ $op1_get_obj_zval_ptr_ptr_undef = array(
        "VAR"    => "_get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1)",
        "CONST"  => "NULL",
        "UNUSED" => "_get_obj_zval_ptr_unused(execute_data)",
-       "CV"     => "_get_zval_ptr_cv_undef_\\1(execute_data, opline->op1.var TSRMLS_CC)",
+       "CV"     => "_get_zval_ptr_cv_undef_\\1(execute_data, opline->op1.var)",
        "TMPVAR" => "???",
 );
 
@@ -289,7 +289,7 @@ $op2_get_obj_zval_ptr_ptr_undef = array(
        "VAR"    => "_get_zval_ptr_ptr_var(opline->op2.var, execute_data, &free_op2)",
        "CONST"  => "NULL",
        "UNUSED" => "_get_obj_zval_ptr_unused(execute_data)",
-       "CV"     => "_get_zval_ptr_cv_undef_\\1(execute_data, opline->op2.var TSRMLS_CC)",
+       "CV"     => "_get_zval_ptr_cv_undef_\\1(execute_data, opline->op2.var)",
        "TMPVAR" => "???",
 );
 
@@ -956,7 +956,8 @@ function gen_executor($f, $skl, $spec, $kind, $executor_name, $initializer_name,
                                                        out($f,"#define ZEND_VM_ENTER()            return  1\n");
                                                        out($f,"#define ZEND_VM_LEAVE()            return  2\n");
                                                        out($f,"#define ZEND_VM_DISPATCH(opcode, opline) return zend_vm_get_opcode_handler(opcode, opline)(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);\n\n");
-                                                       out($f,"#define ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_INTERNAL execute_data TSRMLS_CC\n");
+                                                       out($f,"#define ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_INTERNAL execute_data
+");
                                                        break;
                                                case ZEND_VM_KIND_SWITCH:
                                                        out($f,"\n");
@@ -981,7 +982,8 @@ function gen_executor($f, $skl, $spec, $kind, $executor_name, $initializer_name,
                                                        out($f,"#define ZEND_VM_ENTER()    execute_data = EG(current_execute_data); LOAD_OPLINE(); ZEND_VM_CONTINUE()\n");
                                                        out($f,"#define ZEND_VM_LEAVE()    ZEND_VM_CONTINUE()\n");
                                                        out($f,"#define ZEND_VM_DISPATCH(opcode, opline) dispatch_handler = zend_vm_get_opcode_handler(opcode, opline); goto zend_vm_dispatch;\n\n");
-                                                       out($f,"#define ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_INTERNAL execute_data TSRMLS_CC\n");
+                                                       out($f,"#define ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_INTERNAL execute_data
+");
                                                        break;
                                                case ZEND_VM_KIND_GOTO:
                                                        out($f,"\n");
@@ -1012,7 +1014,8 @@ function gen_executor($f, $skl, $spec, $kind, $executor_name, $initializer_name,
                                                        out($f,"#define ZEND_VM_ENTER()    execute_data = EG(current_execute_data); LOAD_OPLINE(); ZEND_VM_CONTINUE()\n");
                                                        out($f,"#define ZEND_VM_LEAVE()    ZEND_VM_CONTINUE()\n");
                                                        out($f,"#define ZEND_VM_DISPATCH(opcode, opline) goto *(void**)(zend_vm_get_opcode_handler(opcode, opline));\n\n");
-                                                       out($f,"#define ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_INTERNAL execute_data TSRMLS_CC\n");
+                                                       out($f,"#define ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_INTERNAL execute_data
+");
                                                        break;
                                        }
                                        break;
@@ -1063,7 +1066,7 @@ function gen_executor($f, $skl, $spec, $kind, $executor_name, $initializer_name,
                                  // Emit code that dispatches to opcode handler
                                        switch ($kind) {
                                                case ZEND_VM_KIND_CALL:
-                                                       out($f, $m[1]."if (UNEXPECTED((ret = OPLINE->handler(execute_data TSRMLS_CC)) != 0))".$m[3]."\n");
+                                                       out($f, $m[1]."if (UNEXPECTED((ret = OPLINE->handler(execute_data)) != 0))".$m[3]."\n");
                                                        break;
                                                case ZEND_VM_KIND_SWITCH:
                                                        out($f, $m[1]."dispatch_handler = OPLINE->handler;\nzend_vm_dispatch:\n".$m[1]."switch ((int)dispatch_handler)".$m[3]."\n");
@@ -1105,8 +1108,8 @@ function gen_executor($f, $skl, $spec, $kind, $executor_name, $initializer_name,
                                        if ($kind == ZEND_VM_KIND_GOTO) {
                                          // Labels are defined in the executor itself, so we call it
                                          // with execute_data NULL and it sets zend_opcode_handlers array
-                                               out($f,$prolog."TSRMLS_FETCH();\n");
-                                               out($f,$prolog.$executor_name."_ex(NULL TSRMLS_CC);\n");
+                                               out($f,$prolog."");
+                                               out($f,$prolog.$executor_name."_ex(NULL);\n");
                                        } else {
                                                if ($old) {
                                                  // Reserving space for user-defined opcodes
@@ -1452,7 +1455,8 @@ function gen_vm($def, $skel) {
                out($f,"#define ZEND_VM_ENTER()      return  1\n");
                out($f,"#define ZEND_VM_LEAVE()      return  2\n");
                out($f,"#define ZEND_VM_DISPATCH(opcode, opline) return zend_vm_get_opcode_handler(opcode, opline)(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);\n\n");
-               out($f,"#define ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_INTERNAL execute_data TSRMLS_CC\n\n");
+               out($f,"#define ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_INTERNAL execute_data
+\n");
        }
        foreach ($export as $dsk) {
                list($kind, $func, $name) = $dsk;
index 8b9ee99804c32c2b59a7168293024add7b05cd71..7f7c53cff316a24b8ea401c17533e51a3e4931d8 100644 (file)
@@ -71,7 +71,7 @@ static php_stream_filter_status_t php_bz2_decompress_filter(
        php_stream_bucket_brigade *buckets_out,
        size_t *bytes_consumed,
        int flags
-       TSRMLS_DC)
+       )
 {
        php_bz2_filter_data *data;
        php_stream_bucket *bucket;
@@ -209,7 +209,7 @@ static php_stream_filter_status_t php_bz2_compress_filter(
        php_stream_bucket_brigade *buckets_out,
        size_t *bytes_consumed,
        int flags
-       TSRMLS_DC)
+       )
 {
        php_bz2_filter_data *data;
        php_stream_bucket *bucket;
index 3a2d2fcb765598fe38da727531a70a4e4b9243ca..b1e6167b2ff9e08778defa0eae8f7a41cc3f3e5a 100644 (file)
 #undef EXIF_DEBUG
 
 #ifdef EXIF_DEBUG
-#define EXIFERR_DC , const char *_file, size_t _line TSRMLS_DC
-#define EXIFERR_CC , __FILE__, __LINE__ TSRMLS_CC
+#define EXIFERR_DC , const char *_file, size_t _line
+#define EXIFERR_CC , __FILE__, __LINE__
 #else
-#define EXIFERR_DC TSRMLS_DC
-#define EXIFERR_CC TSRMLS_CC
+#define EXIFERR_DC
+#define EXIFERR_CC
 #endif
 
 #undef EXIF_JPEG2000
@@ -2644,7 +2644,7 @@ static int exif_process_user_comment(image_info_type *ImageInfo, char **pszInfoP
                                        ByteCount,
                                        zend_multibyte_fetch_encoding(ImageInfo->encode_unicode),
                                        zend_multibyte_fetch_encoding(decode)
-                                       TSRMLS_CC) == (size_t)-1) {
+                                       ) == (size_t)-1) {
                                len = exif_process_string_raw(pszInfoPtr, szValuePtr, ByteCount);
                        }
                        return len;
@@ -2665,7 +2665,7 @@ static int exif_process_user_comment(image_info_type *ImageInfo, char **pszInfoP
                                        ByteCount,
                                        zend_multibyte_fetch_encoding(ImageInfo->encode_jis),
                                        zend_multibyte_fetch_encoding(ImageInfo->motorola_intel ? ImageInfo->decode_jis_be : ImageInfo->decode_jis_le)
-                                       TSRMLS_CC) == (size_t)-1) {
+                                       ) == (size_t)-1) {
                                len = exif_process_string_raw(pszInfoPtr, szValuePtr, ByteCount);
                        }
                        return len;
@@ -2704,7 +2704,7 @@ static int exif_process_unicode(image_info_type *ImageInfo, xp_field_type *xp_fi
                        ByteCount,
                        zend_multibyte_fetch_encoding(ImageInfo->encode_unicode),
                        zend_multibyte_fetch_encoding(ImageInfo->motorola_intel ? ImageInfo->decode_unicode_be : ImageInfo->decode_unicode_le)
-                       TSRMLS_CC) == (size_t)-1) {
+                       ) == (size_t)-1) {
                xp_field->size = exif_process_string_raw(&xp_field->value, szValuePtr, ByteCount);
        }
        return xp_field->size;
index 7ddb009b870ff3b4bbd1bf4a86df33b3a634cdb8..f9735be76e848ee4cc8fd1da40df9e731a2e58e7 100644 (file)
@@ -71,7 +71,7 @@ ZEND_TSRMLS_CACHE_EXTERN;
 #endif
 
 
-#define PHP_INPUT_FILTER_PARAM_DECL zval *value, zend_long flags, zval *option_array, char *charset TSRMLS_DC
+#define PHP_INPUT_FILTER_PARAM_DECL zval *value, zend_long flags, zval *option_array, char *charset
 void php_filter_int(PHP_INPUT_FILTER_PARAM_DECL);
 void php_filter_boolean(PHP_INPUT_FILTER_PARAM_DECL);
 void php_filter_float(PHP_INPUT_FILTER_PARAM_DECL);
index beb016d84fe4c1b05439ecc987f283df1c500d70..1b9846a576b84d22a62bb100d0e4bf37b338840c 100644 (file)
@@ -477,7 +477,7 @@ static void shift_operator_helper(gmp_binary_ui_op_t op, zval *return_value, zva
 #define DO_BINARY_UI_OP_EX(op, uop, check_b_zero)       \
        gmp_zval_binary_ui_op(                              \
                result, op1, op2, op, (gmp_binary_ui_op_t) uop, \
-               check_b_zero TSRMLS_CC                          \
+               check_b_zero                          \
        );                                                  \
        return SUCCESS;
 
index e7b6a834b21e8672e60c8115321729857ace2b9e..95c462e55c4f0ff7d744496e56fb804bf67d9a65 100644 (file)
@@ -1107,7 +1107,7 @@ PHP_FUNCTION(ibase_query)
 
                                if (PG(sql_safe_mode)) {
                                        _php_ibase_module_error("CREATE DATABASE is not allowed in SQL safe mode"
-                                               TSRMLS_CC);
+                                               );
 
                                } else if (((l = INI_INT("ibase.max_links")) != -1) && (IBG(num_links) >= l)) {
                                        _php_ibase_module_error("CREATE DATABASE is not allowed: maximum link count "
@@ -1572,7 +1572,7 @@ static void _php_ibase_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int fetch_type)
                                                                item == isc_info_error || i >= sizeof(bl_info)) {
 
                                                                _php_ibase_module_error("Could not determine BLOB size (internal error)"
-                                                                       TSRMLS_CC);
+                                                                       );
                                                                goto _php_ibase_fetch_error;
                                                        }                                                               
 
index cb944c9dde16ba1ae707e2e76fa403f42306953c..a91bc320cfad69a1831e8bad69466a51b39955d9 100644 (file)
@@ -560,7 +560,7 @@ void _php_ibase_get_link_trans(INTERNAL_FUNCTION_PARAMETERS, /* {{{ */
                ZEND_FETCH_RESOURCE(*trans, ibase_trans *, link_id, -1, LE_TRANS, le_trans);
                if ((*trans)->link_cnt > 1) {
                        _php_ibase_module_error("Link id is ambiguous: transaction spans multiple connections."
-                               TSRMLS_CC);
+                               );
                        return;
                }                               
                *ib_link = (*trans)->db_link[0];
index 63c6a89fea1f01181c05a7f0f3b556e28effca90..bd8ba550d5d1827daf618ebf2a29ae15a6e2cf1b 100644 (file)
@@ -127,7 +127,7 @@ pthread_mutex_t mtx_res = PTHREAD_MUTEX_INITIALIZER;
 
 static void __attribute__((constructor)) init()
 {
-       php_embed_init(0, NULL PTSRMLS_CC);
+       php_embed_init(0, NULL P);
 }
 
 static void __attribute__((destructor)) fini()
index f779e6a5b048508f21482b55d5aa55fffa64d34f..881c1ae2fdf7db24c37997f8bbdfb4d406221980 100644 (file)
@@ -549,7 +549,7 @@ mysqlnd_run_authentication(
                        zend_ulong mysql_flags,
                        zend_bool silent,
                        zend_bool is_change_user
-                       TSRMLS_DC)
+                       )
 {
        enum_func_status ret = FAIL;
        zend_bool first_call = TRUE;
@@ -622,7 +622,7 @@ mysqlnd_run_authentication(
                                                                                        scrambled_data, scrambled_data_len,
                                                                                        &switch_to_auth_protocol, &switch_to_auth_protocol_len,
                                                                                        &switch_to_auth_protocol_data, &switch_to_auth_protocol_data_len
-                                                                                       TSRMLS_CC);
+                                                                                       );
                        } else {
                                ret = mysqlnd_auth_change_user(conn, user, strlen(user), passwd, passwd_len, db, db_len, silent,
                                                                                           first_call,
@@ -679,7 +679,7 @@ mysqlnd_connect_run_authentication(
                        const MYSQLND_PACKET_GREET * const greet_packet,
                        const MYSQLND_OPTIONS * const options,
                        zend_ulong mysql_flags
-                       TSRMLS_DC)
+                       )
 {
        enum_func_status ret = FAIL;
        DBG_ENTER("mysqlnd_connect_run_authentication");
@@ -2302,7 +2302,7 @@ static enum_func_status
 MYSQLND_METHOD(mysqlnd_conn_data, set_client_option)(MYSQLND_CONN_DATA * const conn,
                                                                                                enum mysqlnd_option option,
                                                                                                const char * const value
-                                                                                               TSRMLS_DC)
+                                                                                               )
 {
        size_t this_func = STRUCT_OFFSET(struct st_mysqlnd_conn_data_methods, set_client_option);
        enum_func_status ret = PASS;
@@ -2473,7 +2473,7 @@ MYSQLND_METHOD(mysqlnd_conn_data, set_client_option_2d)(MYSQLND_CONN_DATA * cons
                                                                                                                enum mysqlnd_option option,
                                                                                                                const char * const key,
                                                                                                                const char * const value
-                                                                                                               TSRMLS_DC)
+                                                                                                               )
 {
        size_t this_func = STRUCT_OFFSET(struct st_mysqlnd_conn_data_methods, set_client_option_2d);
        enum_func_status ret = PASS;
@@ -2616,10 +2616,10 @@ MYSQLND_METHOD(mysqlnd_conn_data, store_result)(MYSQLND_CONN_DATA * const conn,
 /* {{{ mysqlnd_conn_data::get_connection_stats */
 static void
 MYSQLND_METHOD(mysqlnd_conn_data, get_connection_stats)(const MYSQLND_CONN_DATA * const conn,
-                                                                                                  zval * return_value TSRMLS_DC ZEND_FILE_LINE_DC)
+                                                                                                  zval * return_value ZEND_FILE_LINE_DC)
 {
        DBG_ENTER("mysqlnd_conn_data::get_connection_stats");
-       mysqlnd_fill_stats_hash(conn->stats, mysqlnd_stats_values_names, return_value TSRMLS_CC ZEND_FILE_LINE_CC);
+       mysqlnd_fill_stats_hash(conn->stats, mysqlnd_stats_values_names, return_value ZEND_FILE_LINE_CC);
        DBG_VOID_RETURN;
 }
 /* }}} */
index 829177a7c16e4ea4a5cd46303c9db7fdafcee2f2..e9a4b1163888e85324a1a5a4b3ab2504eb812cbc 100644 (file)
@@ -104,12 +104,12 @@ PHPAPI MYSQLND * mysqlnd_connect(MYSQLND * conn,
 PHPAPI void _mysqlnd_debug(const char *mode);
 
 /* Query */
-#define mysqlnd_fetch_into(result, flags, ret_val, ext)        (result)->m.fetch_into((result), (flags), (ret_val), (ext) TSRMLS_CC ZEND_FILE_LINE_CC)
+#define mysqlnd_fetch_into(result, flags, ret_val, ext)        (result)->m.fetch_into((result), (flags), (ret_val), (ext) ZEND_FILE_LINE_CC)
 #define mysqlnd_fetch_row_c(result)                                            (result)->m.fetch_row_c((result))
-#define mysqlnd_fetch_all(result, flags, return_value) (result)->m.fetch_all((result), (flags), (return_value) TSRMLS_CC ZEND_FILE_LINE_CC)
+#define mysqlnd_fetch_all(result, flags, return_value) (result)->m.fetch_all((result), (flags), (return_value) ZEND_FILE_LINE_CC)
 #define mysqlnd_result_fetch_field_data(res,offset,ret)        (res)->m.fetch_field_data((res), (offset), (ret))
-#define mysqlnd_get_connection_stats(conn, values)             ((conn)->data)->m->get_statistics((conn)->data,  (values) TSRMLS_CC ZEND_FILE_LINE_CC)
-#define mysqlnd_get_client_stats(values)                               _mysqlnd_get_client_stats((values) TSRMLS_CC ZEND_FILE_LINE_CC)
+#define mysqlnd_get_connection_stats(conn, values)             ((conn)->data)->m->get_statistics((conn)->data,  (values) ZEND_FILE_LINE_CC)
+#define mysqlnd_get_client_stats(values)                               _mysqlnd_get_client_stats((values) ZEND_FILE_LINE_CC)
 
 #define mysqlnd_close(conn,is_forced)                                  (conn)->m->close((conn), (is_forced))
 #define mysqlnd_query(conn, query_str, query_len)              ((conn)->data)->m->query((conn)->data, (query_str), (query_len))
@@ -257,7 +257,7 @@ PHPAPI zend_ulong mysqlnd_old_escape_string(char * newstr, const char * escapest
 
 
 /* Performance statistics */
-PHPAPI void                    _mysqlnd_get_client_stats(zval *return_value TSRMLS_DC ZEND_FILE_LINE_DC);
+PHPAPI void                    _mysqlnd_get_client_stats(zval *return_value ZEND_FILE_LINE_DC);
 
 /* double check the class name to avoid naming conflicts when using these: */
 #define MYSQLND_METHOD(class, method) php_##class##_##method##_pub
index 2196278f2be5140c7beb9d577b5cb2f48d43e802..616c80dfeef77718af6c9c33f2094fdfa20a18f7 100644 (file)
@@ -168,7 +168,7 @@ mysqlnd_auth_change_user(MYSQLND_CONN_DATA * const conn,
                                                                size_t * switch_to_auth_protocol_len,
                                                                zend_uchar ** switch_to_auth_protocol_data,
                                                                size_t * switch_to_auth_protocol_data_len
-                                                               TSRMLS_DC)
+                                                               )
 {
        enum_func_status ret = FAIL;
        const MYSQLND_CHARSET * old_cs = conn->charset;
index 51e4b3381382a1ee6e04da72ee4cf86d6d405033..290c7b14b92fb769f71b51cd92ab24b934cd5b45 100644 (file)
@@ -219,7 +219,7 @@ mysqlnd_auth_handshake(MYSQLND_CONN_DATA * conn,
                                                size_t * switch_to_auth_protocol_len,
                                                zend_uchar ** switch_to_auth_protocol_data,
                                                size_t * switch_to_auth_protocol_data_len
-                                               TSRMLS_DC);
+                                               );
 
 enum_func_status
 mysqlnd_auth_change_user(MYSQLND_CONN_DATA * const conn,
@@ -238,7 +238,7 @@ mysqlnd_auth_change_user(MYSQLND_CONN_DATA * const conn,
                                                                size_t * switch_to_auth_protocol_len,
                                                                zend_uchar ** switch_to_auth_protocol_data,
                                                                size_t * switch_to_auth_protocol_data_len
-                                                               TSRMLS_DC);
+                                                               );
 
 #endif /* MYSQLND_PRIV_H */
 
index 5ad5837875d725e3d40757dec837a06a46601ef4..8e82b22715b099d5446c0183dae3517fdc97d015 100644 (file)
@@ -1714,7 +1714,7 @@ MYSQLND_METHOD(mysqlnd_res, field_tell)(const MYSQLND_RES * const result)
 static void
 MYSQLND_METHOD(mysqlnd_res, fetch_into)(MYSQLND_RES * result, const unsigned int flags,
                                                                                zval *return_value,
-                                                                               enum_mysqlnd_extension extension TSRMLS_DC ZEND_FILE_LINE_DC)
+                                                                               enum_mysqlnd_extension extension ZEND_FILE_LINE_DC)
 {
        zend_bool fetched_anything;
 
@@ -1773,7 +1773,7 @@ MYSQLND_METHOD(mysqlnd_res, fetch_row_c)(MYSQLND_RES * result)
 
 /* {{{ mysqlnd_res::fetch_all */
 static void
-MYSQLND_METHOD(mysqlnd_res, fetch_all)(MYSQLND_RES * result, const unsigned int flags, zval *return_value TSRMLS_DC ZEND_FILE_LINE_DC)
+MYSQLND_METHOD(mysqlnd_res, fetch_all)(MYSQLND_RES * result, const unsigned int flags, zval *return_value ZEND_FILE_LINE_DC)
 {
        zval  row;
        zend_ulong i = 0;
index 048a5fe1993780762c97af451530fb24aebd2d8f..de8014ccea04d9e7d3cb8283f090cf5295f3c71a 100644 (file)
@@ -197,7 +197,7 @@ const MYSQLND_STRING mysqlnd_stats_values_names[STAT_LAST] =
 
 /* {{{ mysqlnd_fill_stats_hash */
 PHPAPI void
-mysqlnd_fill_stats_hash(const MYSQLND_STATS * const stats, const MYSQLND_STRING * names, zval *return_value TSRMLS_DC ZEND_FILE_LINE_DC)
+mysqlnd_fill_stats_hash(const MYSQLND_STATS * const stats, const MYSQLND_STRING * names, zval *return_value ZEND_FILE_LINE_DC)
 {
        unsigned int i;
 
@@ -214,7 +214,7 @@ mysqlnd_fill_stats_hash(const MYSQLND_STATS * const stats, const MYSQLND_STRING
 
 /* {{{ _mysqlnd_get_client_stats */
 PHPAPI void
-_mysqlnd_get_client_stats(zval *return_value TSRMLS_DC ZEND_FILE_LINE_DC)
+_mysqlnd_get_client_stats(zval *return_value ZEND_FILE_LINE_DC)
 {
        MYSQLND_STATS stats, *stats_ptr = mysqlnd_global_stats;
        DBG_ENTER("_mysqlnd_get_client_stats");
@@ -222,7 +222,7 @@ _mysqlnd_get_client_stats(zval *return_value TSRMLS_DC ZEND_FILE_LINE_DC)
                memset(&stats, 0, sizeof(stats));
                stats_ptr = &stats;
        }
-       mysqlnd_fill_stats_hash(stats_ptr, mysqlnd_stats_values_names, return_value TSRMLS_CC ZEND_FILE_LINE_CC);
+       mysqlnd_fill_stats_hash(stats_ptr, mysqlnd_stats_values_names, return_value ZEND_FILE_LINE_CC);
        DBG_VOID_RETURN;
 }
 /* }}} */
index db83dda4cb189502341f11bafbb795f146cc7c42..e1511483966ddd0f6b294f4390c7827f215c28e7 100644 (file)
@@ -157,7 +157,7 @@ extern const MYSQLND_STRING mysqlnd_stats_values_names[];
 
 #endif /* MYSQLND_CORE_STATISTICS_DISABLED */
 
-PHPAPI void mysqlnd_fill_stats_hash(const MYSQLND_STATS * const stats, const MYSQLND_STRING * names, zval *return_value TSRMLS_DC ZEND_FILE_LINE_DC);
+PHPAPI void mysqlnd_fill_stats_hash(const MYSQLND_STATS * const stats, const MYSQLND_STRING * names, zval *return_value ZEND_FILE_LINE_DC);
 
 PHPAPI void mysqlnd_stats_init(MYSQLND_STATS ** stats, size_t statistic_count);
 PHPAPI void mysqlnd_stats_end(MYSQLND_STATS * stats);
index c7fc0a87be9029138a89ac993fcdb9a32ce87612..ca5a2699615a91d15d32b1ddcd85fe00e82e6e78 100644 (file)
@@ -247,7 +247,7 @@ typedef enum_func_status  (*mysqlnd_fetch_row_func)(MYSQLND_RES *result,
                                                                                                        void * param,
                                                                                                        const unsigned int flags,
                                                                                                        zend_bool * fetched_anything
-                                                                                                       TSRMLS_DC);
+                                                                                                       );
 
 
 typedef struct st_mysqlnd_stats MYSQLND_STATS;
@@ -439,7 +439,7 @@ typedef unsigned int                (*func_mysqlnd_conn_data__get_error_no)(const MYSQLND_CONN
 typedef const char *           (*func_mysqlnd_conn_data__get_error_str)(const MYSQLND_CONN_DATA * const conn);
 typedef const char *           (*func_mysqlnd_conn_data__get_sqlstate)(const MYSQLND_CONN_DATA * const conn);
 typedef uint64_t                       (*func_mysqlnd_conn_data__get_thread_id)(const MYSQLND_CONN_DATA * const conn);
-typedef void                           (*func_mysqlnd_conn_data__get_statistics)(const MYSQLND_CONN_DATA * const conn, zval *return_value TSRMLS_DC ZEND_FILE_LINE_DC);
+typedef void                           (*func_mysqlnd_conn_data__get_statistics)(const MYSQLND_CONN_DATA * const conn, zval *return_value ZEND_FILE_LINE_DC);
 
 typedef zend_ulong             (*func_mysqlnd_conn_data__get_server_version)(const MYSQLND_CONN_DATA * const conn);
 typedef const char *           (*func_mysqlnd_conn_data__get_server_information)(const MYSQLND_CONN_DATA * const conn);
@@ -624,9 +624,9 @@ typedef enum_func_status    (*func_mysqlnd_res__row_decoder)(MYSQLND_MEMORY_POOL_CH
 
 typedef MYSQLND_RES *          (*func_mysqlnd_res__use_result)(MYSQLND_RES * const result, zend_bool ps_protocol);
 typedef MYSQLND_RES *          (*func_mysqlnd_res__store_result)(MYSQLND_RES * result, MYSQLND_CONN_DATA * const conn, const unsigned int flags);
-typedef void                           (*func_mysqlnd_res__fetch_into)(MYSQLND_RES *result, const unsigned int flags, zval *return_value, enum_mysqlnd_extension ext TSRMLS_DC ZEND_FILE_LINE_DC);
+typedef void                           (*func_mysqlnd_res__fetch_into)(MYSQLND_RES *result, const unsigned int flags, zval *return_value, enum_mysqlnd_extension ext ZEND_FILE_LINE_DC);
 typedef MYSQLND_ROW_C          (*func_mysqlnd_res__fetch_row_c)(MYSQLND_RES *result);
-typedef void                           (*func_mysqlnd_res__fetch_all)(MYSQLND_RES *result, const unsigned int flags, zval *return_value TSRMLS_DC ZEND_FILE_LINE_DC);
+typedef void                           (*func_mysqlnd_res__fetch_all)(MYSQLND_RES *result, const unsigned int flags, zval *return_value ZEND_FILE_LINE_DC);
 typedef void                           (*func_mysqlnd_res__fetch_field_data)(MYSQLND_RES *result, unsigned int offset, zval *return_value);
 typedef uint64_t                       (*func_mysqlnd_res__num_rows)(const MYSQLND_RES * const result);
 typedef unsigned int           (*func_mysqlnd_res__num_fields)(const MYSQLND_RES * const result);
@@ -1208,7 +1208,7 @@ typedef zend_uchar * (*func_auth_plugin__get_auth_data)(struct st_mysqlnd_authen
                                                                                                                const size_t passwd_len, zend_uchar * auth_plugin_data, size_t auth_plugin_data_len,
                                                                                                                const MYSQLND_OPTIONS * const options, 
                                                                                                                const MYSQLND_NET_OPTIONS * const net_options, zend_ulong mysql_flags
-                                                                                                               TSRMLS_DC);
+                                                                                                               );
 
 struct st_mysqlnd_authentication_plugin
 {
index 01e71618e6941f1b5e6b3039af03b450d5ecf2bb..92128d7715a8cbc204f378215c97e97659977fb6 100644 (file)
@@ -64,7 +64,7 @@ mysqlnd_minfo_dump_plugin_stats(zval *el, void * argument)
                zval values;
                snprintf(buf, sizeof(buf), "%s statistics", plugin_header->plugin_name);
 
-               mysqlnd_fill_stats_hash(plugin_header->plugin_stats.values, plugin_header->plugin_stats.names, &values TSRMLS_CC ZEND_FILE_LINE_CC); 
+               mysqlnd_fill_stats_hash(plugin_header->plugin_stats.values, plugin_header->plugin_stats.names, &values ZEND_FILE_LINE_CC); 
 
                php_info_print_table_start();
                php_info_print_table_header(2, buf, "");
index d2dc38962a89e2a41311aa06f5083ce4609da875..49ca397316308b91be40858aa9c36d2a1d0da24e 100644 (file)
@@ -720,7 +720,7 @@ static void zend_optimize_block(zend_code_block *block, zend_op_array *op_array,
                                int flen = FUNCTION_CACHE->funcs[Z_LVAL(ZEND_OP1_LITERAL(fcall))].name_len;
                                if(flen == sizeof("defined")-1 && zend_binary_strcasecmp(fname, flen, "defined", sizeof("defined")-1) == 0) {
                                        zval c;
-                                       if(zend_optimizer_get_persistent_constant(Z_STR_P(arg), &c, 0 TSRMLS_CC ELS_CC) != 0) {
+                                       if(zend_optimizer_get_persistent_constant(Z_STR_P(arg), &c, 0 ELS_CC) != 0) {
                                                literal_dtor(arg);
                                                MAKE_NOP(sv);
                                                MAKE_NOP(fcall);
@@ -740,7 +740,7 @@ static void zend_optimize_block(zend_code_block *block, zend_op_array *op_array,
                                        }
                                } else if(flen == sizeof("constant")-1 && zend_binary_strcasecmp(fname, flen, "constant", sizeof("constant")-1) == 0) {
                                        zval c;
-                                       if(zend_optimizer_get_persistent_constant(Z_STR_P(arg), &c, 1 TSRMLS_CC ELS_CC) != 0) {
+                                       if(zend_optimizer_get_persistent_constant(Z_STR_P(arg), &c, 1 ELS_CC) != 0) {
                                                literal_dtor(arg);
                                                MAKE_NOP(sv);
                                                MAKE_NOP(fcall);
index 312fb083863c6e4f7adaff7f76f894eb1950b4e8..6ed7c087cbcc2ac29978b369c919803402561a48 100644 (file)
@@ -1370,7 +1370,7 @@ static void enable_client_sni(php_stream *stream, php_openssl_netstream_data_t *
 int php_openssl_setup_crypto(php_stream *stream,
                php_openssl_netstream_data_t *sslsock,
                php_stream_xport_crypto_param *cparam
-               TSRMLS_DC) /* {{{ */
+               ) /* {{{ */
 {
        const SSL_METHOD *method;
        long ssl_ctx_options;
@@ -1596,7 +1596,7 @@ static int capture_peer_certs(php_stream *stream, php_openssl_netstream_data_t *
 static int php_openssl_enable_crypto(php_stream *stream,
                php_openssl_netstream_data_t *sslsock,
                php_stream_xport_crypto_param *cparam
-               TSRMLS_DC)
+               )
 {
        int n;
        int retry = 1;
@@ -1913,7 +1913,7 @@ static inline int php_openssl_tcp_sockop_accept(php_stream *stream, php_openssl_
                        xparam->inputs.timeout,
                        xparam->want_errortext ? &xparam->outputs.error_text : NULL,
                        &xparam->outputs.error_code
-                       TSRMLS_CC);
+                       );
 
        if (clisock >= 0) {
                php_openssl_netstream_data_t *clisockdata;
index abd0590e1c6c9aafdc3a6e7748e1d79c60a27f26..9cc1c7dfbf62ecd450805c3e3a0d47fbcfb3235f 100644 (file)
@@ -500,7 +500,7 @@ static PHP_METHOD(PDO, prepare)
                        pdo_raise_impl_error(dbh, NULL, "HY000", 
                                "PDO::ATTR_STATEMENT_CLASS requires format array(classname, array(ctor_args)); "
                                "the classname must be a string specifying an existing class"
-                               TSRMLS_CC);
+                               );
                        PDO_HANDLE_DBH_ERR();
                        RETURN_FALSE;
                }
@@ -522,7 +522,7 @@ static PHP_METHOD(PDO, prepare)
                                pdo_raise_impl_error(dbh, NULL, "HY000", 
                                        "PDO::ATTR_STATEMENT_CLASS requires format array(classname, ctor_args); "
                                        "ctor_args must be an array"
-                               TSRMLS_CC);
+                               );
                                PDO_HANDLE_DBH_ERR();
                                RETURN_FALSE;
                        }
@@ -538,7 +538,7 @@ static PHP_METHOD(PDO, prepare)
        if (!pdo_stmt_instantiate(dbh, return_value, dbstmt_ce, &ctor_args)) {
                pdo_raise_impl_error(dbh, NULL, "HY000", 
                        "failed to instantiate user-supplied statement class"
-                       TSRMLS_CC);
+                       );
                PDO_HANDLE_DBH_ERR();
                RETURN_FALSE;
        }
@@ -756,7 +756,7 @@ static int pdo_dbh_attribute_set(pdo_dbh_t *dbh, zend_long attr, zval *value) /*
                        if (dbh->is_persistent) {
                                pdo_raise_impl_error(dbh, NULL, "HY000", 
                                        "PDO::ATTR_STATEMENT_CLASS cannot be used with persistent PDO instances"
-                                       TSRMLS_CC);
+                                       );
                                PDO_HANDLE_DBH_ERR();
                                return FAILURE;
                        }
@@ -768,7 +768,7 @@ static int pdo_dbh_attribute_set(pdo_dbh_t *dbh, zend_long attr, zval *value) /*
                                pdo_raise_impl_error(dbh, NULL, "HY000", 
                                        "PDO::ATTR_STATEMENT_CLASS requires format array(classname, array(ctor_args)); "
                                        "the classname must be a string specifying an existing class"
-                                       TSRMLS_CC);
+                                       );
                                PDO_HANDLE_DBH_ERR();
                                return FAILURE;
                        }
@@ -794,7 +794,7 @@ static int pdo_dbh_attribute_set(pdo_dbh_t *dbh, zend_long attr, zval *value) /*
                                        pdo_raise_impl_error(dbh, NULL, "HY000", 
                                                "PDO::ATTR_STATEMENT_CLASS requires format array(classname, array(ctor_args)); "
                                                "ctor_args must be an array"
-                                       TSRMLS_CC);
+                                       );
                                        PDO_HANDLE_DBH_ERR();
                                        return FAILURE;
                                }
index 397300050dcefd1d50abcd3a52b884da14c48a67..e4daca7b876dd5a1a30272236df1e6b31d1b82b9 100644 (file)
@@ -385,7 +385,7 @@ static int really_register_bound_param(struct pdo_bound_param_data *param, pdo_s
         * at this time. */
        if (stmt->methods->param_hook) {
                if (!stmt->methods->param_hook(stmt, param, PDO_PARAM_EVT_NORMALIZE
-                               TSRMLS_CC)) {
+                               )) {
                        if (param->name) {
                                zend_string_release(param->name);
                                param->name = NULL;
@@ -411,7 +411,7 @@ static int really_register_bound_param(struct pdo_bound_param_data *param, pdo_s
        /* tell the driver we just created a parameter */
        if (stmt->methods->param_hook) {
                if (!stmt->methods->param_hook(stmt, pparam, PDO_PARAM_EVT_ALLOC
-                                       TSRMLS_CC)) {
+                                       )) {
                        /* undo storage allocation; the hash will free the parameter
                         * name if required */
                        if (pparam->name) {
index 52e8e6f8e74021800e612013c8785771cf0efa6d..776c373c24affa682fae60e353516eca277238da 100644 (file)
@@ -46,9 +46,9 @@ ZEND_END_MODULE_GLOBALS(pdo_odbc)
 
 /* In every utility function you add that needs to use variables 
    in php_pdo_odbc_globals, call TSRMLS_FETCH(); after declaring other 
-   variables used by that function, or better yet, pass in TSRMLS_CC
+   variables used by that function, or better yet, pass in
    after the last function argument and declare your utility function
-   with TSRMLS_DC after the last declared argument.  Always refer to
+   with after the last declared argument.  Always refer to
    the globals in your function as PDO_ODBC_G(variable).  You are 
    encouraged to rename these macros something shorter, see
    examples in any other php module directory.
index 9413e1bb7082d73c9d711ffc78a742fc1160193d..21977d7f2b181bc2800728c14fb1e666cf4bdcce 100644 (file)
@@ -47,9 +47,9 @@ ZEND_END_MODULE_GLOBALS(pdo_sqlite)
 
 /* In every utility function you add that needs to use variables 
    in php_pdo_sqlite_globals, call TSRMLS_FETCH(); after declaring other 
-   variables used by that function, or better yet, pass in TSRMLS_CC
+   variables used by that function, or better yet, pass in
    after the last function argument and declare your utility function
-   with TSRMLS_DC after the last declared argument.  Always refer to
+   with after the last declared argument.  Always refer to
    the globals in your function as PDO_SQLITE_G(variable).  You are 
    encouraged to rename these macros something shorter, see
    examples in any other php module directory.
index 961a3bcd91649528663a2b2943bb74ef29347daf..44c03e9ecc379b0993f509c7f91a41776a17a98f 100644 (file)
 /* To check php_session_valid_key()/php_session_reset_id() */
 #define PHP_SESSION_STRICT 1
 
-#define PS_OPEN_ARGS void **mod_data, const char *save_path, const char *session_name TSRMLS_DC
-#define PS_CLOSE_ARGS void **mod_data TSRMLS_DC
-#define PS_READ_ARGS void **mod_data, zend_string *key, zend_string **val TSRMLS_DC
-#define PS_WRITE_ARGS void **mod_data, zend_string *key, zend_string *val TSRMLS_DC
-#define PS_DESTROY_ARGS void **mod_data, zend_string *key TSRMLS_DC
-#define PS_GC_ARGS void **mod_data, int maxlifetime, int *nrdels TSRMLS_DC
-#define PS_CREATE_SID_ARGS void **mod_data TSRMLS_DC
+#define PS_OPEN_ARGS void **mod_data, const char *save_path, const char *session_name
+#define PS_CLOSE_ARGS void **mod_data
+#define PS_READ_ARGS void **mod_data, zend_string *key, zend_string **val
+#define PS_WRITE_ARGS void **mod_data, zend_string *key, zend_string *val
+#define PS_DESTROY_ARGS void **mod_data, zend_string *key
+#define PS_GC_ARGS void **mod_data, int maxlifetime, int *nrdels
+#define PS_CREATE_SID_ARGS void **mod_data
 
 /* default create id function */
 PHPAPI zend_string *php_session_create_id(PS_CREATE_SID_ARGS);
@@ -198,7 +198,7 @@ ZEND_TSRMLS_CACHE_EXTERN;
 #endif
 
 #define PS_SERIALIZER_ENCODE_ARGS TSRMLS_D
-#define PS_SERIALIZER_DECODE_ARGS const char *val, int vallen TSRMLS_DC
+#define PS_SERIALIZER_DECODE_ARGS const char *val, int vallen
 
 typedef struct ps_serializer_struct {
        const char *name;
index bf73bfcc9b33abca822f44d4636a1a67637e7551..7d9b0bce4a19d447fa344b1e8d2d8c291c46b202 100644 (file)
@@ -32,9 +32,9 @@ ZEND_END_MODULE_GLOBALS(extname)
 
 /* In every utility function you add that needs to use variables 
    in php_extname_globals, call TSRMLS_FETCH(); after declaring other 
-   variables used by that function, or better yet, pass in TSRMLS_CC
+   variables used by that function, or better yet, pass in
    after the last function argument and declare your utility function
-   with TSRMLS_DC after the last declared argument.  Always refer to
+   with after the last declared argument.  Always refer to
    the globals in your function as EXTNAME_G(variable).  You are 
    encouraged to rename these macros something shorter, see
    examples in any other php module directory.
index 8e67e8af905516fe517e96f9577a1ab735b098a9..2d8a1d62bd73a751e96ec1795e760ac4f366a933 100644 (file)
@@ -247,8 +247,8 @@ static void spl_filesystem_dir_open(spl_filesystem_object* intern, char *path)
                intern->u.dir.entry.d_name[0] = '\0';
                if (!EG(exception)) {
                        /* open failed w/out notice (turned to exception due to EH_THROW) */
-                       zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0
-                               TSRMLS_CC, "Failed to open directory \"%s\"", path);
+                       zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0,
+                               "Failed to open directory \"%s\"", path);
                }
        } else {
                do {
index 917a0220799a615dc9c471242950380567c12f3e..bbad6bc7d79310c8d736c1c2d7404e47f90d5811 100644 (file)
@@ -4879,8 +4879,7 @@ static int user_shutdown_function_call(zval *zv) /* {{{ */
                                &shutdown_function_entry->arguments[0],
                                &retval,
                                shutdown_function_entry->arg_count - 1,
-                               shutdown_function_entry->arguments + 1
-                               TSRMLS_CC ) == SUCCESS)
+                               shutdown_function_entry->arguments + 1) == SUCCESS)
        {
                zval_dtor(&retval);
        }
@@ -4902,7 +4901,7 @@ static void user_tick_function_call(user_tick_function_entry *tick_fe) /* {{{ */
                                                                &retval,
                                                                tick_fe->arg_count - 1,
                                                                tick_fe->arguments + 1
-                                                               TSRMLS_CC) == SUCCESS) {
+                                                               ) == SUCCESS) {
                        zval_dtor(&retval);
 
                } else {
index 1a74abf89c14200186aa90108de7b9c78c5314ca..912d2b13943a9b2b3a28f7a76571873ab89d3cb3 100644 (file)
@@ -40,7 +40,7 @@ static php_stream_filter_status_t strfilter_rot13_filter(
        php_stream_bucket_brigade *buckets_out,
        size_t *bytes_consumed,
        int flags
-       TSRMLS_DC)
+       )
 {
        php_stream_bucket *bucket;
        size_t consumed = 0;
@@ -88,7 +88,7 @@ static php_stream_filter_status_t strfilter_toupper_filter(
        php_stream_bucket_brigade *buckets_out,
        size_t *bytes_consumed,
        int flags
-       TSRMLS_DC)
+       )
 {
        php_stream_bucket *bucket;
        size_t consumed = 0;
@@ -116,7 +116,7 @@ static php_stream_filter_status_t strfilter_tolower_filter(
        php_stream_bucket_brigade *buckets_out,
        size_t *bytes_consumed,
        int flags
-       TSRMLS_DC)
+       )
 {
        php_stream_bucket *bucket;
        size_t consumed = 0;
@@ -207,7 +207,7 @@ static php_stream_filter_status_t strfilter_strip_tags_filter(
        php_stream_bucket_brigade *buckets_out,
        size_t *bytes_consumed,
        int flags
-       TSRMLS_DC)
+       )
 {
        php_stream_bucket *bucket;
        size_t consumed = 0;
@@ -1726,7 +1726,7 @@ static php_stream_filter_status_t strfilter_convert_filter(
        php_stream_bucket_brigade *buckets_out,
        size_t *bytes_consumed,
        int flags
-       TSRMLS_DC)
+       )
 {
        php_stream_bucket *bucket = NULL;
        size_t consumed = 0;
@@ -1845,7 +1845,7 @@ static php_stream_filter_status_t consumed_filter_filter(
        php_stream_bucket_brigade *buckets_out,
        size_t *bytes_consumed,
        int flags
-       TSRMLS_DC)
+       )
 {
        php_consumed_filter_data *data = (php_consumed_filter_data *)Z_PTR(thisfilter->abstract);
        php_stream_bucket *bucket;
@@ -2058,7 +2058,7 @@ static php_stream_filter_status_t php_chunked_filter(
        php_stream_bucket_brigade *buckets_out,
        size_t *bytes_consumed,
        int flags
-       TSRMLS_DC)
+       )
 {
        php_stream_bucket *bucket;
        size_t consumed = 0;
@@ -2144,7 +2144,7 @@ PHP_MINIT_FUNCTION(standard_filters)
                if (FAILURE == php_stream_filter_register_factory(
                                        standard_filters[i].ops->label,
                                        standard_filters[i].factory
-                                       TSRMLS_CC)) {
+                                       )) {
                        return FAILURE;
                }
        }
index 31ab31cf3ff0f1b96594596f6f1b9d54997d2f0d..3a28a2d57632067023e41943bb7fccf965fe4d47 100644 (file)
@@ -272,7 +272,7 @@ PHP_FUNCTION(stream_socket_accept)
                                zpeername ? &peername : NULL,
                                NULL, NULL,
                                &tv, &errstr
-                               TSRMLS_CC) && clistream) {
+                               ) && clistream) {
 
                if (peername) {
                        ZVAL_STR(zpeername, peername);
@@ -307,7 +307,7 @@ PHP_FUNCTION(stream_socket_get_name)
        if (0 != php_stream_xport_get_name(stream, want_peer,
                                &name,
                                NULL, NULL
-                               TSRMLS_CC)) {
+                               )) {
                RETURN_FALSE;
        }
 
@@ -376,7 +376,7 @@ PHP_FUNCTION(stream_socket_recvfrom)
 
        recvd = php_stream_xport_recvfrom(stream, read_buf->val, to_read, (int)flags, NULL, NULL,
                        zremote ? &remote_addr : NULL
-                       TSRMLS_CC);
+                       );
 
        if (recvd >= 0) {
                if (zremote) {
index 292d0a9315c00e0f540b11982384cac4bb477a20..a24fb1ee8b532dd315633cda9d7d8ea0e7fb4084 100644 (file)
@@ -252,8 +252,8 @@ enum {
 #define YYMARKER q
 #define STATE ctx->state
 
-#define STD_PARA url_adapt_state_ex_t *ctx, char *start, char *YYCURSOR TSRMLS_DC
-#define STD_ARGS ctx, start, xp TSRMLS_CC
+#define STD_PARA url_adapt_state_ex_t *ctx, char *start, char *YYCURSOR
+#define STD_ARGS ctx, start, xp
 
 #if SCANNER_DEBUG
 #define scdebug(x) printf x
index 97611954f25d8279b1313cd4c5a20ba3052998c2..e374b76195378db0312d242f879fec3a81e2bfca 100644 (file)
@@ -188,8 +188,8 @@ enum {
 #define YYMARKER q
 #define STATE ctx->state
 
-#define STD_PARA url_adapt_state_ex_t *ctx, char *start, char *YYCURSOR TSRMLS_DC
-#define STD_ARGS ctx, start, xp TSRMLS_CC
+#define STD_PARA url_adapt_state_ex_t *ctx, char *start, char *YYCURSOR
+#define STD_ARGS ctx, start, xp
 
 #if SCANNER_DEBUG
 #define scdebug(x) printf x
index 9f748623c4356515f61fec11ee2d1a25f80cf9d0..225381ffd5613f7f8e769e9f51e0a8ad24fa4de5 100644 (file)
@@ -169,7 +169,7 @@ php_stream_filter_status_t userfilter_filter(
                        php_stream_bucket_brigade *buckets_out,
                        size_t *bytes_consumed,
                        int flags
-                       TSRMLS_DC)
+                       )
 {
        int ret = PSFS_ERR_FATAL;
        zval *obj = &thisfilter->abstract;
index f51a42095e1f4795b80417aaa2ef169750b01c3f..74a86ca5a7f30390fe48a93aef7cf3c06c305fa4 100644 (file)
@@ -319,8 +319,8 @@ static inline size_t parse_uiv(const unsigned char *p)
        return result;
 }
 
-#define UNSERIALIZE_PARAMETER zval *rval, const unsigned char **p, const unsigned char *max, php_unserialize_data_t *var_hash, HashTable *classes TSRMLS_DC
-#define UNSERIALIZE_PASSTHRU rval, p, max, var_hash, classes TSRMLS_CC
+#define UNSERIALIZE_PARAMETER zval *rval, const unsigned char **p, const unsigned char *max, php_unserialize_data_t *var_hash, HashTable *classes
+#define UNSERIALIZE_PASSTHRU rval, p, max, var_hash, classes
 
 static inline int process_nested_data(UNSERIALIZE_PARAMETER, HashTable *ht, zend_long elements, int objprops)
 {
index 99600995a515824f7e5cc83e0b448371df1828f7..dc72d7051b40bbe2ab67b607b509a20fbf921a4c 100644 (file)
@@ -323,8 +323,8 @@ static inline size_t parse_uiv(const unsigned char *p)
        return result;
 }
 
-#define UNSERIALIZE_PARAMETER zval *rval, const unsigned char **p, const unsigned char *max, php_unserialize_data_t *var_hash, HashTable *classes TSRMLS_DC
-#define UNSERIALIZE_PASSTHRU rval, p, max, var_hash, classes TSRMLS_CC
+#define UNSERIALIZE_PARAMETER zval *rval, const unsigned char **p, const unsigned char *max, php_unserialize_data_t *var_hash, HashTable *classes
+#define UNSERIALIZE_PASSTHRU rval, p, max, var_hash, classes
 
 static inline int process_nested_data(UNSERIALIZE_PARAMETER, HashTable *ht, zend_long elements, int objprops)
 {
index c1fce674fde79eb429bb1acf1f790da067af117f..eb6b2330c730d82798f773a542124f7c007e36db 100644 (file)
@@ -114,9 +114,9 @@ ZEND_END_MODULE_GLOBALS(xsl)
 
 /* In every utility function you add that needs to use variables 
    in php_xsl_globals, call TSRM_FETCH(); after declaring other 
-   variables used by that function, or better yet, pass in TSRMLS_CC
+   variables used by that function, or better yet, pass in
    after the last function argument and declare your utility function
-   with TSRMLS_DC after the last declared argument.  Always refer to
+   with after the last declared argument.  Always refer to
    the globals in your function as XSL_G(variable).  You are 
    encouraged to rename these macros something shorter, see
    examples in any other php module directory.
index f17a8d6ce05f4110142dd303ebdf98d14d21a6ed..6f7a8727888dbb6d492f310a0152bd39002c9138 100644 (file)
@@ -58,7 +58,7 @@ static php_stream_filter_status_t php_zlib_inflate_filter(
        php_stream_bucket_brigade *buckets_out,
        size_t *bytes_consumed,
        int flags
-       TSRMLS_DC)
+       )
 {
        php_zlib_filter_data *data;
        php_stream_bucket *bucket;
@@ -181,7 +181,7 @@ static php_stream_filter_status_t php_zlib_deflate_filter(
        php_stream_bucket_brigade *buckets_out,
        size_t *bytes_consumed,
        int flags
-       TSRMLS_DC)
+       )
 {
        php_zlib_filter_data *data;
        php_stream_bucket *bucket;
index 3f02921ddffa944e5d9ba5ca2a6f750c41564b1c..d04eea3103549a9aaec3b5a85f5795ac39edc0b2 100644 (file)
@@ -35,9 +35,9 @@ static zend_module_entry *php_builtin_extensions[] = {
 
 #define EXTCOUNT (sizeof(php_builtin_extensions)/sizeof(zend_module_entry *))
 
-PHPAPI int php_register_internal_extensions(TSRMLS_D)
+PHPAPI int php_register_internal_extensions(void)
 {
-       return php_register_extensions(php_builtin_extensions, EXTCOUNT TSRMLS_CC);
+       return php_register_extensions(php_builtin_extensions, EXTCOUNT);
 }
 
 /*
index 233122a0d3af5d77d1e7bbd90c78239c713c2893..ac80f53f937c3d124e2cc5c8f5bee38cfafbe894 100644 (file)
@@ -417,7 +417,7 @@ static inline void sub_times(struct timeval a, struct timeval b, struct timeval
 /* {{{ php_network_bind_socket_to_local_addr */
 php_socket_t php_network_bind_socket_to_local_addr(const char *host, unsigned port,
                int socktype, long sockopts, zend_string **error_string, int *error_code
-               TSRMLS_DC)
+               )
 {
        int num_addrs, n, err = 0;
        php_socket_t sock;
@@ -602,7 +602,7 @@ PHPAPI void php_network_populate_name_from_sockaddr(
                /* output address */
                struct sockaddr **addr,
                socklen_t *addrlen
-               TSRMLS_DC)
+               )
 {
        if (addr) {
                *addr = emalloc(sl);
@@ -663,7 +663,7 @@ PHPAPI int php_network_get_peer_name(php_socket_t sock,
                zend_string **textaddr,
                struct sockaddr **addr,
                socklen_t *addrlen
-               TSRMLS_DC)
+               )
 {
        php_sockaddr_storage sa;
        socklen_t sl = sizeof(sa);
@@ -673,7 +673,7 @@ PHPAPI int php_network_get_peer_name(php_socket_t sock,
                php_network_populate_name_from_sockaddr((struct sockaddr*)&sa, sl,
                                textaddr,
                                addr, addrlen
-                               TSRMLS_CC);
+                               );
                return 0;
        }
        return -1;
@@ -683,7 +683,7 @@ PHPAPI int php_network_get_sock_name(php_socket_t sock,
                zend_string **textaddr,
                struct sockaddr **addr,
                socklen_t *addrlen
-               TSRMLS_DC)
+               )
 {
        php_sockaddr_storage sa;
        socklen_t sl = sizeof(sa);
@@ -693,7 +693,7 @@ PHPAPI int php_network_get_sock_name(php_socket_t sock,
                php_network_populate_name_from_sockaddr((struct sockaddr*)&sa, sl,
                                textaddr,
                                addr, addrlen
-                               TSRMLS_CC);
+                               );
                return 0;
        }
        return -1;
@@ -717,7 +717,7 @@ PHPAPI php_socket_t php_network_accept_incoming(php_socket_t srvsock,
                struct timeval *timeout,
                zend_string **error_string,
                int *error_code
-               TSRMLS_DC)
+               )
 {
        php_socket_t clisock = -1;
        int error = 0, n;
@@ -739,7 +739,7 @@ PHPAPI php_socket_t php_network_accept_incoming(php_socket_t srvsock,
                        php_network_populate_name_from_sockaddr((struct sockaddr*)&sa, sl,
                                        textaddr,
                                        addr, addrlen
-                                       TSRMLS_CC);
+                                       );
                } else {
                        error = php_socket_errno();
                }
@@ -768,7 +768,7 @@ PHPAPI php_socket_t php_network_accept_incoming(php_socket_t srvsock,
 php_socket_t php_network_connect_socket_to_host(const char *host, unsigned short port,
                int socktype, int asynchronous, struct timeval *timeout, zend_string **error_string,
                int *error_code, char *bindto, unsigned short bindport, long sockopts
-               TSRMLS_DC)
+               )
 {
        int num_addrs, n, fatal = 0;
        php_socket_t sock;
index 7529eb71e0df2a166d525d29e53c32c308360a6f..5a168cb0f9b78a608838963ab75cbaf167542445 100644 (file)
@@ -236,7 +236,7 @@ PHPAPI void php_network_freeaddresses(struct sockaddr **sal);
 PHPAPI php_socket_t php_network_connect_socket_to_host(const char *host, unsigned short port,
                int socktype, int asynchronous, struct timeval *timeout, zend_string **error_string,
                int *error_code, char *bindto, unsigned short bindport, long sockopts
-               TSRMLS_DC);
+               );
 
 PHPAPI int php_network_connect_socket(php_socket_t sockfd,
                const struct sockaddr *addr,
@@ -251,7 +251,7 @@ PHPAPI int php_network_connect_socket(php_socket_t sockfd,
 
 PHPAPI php_socket_t php_network_bind_socket_to_local_addr(const char *host, unsigned port,
                int socktype, long sockopts, zend_string **error_string, int *error_code
-               TSRMLS_DC);
+               );
 
 PHPAPI php_socket_t php_network_accept_incoming(php_socket_t srvsock,
                zend_string **textaddr,
@@ -260,19 +260,19 @@ PHPAPI php_socket_t php_network_accept_incoming(php_socket_t srvsock,
                struct timeval *timeout,
                zend_string **error_string,
                int *error_code
-               TSRMLS_DC);
+               );
 
 PHPAPI int php_network_get_sock_name(php_socket_t sock, 
                zend_string **textaddr,
                struct sockaddr **addr,
                socklen_t *addrlen
-               TSRMLS_DC);
+               );
        
 PHPAPI int php_network_get_peer_name(php_socket_t sock, 
                zend_string **textaddr,
                struct sockaddr **addr,
                socklen_t *addrlen
-               TSRMLS_DC);
+               );
 
 PHPAPI void php_any_addr(int family, php_sockaddr_storage *addr, unsigned short port);
 PHPAPI int php_sockaddr_size(php_sockaddr_storage *addr);
@@ -303,7 +303,7 @@ PHPAPI void php_network_populate_name_from_sockaddr(
                /* output address */
                struct sockaddr **addr,
                socklen_t *addrlen
-               TSRMLS_DC);
+               );
 
 PHPAPI int php_network_parse_network_address_with_port(const char *addr,
                zend_long addrlen, struct sockaddr *sa, socklen_t *sl);
index fe51f5e184d801b9c95e6a24233c8d1af253c592..c0f16b6126ff36cbe84f433c665e6767dd772469 100644 (file)
@@ -301,7 +301,7 @@ PHPAPI size_t _php_stream_printf(php_stream *stream, const char *fmt, ...) PHP_A
 PHPAPI size_t _php_stream_printf(php_stream *stream, const char *fmt, ...) PHP_ATTRIBUTE_FORMAT(printf, 2, 3);
 #endif
 
-/* php_stream_printf macro & function require TSRMLS_CC */
+/* php_stream_printf macro & function require */
 #define php_stream_printf _php_stream_printf
 
 PHPAPI int _php_stream_eof(php_stream *stream);
index feeb96aba0741109956a4cc331c7a72407e7251a..7c9248ecc1b2d4956c7adbd4459b5c30b7df5997 100644 (file)
@@ -90,7 +90,7 @@ typedef struct _php_stream_filter_ops {
                        php_stream_bucket_brigade *buckets_out,
                        size_t *bytes_consumed,
                        int flags
-                       TSRMLS_DC);
+                       );
        
        void (*dtor)(php_stream_filter *thisfilter);
        
index 89a2e9a5f30e929359ca971d21875d1a7b0f9a16..7f587282f0aec0a7e00cd5a59daac2b64c0359af 100644 (file)
@@ -61,7 +61,7 @@ PHPAPI php_stream *_php_stream_xport_create(const char *name, size_t namelen, in
 PHPAPI int php_stream_xport_bind(php_stream *stream,
                const char *name, size_t namelen,
                zend_string **error_text
-               TSRMLS_DC);
+               );
 
 /* Connect to a remote address */
 PHPAPI int php_stream_xport_connect(php_stream *stream,
@@ -70,13 +70,13 @@ PHPAPI int php_stream_xport_connect(php_stream *stream,
                struct timeval *timeout,
                zend_string **error_text,
                int *error_code
-               TSRMLS_DC);
+               );
 
 /* Prepare to listen */
 PHPAPI int php_stream_xport_listen(php_stream *stream,
                int backlog,
                zend_string **error_text
-               TSRMLS_DC);
+               );
 
 /* Get the next client and their address as a string, or the underlying address
  * structure.  You must efree either of these if you request them */
@@ -85,13 +85,13 @@ PHPAPI int php_stream_xport_accept(php_stream *stream, php_stream **client,
                void **addr, socklen_t *addrlen,
                struct timeval *timeout,
                zend_string **error_text
-               TSRMLS_DC);
+               );
 
 /* Get the name of either the socket or it's peer */
 PHPAPI int php_stream_xport_get_name(php_stream *stream, int want_peer,
                zend_string **textaddr,
                void **addr, socklen_t *addrlen
-               TSRMLS_DC);
+               );
 
 enum php_stream_xport_send_recv_flags {
        STREAM_OOB = 1,
index b5340e693ace67f98325df8023106d9341d02329..fab5d42eb3a1d01e3153eac78fec61ded3cdae9a 100644 (file)
@@ -695,7 +695,7 @@ static void php_stream_fill_read_buffer(php_stream *stream, size_t size)
 
                        justread = stream->ops->read(stream, (char*)stream->readbuf + stream->writepos,
                                        stream->readbuflen - stream->writepos
-                                       TSRMLS_CC);
+                                       );
 
                        if (justread != (size_t)-1) {
                                stream->writepos += justread;
index c0657ed0b4f4c3638fad2ae15f6293f893ee3728..6c68f839be3dd2efd9de080e827e1e04f797fb63 100644 (file)
@@ -196,7 +196,7 @@ PHPAPI php_stream *_php_stream_xport_create(const char *name, size_t namelen, in
 PHPAPI int php_stream_xport_bind(php_stream *stream,
                const char *name, size_t namelen,
                zend_string **error_text
-               TSRMLS_DC)
+               )
 {
        php_stream_xport_param param;
        int ret;
@@ -227,7 +227,7 @@ PHPAPI int php_stream_xport_connect(php_stream *stream,
                struct timeval *timeout,
                zend_string **error_text,
                int *error_code
-               TSRMLS_DC)
+               )
 {
        php_stream_xport_param param;
        int ret;
@@ -286,7 +286,7 @@ PHPAPI int php_stream_xport_accept(php_stream *stream, php_stream **client,
                void **addr, socklen_t *addrlen,
                struct timeval *timeout,
                zend_string **error_text
-               TSRMLS_DC)
+               )
 {
        php_stream_xport_param param;
        int ret;
@@ -322,7 +322,7 @@ PHPAPI int php_stream_xport_accept(php_stream *stream, php_stream **client,
 PHPAPI int php_stream_xport_get_name(php_stream *stream, int want_peer,
                zend_string **textaddr,
                void **addr, socklen_t *addrlen
-               TSRMLS_DC)
+               )
 {
        php_stream_xport_param param;
        int ret;
@@ -394,7 +394,7 @@ PHPAPI int php_stream_xport_crypto_enable(php_stream *stream, int activate)
  * peeking, optionally retrieving OOB data */
 PHPAPI int php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen,
                int flags, void **addr, socklen_t *addrlen, zend_string **textaddr
-               TSRMLS_DC)
+               )
 {
        php_stream_xport_param param;
        int ret = 0;
index 121585137438448b32f8cd600100c12b9750dd42..c3f167636e77f392b51ca6a94bd208c37fdbc9d3 100644 (file)
@@ -377,7 +377,7 @@ static php_stream *user_wrapper_opener(php_stream_wrapper *wrapper, const char *
                        &zfuncname,
                        &zretval,
                        4, args,
-                       0, NULL TSRMLS_CC);
+                       0, NULL );
 
        if (call_result == SUCCESS && Z_TYPE(zretval) != IS_UNDEF && zval_is_true(&zretval)) {
                /* the stream is now open! */
@@ -452,7 +452,7 @@ static php_stream *user_wrapper_opendir(php_stream_wrapper *wrapper, const char
                        &zfuncname,
                        &zretval,
                        2, args,
-                       0, NULL TSRMLS_CC);
+                       0, NULL );
 
        if (call_result == SUCCESS && Z_TYPE(zretval) != IS_UNDEF && zval_is_true(&zretval)) {
                /* the stream is now open! */
@@ -1107,7 +1107,7 @@ static int user_wrapper_unlink(php_stream_wrapper *wrapper, const char *url, int
                        &zfuncname,
                        &zretval,
                        1, args,
-                       0, NULL TSRMLS_CC);
+                       0, NULL );
 
        if (call_result == SUCCESS && (Z_TYPE(zretval) == IS_FALSE || Z_TYPE(zretval) == IS_TRUE)) {
                ret = (Z_TYPE(zretval) == IS_TRUE);
@@ -1152,7 +1152,7 @@ static int user_wrapper_rename(php_stream_wrapper *wrapper, const char *url_from
                        &zfuncname,
                        &zretval,
                        2, args,
-                       0, NULL TSRMLS_CC);
+                       0, NULL );
 
        if (call_result == SUCCESS && (Z_TYPE(zretval) == IS_FALSE || Z_TYPE(zretval) == IS_TRUE)) {
                ret = (Z_TYPE(zretval) == IS_TRUE);
@@ -1199,7 +1199,7 @@ static int user_wrapper_mkdir(php_stream_wrapper *wrapper, const char *url, int
                        &zfuncname,
                        &zretval,
                        3, args,
-                       0, NULL TSRMLS_CC);
+                       0, NULL );
 
        if (call_result == SUCCESS && (Z_TYPE(zretval) == IS_FALSE || Z_TYPE(zretval) == IS_TRUE)) {
                ret = (Z_TYPE(zretval) == IS_TRUE);
@@ -1246,7 +1246,7 @@ static int user_wrapper_rmdir(php_stream_wrapper *wrapper, const char *url,
                        &zfuncname,
                        &zretval,
                        2, args,
-                       0, NULL TSRMLS_CC);
+                       0, NULL );
 
        if (call_result == SUCCESS && (Z_TYPE(zretval) == IS_FALSE || Z_TYPE(zretval) == IS_TRUE)) {
                ret = (Z_TYPE(zretval) == IS_TRUE);
@@ -1317,7 +1317,7 @@ static int user_wrapper_metadata(php_stream_wrapper *wrapper, const char *url, i
                        &zfuncname,
                        &zretval,
                        3, args,
-                       0, NULL TSRMLS_CC);
+                       0, NULL );
 
        if (call_result == SUCCESS && (Z_TYPE(zretval) == IS_FALSE || Z_TYPE(zretval) == IS_TRUE)) {
                ret = Z_TYPE(zretval) == IS_TRUE;
@@ -1365,7 +1365,7 @@ static int user_wrapper_stat_url(php_stream_wrapper *wrapper, const char *url, i
                        &zfuncname,
                        &zretval,
                        2, args,
-                       0, NULL TSRMLS_CC);
+                       0, NULL );
 
        if (call_result == SUCCESS && Z_TYPE(zretval) == IS_ARRAY) {
                /* We got the info we needed */
index 983f403c9dedd3f45b5996099eef244d09f37b8b..9fa2ae367eb7d23332243b99e1f715086838167f 100644 (file)
@@ -244,7 +244,7 @@ static int php_sockop_stat(php_stream *stream, php_stream_statbuf *ssb)
 
 static inline int sock_sendto(php_netstream_data_t *sock, const char *buf, size_t buflen, int flags,
                struct sockaddr *addr, socklen_t addrlen
-               TSRMLS_DC)
+               )
 {
        int ret;
        if (addr) {
@@ -262,7 +262,7 @@ static inline int sock_sendto(php_netstream_data_t *sock, const char *buf, size_
 static inline int sock_recvfrom(php_netstream_data_t *sock, char *buf, size_t buflen, int flags,
                zend_string **textaddr,
                struct sockaddr **addr, socklen_t *addrlen
-               TSRMLS_DC)
+               )
 {
        php_sockaddr_storage sa;
        socklen_t sl = sizeof(sa);
@@ -353,7 +353,7 @@ static int php_sockop_set_option(php_stream *stream, int option, int value, void
                                                        xparam->want_textaddr ? &xparam->outputs.textaddr : NULL,
                                                        xparam->want_addr ? &xparam->outputs.addr : NULL,
                                                        xparam->want_addr ? &xparam->outputs.addrlen : NULL
-                                                       TSRMLS_CC);
+                                                       );
                                        return PHP_STREAM_OPTION_RETURN_OK;
 
                                case STREAM_XPORT_OP_GET_PEER_NAME:
@@ -361,7 +361,7 @@ static int php_sockop_set_option(php_stream *stream, int option, int value, void
                                                        xparam->want_textaddr ? &xparam->outputs.textaddr : NULL,
                                                        xparam->want_addr ? &xparam->outputs.addr : NULL,
                                                        xparam->want_addr ? &xparam->outputs.addrlen : NULL
-                                                       TSRMLS_CC);
+                                                       );
                                        return PHP_STREAM_OPTION_RETURN_OK;
 
                                case STREAM_XPORT_OP_SEND:
@@ -396,7 +396,7 @@ static int php_sockop_set_option(php_stream *stream, int option, int value, void
                                                        xparam->want_textaddr ? &xparam->outputs.textaddr : NULL,
                                                        xparam->want_addr ? &xparam->outputs.addr : NULL,
                                                        xparam->want_addr ? &xparam->outputs.addrlen : NULL
-                                                       TSRMLS_CC);
+                                                       );
                                        return PHP_STREAM_OPTION_RETURN_OK;
 
 
@@ -647,7 +647,7 @@ static inline int php_tcp_sockop_bind(php_stream *stream, php_netstream_data_t *
                        sockopts,
                        xparam->want_errortext ? &xparam->outputs.error_text : NULL,
                        &err
-                       TSRMLS_CC);
+                       );
        
        if (host) {
                efree(host);
@@ -733,7 +733,7 @@ static inline int php_tcp_sockop_connect(php_stream *stream, php_netstream_data_
                        bindto,
                        bindport,
                        sockopts
-                       TSRMLS_CC);
+                       );
        
        ret = sock->socket == -1 ? -1 : 0;
        xparam->outputs.error_code = err;
@@ -771,7 +771,7 @@ static inline int php_tcp_sockop_accept(php_stream *stream, php_netstream_data_t
                        xparam->inputs.timeout,
                        xparam->want_errortext ? &xparam->outputs.error_text : NULL,
                        &xparam->outputs.error_code
-                       TSRMLS_CC);
+                       );
 
        if (clisock >= 0) {
                php_netstream_data_t *clisockdata;
index 9589c3644bc9a72627ba1aa2517f82ace95aea24..41b0c671d1a8d547dbb301924645fb7eb9c9ad22 100644 (file)
@@ -169,7 +169,7 @@ PHPDBG_API void phpdbg_param_debug(const phpdbg_param_t *param, const char *msg)
 
 #define PHPDBG_COMMAND(name) int phpdbg_do_##name(const phpdbg_param_t *param)
 
-#define PHPDBG_COMMAND_ARGS param TSRMLS_CC
+#define PHPDBG_COMMAND_ARGS param
 
 #define PHPDBG_END_COMMAND {NULL, 0, NULL, 0, '\0', NULL, NULL, NULL, NULL, 0}
 
index 4fad1cff96c68ddd2f551d800a289820e238b6ab..fefde149e3bd65a63316662dc8656f7b71b5635a 100644 (file)
@@ -180,7 +180,7 @@ static int get_command(
        const char *key, size_t len,      /* pointer and length of key */
        phpdbg_command_t const **command, /* address of first matching command  */
        phpdbg_command_t const * commands /* command table to be scanned */
-       TSRMLS_DC)
+       )
 {
        const phpdbg_command_t *c;
        unsigned int num_matches = 0;
index 54f4fc7e72cf5a4761673262488e3d1c2a06b21a..76dfc393b897f55a497a00c6cec4f45e2100ab3e 100644 (file)
@@ -39,7 +39,6 @@ void phpdbg_init_lexer (phpdbg_param_t *stack, char *input) {
 }
 
 int phpdbg_lex (phpdbg_param_t* yylval) {
-       TSRMLS_FETCH(); /* Slow, but this is not a major problem here. TODO: Use TSRMLS_DC */
 
 restart:
        LEX(text) = YYCURSOR;
index de0f9f1999808c6c1f9ed5d67479997dc923e2fe..45d7c27fa591f2349b833c95bc39b6065c1556fb 100644 (file)
@@ -37,7 +37,6 @@ void phpdbg_init_lexer (phpdbg_param_t *stack, char *input) {
 }
 
 int phpdbg_lex (phpdbg_param_t* yylval) {
-       TSRMLS_FETCH(); /* Slow, but this is not a major problem here. TODO: Use TSRMLS_DC */
 
 restart:
        LEX(text) = YYCURSOR;
index 8caa71caadfa6eafa5dc3fd6d7a761c40010e7cb..adb01f6d54d118fa231c9ea9c97e446a68c0186b 100644 (file)
@@ -525,7 +525,7 @@ int phpdbg_watchpoint_segfault_handler(siginfo_t *info, void *context) {
 #else
                info->si_addr
 #endif
-               TSRMLS_CC);
+               );
 
        if (watch == NULL) {
                return FAILURE;
index db9b1c53060aaa70043920b01b1f4f0437844dc4..3d2e24b3d66dd0d9c288c2e4056d868ba4f90247 100644 (file)
@@ -354,7 +354,7 @@ static int php_thttpd_startup(sapi_module_struct *sapi_module)
 #if PHP_API_VERSION >= 20020918
        if (php_module_startup(sapi_module, &php_thttpd_module, 1) == FAILURE) {
 #else
-       /* No TSRMLS_CC here to zend_startup_module() as 5.6 and older does not have that parameter */
+       /* No here to zend_startup_module() as 5.6 and older does not have that parameter */
        if (php_module_startup(sapi_module) == FAILURE
                        || zend_startup_module(&php_thttpd_module) == FAILURE) {
 #endif