com php-src: almost all the replacements of TSRMLS_* are done: ext/calendar/calendar.c ext/com_dotnet/com_pe rsist.c ext/com_dotnet/com_wrapper.c
ext/intl/forma tter/formatter_class.c ext/mysqlnd/mysqlnd.c ext/sess ion/php_session.h

From: Date: Sun, 14 Dec 2014 13:22:42 +0000
Subject: com php-src: almost all the replacements of TSRMLS_* are done: ext/calendar/calendar.c ext/com_dotnet/com_pe rsist.c ext/com_dotnet/com_wrapper.c
ext/intl/forma tter/formatter_class.c ext/mysqlnd/mysqlnd.c ext/sess ion/php_session.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-83708@lists.php.net to get a copy of this message
Commit: 7b6ed8db2fa1574cffabde7a8bc9fdc277304528 Author: Anatol Belski <ab@php.net> Sun, 14 Dec 2014 14:22:42 +0100 Parents: e112f6a04e0cddc6276c426c09c0249201878f5a Branches: native-tls Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7b6ed8db2fa1574cffabde7a8bc9fdc277304528 Log: almost all the replacements of TSRMLS_* are done Some places have to be yet touched as they use different/custom macros namings for the same. Also some places in the code became redundant now, this is the next task. To name some: ext/mysqlnd, sapi/embed, ext/curl and some smaller places here and there. Changed paths: M ext/calendar/calendar.c M ext/com_dotnet/com_persist.c M ext/com_dotnet/com_wrapper.c M ext/intl/formatter/formatter_class.c M ext/mysqlnd/mysqlnd.c M ext/session/php_session.h Diff: diff --git a/ext/calendar/calendar.c b/ext/calendar/calendar.c index 3de1202..0f94b08 100644 --- a/ext/calendar/calendar.c +++ b/ext/calendar/calendar.c @@ -392,7 +392,7 @@ PHP_FUNCTION(cal_from_jd) char date[16]; struct cal_entry_t *calendar; - if (zend_parse_parameters(ZEND_NUM_ARGS()TSRMLS_CC, "ll", &jd, &cal) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS(), "ll", &jd, &cal) == FAILURE) { RETURN_FALSE; } diff --git a/ext/com_dotnet/com_persist.c b/ext/com_dotnet/com_persist.c index eec1389..187b50b 100644 --- a/ext/com_dotnet/com_persist.c +++ b/ext/com_dotnet/com_persist.c @@ -55,7 +55,6 @@ static void istream_dtor(zend_resource *rsrc) #define FETCH_STM() \ php_istream *stm = (php_istream*)This; \ - TSRMLS_FETCH(); \ if (GetCurrentThreadId() != stm->engine_thread) \ return RPC_E_WRONG_THREAD; diff --git a/ext/com_dotnet/com_wrapper.c b/ext/com_dotnet/com_wrapper.c index aa1c21c..f1d08c1 100644 --- a/ext/com_dotnet/com_wrapper.c +++ b/ext/com_dotnet/com_wrapper.c @@ -88,7 +88,6 @@ static inline void trace(char *fmt, ...) #define FETCH_DISP(methname) \ php_dispatchex *disp = (php_dispatchex*)This; \ - TSRMLS_FETCH(); \ if (COMG(rshutdown_started)) { \ trace(" PHP Object:%p (name:unknown) %s\n", Z_OBJ(disp->object), methname); \ } else { \ diff --git a/ext/intl/formatter/formatter_class.c b/ext/intl/formatter/formatter_class.c index aa8844c..935c51a 100644 --- a/ext/intl/formatter/formatter_class.c +++ b/ext/intl/formatter/formatter_class.c @@ -34,9 +34,7 @@ static zend_object_handlers NumberFormatter_handlers; */ /* {{{ NumberFormatter_objects_dtor */ -static void NumberFormatter_object_dtor( - zend_object *object - TSRMLS_DC ) +static void NumberFormatter_object_dtor(zend_object *object) { zend_objects_destroy_object( object ); } diff --git a/ext/mysqlnd/mysqlnd.c b/ext/mysqlnd/mysqlnd.c index 881c1ae..3da185a 100644 --- a/ext/mysqlnd/mysqlnd.c +++ b/ext/mysqlnd/mysqlnd.c @@ -440,9 +440,7 @@ mysqlnd_switch_to_ssl_if_needed( MYSQLND_CONN_DATA * conn, const MYSQLND_PACKET_GREET * const greet_packet, const MYSQLND_OPTIONS * const options, - zend_ulong mysql_flags - TSRMLS_DC - ) + zend_ulong mysql_flags) { enum_func_status ret = FAIL; const MYSQLND_CHARSET * charset; diff --git a/ext/session/php_session.h b/ext/session/php_session.h index 44c03e9...f47938c 100644 --- a/ext/session/php_session.h +++ b/ext/session/php_session.h @@ -197,7 +197,7 @@ ZEND_TSRMLS_CACHE_EXTERN; #define PS(v) (ps_globals.v) #endif -#define PS_SERIALIZER_ENCODE_ARGS TSRMLS_D +#define PS_SERIALIZER_ENCODE_ARGS void #define PS_SERIALIZER_DECODE_ARGS const char *val, int vallen typedef struct ps_serializer_struct {

« previous php.cvs (#83708) next »