]> granicus.if.org Git - php/commitdiff
Use strpprintf
authorXinchen Hui <laruence@php.net>
Thu, 5 Mar 2015 04:40:09 +0000 (12:40 +0800)
committerXinchen Hui <laruence@php.net>
Thu, 5 Mar 2015 04:40:09 +0000 (12:40 +0800)
ext/phar/stream.c
ext/phar/util.c

index e05b1663c275b100bf9d437bc9d73180267d81b5..af18fe0287c20e647ee5f55ec5135c651fcc1628 100644 (file)
@@ -231,7 +231,7 @@ static php_stream * phar_wrapper_open_url(php_stream_wrapper *wrapper, const cha
                        }
                }
                if (opened_path) {
-                       *opened_path = zend_strpprintf(MAXPATHLEN, "phar://%s/%s", idata->phar->fname, idata->internal_file->filename);
+                       *opened_path = strpprintf(MAXPATHLEN, "phar://%s/%s", idata->phar->fname, idata->internal_file->filename);
                }
                return fpf;
        } else {
@@ -249,7 +249,7 @@ static php_stream * phar_wrapper_open_url(php_stream_wrapper *wrapper, const cha
                                }
                                efree(internal_file);
                                if (opened_path) {
-                                       *opened_path = zend_strpprintf(MAXPATHLEN, "%s", phar->fname);
+                                       *opened_path = strpprintf(MAXPATHLEN, "%s", phar->fname);
                                }
                                php_url_free(resource);
                                goto phar_stub;
@@ -275,7 +275,7 @@ static php_stream * phar_wrapper_open_url(php_stream_wrapper *wrapper, const cha
                                ++(entry->fp_refcount);
                                php_url_free(resource);
                                if (opened_path) {
-                                       *opened_path = zend_strpprintf(MAXPATHLEN, "%s", phar->fname);
+                                       *opened_path = strpprintf(MAXPATHLEN, "%s", phar->fname);
                                }
                                efree(internal_file);
                                goto phar_stub;
@@ -332,7 +332,7 @@ idata_error:
                }
        }
        if (opened_path) {
-               *opened_path = zend_strpprintf(MAXPATHLEN, "phar://%s/%s", idata->phar->fname, idata->internal_file->filename);
+               *opened_path = strpprintf(MAXPATHLEN, "phar://%s/%s", idata->phar->fname, idata->internal_file->filename);
        }
        efree(internal_file);
 phar_stub:
index 190f69cf610b76e537f6bbab185d1b098dab135a..f769b012e4acb424ae0e0f6c6631baa4cb9b69b8 100644 (file)
@@ -300,14 +300,14 @@ splitted:
 
                if (*test == '/') {
                        if (zend_hash_str_exists(&(phar->manifest), test + 1, try_len - 1)) {
-                               ret = zend_strpprintf(0, "phar://%s%s", arch, test);
+                               ret = strpprintf(0, "phar://%s%s", arch, test);
                                efree(arch);
                                efree(test);
                                return ret;
                        }
                } else {
                        if (zend_hash_str_exists(&(phar->manifest), test, try_len)) {
-                               ret = zend_strpprintf(0, "phar://%s/%s", arch, test);
+                               ret = strpprintf(0, "phar://%s/%s", arch, test);
                                efree(arch);
                                efree(test);
                                return ret;