diff options
author | Anatol Belski <ab@php.net> | 2014-12-13 23:06:14 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-12-13 23:06:14 +0100 |
commit | bdeb220f48825642f84cdbf3ff23a30613c92e86 (patch) | |
tree | 1a6cf34d20420e4815b4becb21311a4457d84103 /ext/mysqli/mysqli_prop.c | |
parent | bb66f385d09e7e55390e9f57fcbca08f6b43ff91 (diff) | |
download | php-git-bdeb220f48825642f84cdbf3ff23a30613c92e86.tar.gz |
first shot remove TSRMLS_* things
Diffstat (limited to 'ext/mysqli/mysqli_prop.c')
-rw-r--r-- | ext/mysqli/mysqli_prop.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/ext/mysqli/mysqli_prop.c b/ext/mysqli/mysqli_prop.c index 1354e0db93..e4377ff273 100644 --- a/ext/mysqli/mysqli_prop.c +++ b/ext/mysqli/mysqli_prop.c @@ -33,7 +33,7 @@ #define CHECK_STATUS(value) \ if (!obj->ptr || ((MYSQLI_RESOURCE *)obj->ptr)->status < value ) { \ - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Property access is not allowed yet"); \ + php_error_docref(NULL, E_WARNING, "Property access is not allowed yet"); \ ZVAL_NULL(retval); \ return retval; \ } \ @@ -41,7 +41,7 @@ #define MYSQLI_GET_MYSQL(statusval) \ MYSQL *p; \ if (!obj->ptr || !(MY_MYSQL *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr) { \ - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Couldn't fetch %s", obj->zo.ce->name->val);\ + php_error_docref(NULL, E_WARNING, "Couldn't fetch %s", obj->zo.ce->name->val);\ ZVAL_NULL(retval);\ return retval; \ } else { \ @@ -52,7 +52,7 @@ if (!obj->ptr || !(MY_MYSQL *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr) { \ #define MYSQLI_GET_RESULT(statusval) \ MYSQL_RES *p; \ if (!obj->ptr) { \ - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Couldn't fetch %s", obj->zo.ce->name->val);\ + php_error_docref(NULL, E_WARNING, "Couldn't fetch %s", obj->zo.ce->name->val);\ ZVAL_NULL(retval);\ return retval; \ } else { \ @@ -64,7 +64,7 @@ if (!obj->ptr) { \ #define MYSQLI_GET_STMT(statusval) \ MYSQL_STMT *p; \ if (!obj->ptr) { \ - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Couldn't fetch %s", obj->zo.ce->name->val);\ + php_error_docref(NULL, E_WARNING, "Couldn't fetch %s", obj->zo.ce->name->val);\ ZVAL_NULL(retval);\ return retval; \ } else { \ @@ -73,7 +73,7 @@ if (!obj->ptr) { \ } #define MYSQLI_MAP_PROPERTY_FUNC_LONG( __func, __int_func, __get_type, __ret_type, __ret_type_sprint_mod)\ -static zval *__func(mysqli_object *obj, zval *retval TSRMLS_DC) \ +static zval *__func(mysqli_object *obj, zval *retval) \ {\ __ret_type l;\ __get_type;\ @@ -91,7 +91,7 @@ static zval *__func(mysqli_object *obj, zval *retval TSRMLS_DC) \ } #define MYSQLI_MAP_PROPERTY_FUNC_STRING(__func, __int_func, __get_type)\ -static zval *__func(mysqli_object *obj, zval *retval TSRMLS_DC)\ +static zval *__func(mysqli_object *obj, zval *retval)\ {\ char *c;\ __get_type;\ @@ -109,7 +109,7 @@ static zval *__func(mysqli_object *obj, zval *retval TSRMLS_DC)\ } /* {{{ property link_client_version_read */ -static zval *link_client_version_read(mysqli_object *obj, zval *retval TSRMLS_DC) +static zval *link_client_version_read(mysqli_object *obj, zval *retval) { ZVAL_LONG(retval, MYSQL_VERSION_ID); return retval; @@ -117,7 +117,7 @@ static zval *link_client_version_read(mysqli_object *obj, zval *retval TSRMLS_DC /* }}} */ /* {{{ property link_client_info_read */ -static zval *link_client_info_read(mysqli_object *obj, zval *retval TSRMLS_DC) +static zval *link_client_info_read(mysqli_object *obj, zval *retval) { CHECK_STATUS(MYSQLI_STATUS_INITIALIZED); ZVAL_STRING(retval, MYSQL_SERVER_VERSION); @@ -126,7 +126,7 @@ static zval *link_client_info_read(mysqli_object *obj, zval *retval TSRMLS_DC) /* }}} */ /* {{{ property link_connect_errno_read */ -static zval *link_connect_errno_read(mysqli_object *obj, zval *retval TSRMLS_DC) +static zval *link_connect_errno_read(mysqli_object *obj, zval *retval) { ZVAL_LONG(retval, (zend_long)MyG(error_no)); return retval; @@ -134,7 +134,7 @@ static zval *link_connect_errno_read(mysqli_object *obj, zval *retval TSRMLS_DC) /* }}} */ /* {{{ property link_connect_error_read */ -static zval *link_connect_error_read(mysqli_object *obj, zval *retval TSRMLS_DC) +static zval *link_connect_error_read(mysqli_object *obj, zval *retval) { if (MyG(error_msg)) { ZVAL_STRING(retval, MyG(error_msg)); @@ -146,7 +146,7 @@ static zval *link_connect_error_read(mysqli_object *obj, zval *retval TSRMLS_DC) /* }}} */ /* {{{ property link_affected_rows_read */ -static zval *link_affected_rows_read(mysqli_object *obj, zval *retval TSRMLS_DC) +static zval *link_affected_rows_read(mysqli_object *obj, zval *retval) { MY_MYSQL *mysql; my_ulonglong rc; @@ -178,7 +178,7 @@ static zval *link_affected_rows_read(mysqli_object *obj, zval *retval TSRMLS_DC) /* }}} */ /* {{{ property link_error_list_read */ -static zval *link_error_list_read(mysqli_object *obj, zval *retval TSRMLS_DC) +static zval *link_error_list_read(mysqli_object *obj, zval *retval) { MY_MYSQL *mysql; @@ -235,7 +235,7 @@ MYSQLI_MAP_PROPERTY_FUNC_LONG(link_thread_id_read, mysql_thread_id, MYSQLI_GET_M MYSQLI_MAP_PROPERTY_FUNC_LONG(link_warning_count_read, mysql_warning_count, MYSQLI_GET_MYSQL(MYSQLI_STATUS_VALID), zend_ulong, ZEND_ULONG_FMT) /* {{{ property link_stat_read */ -static zval *link_stat_read(mysqli_object *obj, zval *retval TSRMLS_DC) +static zval *link_stat_read(mysqli_object *obj, zval *retval) { MY_MYSQL *mysql; @@ -269,7 +269,7 @@ static zval *link_stat_read(mysqli_object *obj, zval *retval TSRMLS_DC) /* result properties */ /* {{{ property result_type_read */ -static zval *result_type_read(mysqli_object *obj, zval *retval TSRMLS_DC) +static zval *result_type_read(mysqli_object *obj, zval *retval) { MYSQL_RES *p; @@ -286,7 +286,7 @@ static zval *result_type_read(mysqli_object *obj, zval *retval TSRMLS_DC) /* }}} */ /* {{{ property result_lengths_read */ -static zval *result_lengths_read(mysqli_object *obj, zval *retval TSRMLS_DC) +static zval *result_lengths_read(mysqli_object *obj, zval *retval) { MYSQL_RES *p; zend_ulong *ret; @@ -317,7 +317,7 @@ MYSQLI_MAP_PROPERTY_FUNC_LONG(result_num_rows_read, mysql_num_rows, MYSQLI_GET_R /* statement properties */ /* {{{ property stmt_id_read */ -static zval *stmt_id_read(mysqli_object *obj, zval *retval TSRMLS_DC) +static zval *stmt_id_read(mysqli_object *obj, zval *retval) { MY_STMT *p; @@ -335,7 +335,7 @@ static zval *stmt_id_read(mysqli_object *obj, zval *retval TSRMLS_DC) /* }}} */ /* {{{ property stmt_affected_rows_read */ -static zval *stmt_affected_rows_read(mysqli_object *obj, zval *retval TSRMLS_DC) +static zval *stmt_affected_rows_read(mysqli_object *obj, zval *retval) { MY_STMT *p; my_ulonglong rc; @@ -365,7 +365,7 @@ static zval *stmt_affected_rows_read(mysqli_object *obj, zval *retval TSRMLS_DC) /* }}} */ /* {{{ property stmt_error_list_read */ -static zval *stmt_error_list_read(mysqli_object *obj, zval *retval TSRMLS_DC) +static zval *stmt_error_list_read(mysqli_object *obj, zval *retval) { MY_STMT * stmt; |