]> granicus.if.org Git - php/commitdiff
remove TSRMLS_*
authorAnatol Belski <ab@php.net>
Sun, 2 Aug 2015 11:42:01 +0000 (13:42 +0200)
committerAnatol Belski <ab@php.net>
Sun, 2 Aug 2015 11:42:01 +0000 (13:42 +0200)
either remains or merged in from PHP5

ext/dom/document.c
ext/fileinfo/fileinfo.c
ext/hash/hash.c
ext/mysqlnd/mysqlnd.c
ext/openssl/xp_ssl.c
ext/pgsql/pgsql.c
ext/standard/mail.c
ext/standard/pack.c
ext/zip/php_zip.c
ext/zip/zip_stream.c

index 001b47735486e95741b9c37944adcfe49b3c4bb0..2fde4dc39a646761d7c48abb52af1c1232603a3a 100644 (file)
@@ -1811,7 +1811,7 @@ static void _dom_document_schema_validate(INTERNAL_FUNCTION_PARAMETERS, int type
                        php_error_docref(NULL, E_WARNING, "Invalid Schema file source");
                        RETURN_FALSE;
                }
-               valid_file = _dom_get_valid_file_path(source, resolved_path, MAXPATHLEN  TSRMLS_CC);
+               valid_file = _dom_get_valid_file_path(source, resolved_path, MAXPATHLEN );
                if (!valid_file) {
                        php_error_docref(NULL, E_WARNING, "Invalid Schema file source");
                        RETURN_FALSE;
@@ -1911,7 +1911,7 @@ static void _dom_document_relaxNG_validate(INTERNAL_FUNCTION_PARAMETERS, int typ
                        php_error_docref(NULL, E_WARNING, "Invalid RelaxNG file source");
                        RETURN_FALSE;
                }
-               valid_file = _dom_get_valid_file_path(source, resolved_path, MAXPATHLEN  TSRMLS_CC);
+               valid_file = _dom_get_valid_file_path(source, resolved_path, MAXPATHLEN );
                if (!valid_file) {
                        php_error_docref(NULL, E_WARNING, "Invalid RelaxNG file source");
                        RETURN_FALSE;
index 8663372de332d2fcd9f4c27a849b9d996df7847b..3474a0a0aabf3ab385eda6cd953555ba58b7e6ac 100644 (file)
@@ -528,7 +528,7 @@ static void _php_finfo_get_type(INTERNAL_FUNCTION_PARAMETERS, int mode, int mime
                                goto clean;
                        }
                        if (CHECK_NULL_PATH(buffer, buffer_len)) {
-                               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid path");
+                               php_error_docref(NULL, E_WARNING, "Invalid path");
                                RETVAL_FALSE;
                                goto clean;
                        }
index 325c9b92302100fffb48043d5ceada663054cacd..abbe90c7509b43088b3474d8db133cf899f6f2bd 100644 (file)
@@ -137,7 +137,7 @@ static void php_hash_do_hash(INTERNAL_FUNCTION_PARAMETERS, int isfilename, zend_
        }
        if (isfilename) {
                if (CHECK_NULL_PATH(data, data_len)) {
-                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid path");
+                       php_error_docref(NULL, E_WARNING, "Invalid path");
                        RETURN_FALSE;
                }
                stream = php_stream_open_wrapper_ex(data, "rb", REPORT_ERRORS, NULL, DEFAULT_CONTEXT);
@@ -256,7 +256,7 @@ static void php_hash_do_hash_hmac(INTERNAL_FUNCTION_PARAMETERS, int isfilename,
        }
        if (isfilename) {
                if (CHECK_NULL_PATH(data, data_len)) {
-                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid path");
+                       php_error_docref(NULL, E_WARNING, "Invalid path");
                        RETURN_FALSE;
                }
                stream = php_stream_open_wrapper_ex(data, "rb", REPORT_ERRORS, NULL, DEFAULT_CONTEXT);
index 7595474475947fb7b13dda8bf980520f030d3007..d60a83c67dad74a83f233853a3cf79413e47ae6c 100644 (file)
@@ -518,7 +518,7 @@ end:
 
 close_conn:
        CONN_SET_STATE(conn, CONN_QUIT_SENT);
-       conn->m->send_close(conn TSRMLS_CC);
+       conn->m->send_close(conn);
        SET_CLIENT_ERROR(*conn->error_info, CR_SERVER_GONE_ERROR, UNKNOWN_SQLSTATE, mysqlnd_server_gone);
        PACKET_FREE(auth_packet);
        DBG_RETURN(ret);
index 41d6a0a8d156c6ea81a8b6ead49cd530b9ce6a2f..d05a925d0715f7e13c3baf88a38202bbbabe1940 100644 (file)
@@ -1946,7 +1946,7 @@ static size_t php_openssl_sockop_io(int read, php_stream *stream, char *buf, siz
                        timeout = &sslsock->s.timeout;
                }
 
-               if (timeout && php_set_sock_blocking(sslsock->s.socket, 0 TSRMLS_CC) == SUCCESS) {
+               if (timeout && php_set_sock_blocking(sslsock->s.socket, 0) == SUCCESS) {
                        sslsock->s.is_blocked = 0;
                }
 
index 888ae76cced520d063b3da0ee35acf32d0098a57..89615080d8aa66eb0133b452b0a9788601d8dd38 100644 (file)
@@ -5506,7 +5506,7 @@ PHP_PGSQL_API int php_pgsql_meta_data(PGconn *pg_link, const char *table_name, z
        tmp_name = php_strtok_r(src, ".", &tmp_name2);
        if (!tmp_name) {
                efree(src);
-               php_error_docref(NULL TSRMLS_CC, E_WARNING, "The table name must be specified");
+               php_error_docref(NULL, E_WARNING, "The table name must be specified");
                return FAILURE;
        }
        if (!tmp_name2 || !*tmp_name2) {
index 6e83b95fc320bb43afdfddb7bae5f534b596ef1e..dcc1e1153b6cf85026e4441b7bc01163987a0360 100644 (file)
@@ -331,7 +331,7 @@ PHPAPI int php_mail(char *to, char *subject, char *message, char *headers, char
        }
 
        if (hdr && php_mail_detect_multiple_crlf(hdr)) {
-               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Multiple or malformed newlines found in additional_header");
+               php_error_docref(NULL, E_WARNING, "Multiple or malformed newlines found in additional_header");
                MAIL_RET(0);
        }
 
index 4d4b8b31e7156c8a074b6cc4e37d989606c548b6..f46f8967e9f2bdbc6d5493de16a39ff97ae2eca6 100644 (file)
@@ -700,7 +700,7 @@ PHP_FUNCTION(unpack)
                }
 
                if (size != 0 && size != -1 && size < 0) {
-                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Type %c: integer overflow", type);
+                       php_error_docref(NULL, E_WARNING, "Type %c: integer overflow", type);
                        zval_dtor(return_value);
                        RETURN_FALSE;
                }
index 85bc51f152b01ab72ff4407906ec875cadea7334..672097dec5d59b22ab9ee9628978e7470b68c6ac 100644 (file)
@@ -2292,13 +2292,13 @@ static ZIPARCHIVE_METHOD(setCompressionName)
 
        ZIP_FROM_OBJECT(intern, this);
 
-       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sl|l",
+       if (zend_parse_parameters(ZEND_NUM_ARGS(), "sl|l",
                        &name, &name_len, &comp_method, &comp_flags) == FAILURE) {
                return;
        }
 
        if (name_len < 1) {
-               php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Empty string as entry name");
+               php_error_docref(NULL, E_NOTICE, "Empty string as entry name");
        }
 
        idx = zip_name_locate(intern, name, 0);
@@ -2329,7 +2329,7 @@ static ZIPARCHIVE_METHOD(setCompressionIndex)
 
        ZIP_FROM_OBJECT(intern, this);
 
-       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ll|l",
+       if (zend_parse_parameters(ZEND_NUM_ARGS(), "ll|l",
                        &index, &comp_method, &comp_flags) == FAILURE) {
                return;
        }
index 3ae3e34f1308e508126a51e7614c2363c5f8ae9a..e42c6a38c18904997ea8a0b60a19bd7fc4dc8105 100644 (file)
@@ -61,7 +61,7 @@ static size_t php_zip_ops_read(php_stream *stream, char *buf, size_t count)
                        zip_error_t *err;
                        err = zip_file_get_error(self->zf);
                        stream->eof = 1;
-                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Zip stream error: %s", zip_error_strerror(err));
+                       php_error_docref(NULL, E_WARNING, "Zip stream error: %s", zip_error_strerror(err));
                        zip_error_fini(err);
 #endif
                        return 0;