com php-src: Remove TSRMLS_* from code, they are not used anymore: ext/curl/interface.c ext/openssl/ openssl.c ext/phar/phar_object.c
ext/skeleton/create _stubs ext/spl/spl_directory.c ext/standard/iptc.c ext/zip/php_zip.c main/output.c
| From: | Stanislav Malyshev | Date: | Thu, 18 Feb 2016 06:44:05 +0000 |
| Subject: | com php-src: Remove TSRMLS_* from code, they are not used anymore: ext/curl/interface.c ext/openssl/ openssl.c ext/phar/phar_object.c ext/skeleton/create _stubs ext/spl/spl_directory.c ext/standard/iptc.c ext/zip/php_zip.c main/output.c |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91088@lists.php.net to get a copy of this message | ||
Commit: 9afb29aa68351aa96f8edca51900f04513e291c7
Author: Stanislav Malyshev <stas@php.net> Wed, 17 Feb 2016 22:44:05 -0800
Parents: cf842f1064edeaebc598e7d7071a4a7a039e5bc0
Branches: PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9afb29aa68351aa96f8edca51900f04513e291c7
Log:
Remove TSRMLS_* from code, they are not used anymore
Changed paths:
M ext/curl/interface.c
M ext/openssl/openssl.c
M ext/phar/phar_object.c
M ext/skeleton/create_stubs
M ext/spl/spl_directory.c
M ext/standard/iptc.c
M ext/zip/php_zip.c
M main/output.c
Diff:
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index 8b9a756..564d9fc 100644
--- a/ext/curl/interface.c
+++ b/ext/curl/interface.c
@@ -2189,7 +2189,7 @@ static int _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue) /*
{{{
#endif
# if defined(ZTS)
if (option == CURLOPT_DNS_USE_GLOBAL_CACHE) {
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "CURLOPT_DNS_USE_GLOBAL_CACHE cannot be
activated when thread safety is enabled");
+ php_error_docref(NULL, E_WARNING, "CURLOPT_DNS_USE_GLOBAL_CACHE cannot be activated when
thread safety is enabled");
return 1;
}
# endif
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c
index 464b0b8..4a096f7 100644
--- a/ext/openssl/openssl.c
+++ b/ext/openssl/openssl.c
@@ -4931,7 +4931,7 @@ PHP_FUNCTION(openssl_seal)
iv_len = EVP_CIPHER_iv_length(cipher);
if (!iv && iv_len > 0) {
- php_error_docref(NULL TSRMLS_CC, E_WARNING,
+ php_error_docref(NULL, E_WARNING,
"Cipher algorithm requires an IV to be supplied as a sixth parameter");
RETURN_FALSE;
}
diff --git a/ext/phar/phar_object.c b/ext/phar/phar_object.c
index 51b8b13..22404dd 100644
--- a/ext/phar/phar_object.c
+++ b/ext/phar/phar_object.c
@@ -4085,7 +4085,7 @@ static int phar_extract_file(zend_bool overwrite, phar_entry_info *entry, char
*
new_state.cwd[0] = DEFAULT_SLASH;
new_state.cwd[1] = '\0';
new_state.cwd_length = 1;
- if (virtual_file_ex(&new_state, entry->filename, NULL, CWD_EXPAND TSRMLS_CC) != 0 ||
+ if (virtual_file_ex(&new_state, entry->filename, NULL, CWD_EXPAND) != 0 ||
new_state.cwd_length <= 1) {
if (EINVAL == errno && entry->filename_len > 50) {
char *tmp = estrndup(entry->filename, 50);
diff --git a/ext/skeleton/create_stubs b/ext/skeleton/create_stubs
index 1163908..a3f3d19 100755
--- a/ext/skeleton/create_stubs
+++ b/ext/skeleton/create_stubs
@@ -195,7 +195,7 @@ END {
if (maxargs[i]>0) {
fetchargs = "\tif (zend_parse_parameters("
ints = ints "\tint argc = ZEND_NUM_ARGS();\n"
- fetchargs = fetchargs "argc TSRMLS_CC, " specs[i]
+ fetchargs = fetchargs "argc, " specs[i]
} else {
fetchargs = fetchargs "\tif (zend_parse_parameters_none() == FAILURE)
{\n\t\treturn;\n\t}"
xmlparams = xmlparams " <void/>\n"
diff --git a/ext/spl/spl_directory.c b/ext/spl/spl_directory.c
index b0ee3bc..412fc54 100644
--- a/ext/spl/spl_directory.c
+++ b/ext/spl/spl_directory.c
@@ -834,7 +834,7 @@ SPL_METHOD(DirectoryIterator, seek)
zval_ptr_dtor(&retval);
}
if (!valid) {
- zend_throw_exception_ex(spl_ce_OutOfBoundsException, 0 TSRMLS_CC, "Seek position %ld is out
of range", pos);
+ zend_throw_exception_ex(spl_ce_OutOfBoundsException, 0, "Seek position %ld is out of
range", pos);
return;
}
zend_call_method_with_0_params(&EX(This), Z_OBJCE(EX(This)), &intern->u.dir.func_next,
"next", NULL);
diff --git a/ext/standard/iptc.c b/ext/standard/iptc.c
index 480da22..7e5a898 100644
--- a/ext/standard/iptc.c
+++ b/ext/standard/iptc.c
@@ -206,7 +206,7 @@ PHP_FUNCTION(iptcembed)
}
if (iptcdata_len >= SIZE_MAX - sizeof(psheader) - 1025) {
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "IPTC data too large");
+ php_error_docref(NULL, E_WARNING, "IPTC data too large");
RETURN_FALSE;
}
diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c
index 83c14b5..6bb23ad 100644
--- a/ext/zip/php_zip.c
+++ b/ext/zip/php_zip.c
@@ -1506,7 +1506,7 @@ static ZIPARCHIVE_METHOD(close)
ze_obj = Z_ZIP_P(self);
if ((err = zip_close(intern))) {
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", zip_strerror(intern));
+ php_error_docref(NULL, E_WARNING, "%s", zip_strerror(intern));
zip_discard(intern);
}
diff --git a/main/output..c b/main/output.c
index 2154949..2a51100 100644
--- a/main/output.c
+++ b/main/output.c
@@ -665,7 +665,7 @@ PHPAPI int php_output_handler_alias_register(const char *name, size_t name_len,
}
/* }}} */
-/* {{{ SUCCESS|FAILURE php_output_handler_hook(php_output_handler_hook_t type, void *arg TSMRLS_DC)
+/* {{{ SUCCESS|FAILURE php_output_handler_hook(php_output_handler_hook_t type, void *arg)
* Output handler hook for output handler functions to check/modify the current handlers abilities
*/
PHPAPI int php_output_handler_hook(php_output_handler_hook_t type, void *arg)
{
@@ -715,7 +715,7 @@ PHPAPI void php_output_handler_dtor(php_output_handler *handler)
}
/* }}} */
-/* {{{ void php_output_handler_free(php_output_handler **handler TSMRLS_DC)
+/* {{{ void php_output_handler_free(php_output_handler **handler)
* Destroy and free an output handler */
PHPAPI void php_output_handler_free(php_output_handler **h)
{