]> granicus.if.org Git - php/commitdiff
Revert "Fixed incompatible pointer type"
authorXinchen Hui <laruence@php.net>
Thu, 28 Aug 2014 06:56:25 +0000 (14:56 +0800)
committerXinchen Hui <laruence@php.net>
Thu, 28 Aug 2014 06:56:25 +0000 (14:56 +0800)
This reverts commit 007406c775b527a334a0964a624810afeb599ed5.

ext/phar/phar_object.c

index ec4c288368203a5364e7164943f3320ca448baf0..0ce1c3f5691c8930a65448b5ce6298971a539b12 100755 (executable)
@@ -3420,7 +3420,7 @@ PHP_METHOD(Phar, copy)
                }
        }
 
-       if (phar_path_check(&newfile, (int *) &newfile_len, &pcr_error) > pcr_is_ok) {
+       if (phar_path_check(&newfile, &newfile_len, &pcr_error) > pcr_is_ok) {
                zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC,
                                "file \"%s\" contains invalid characters %s, cannot be copied from \"%s\" in phar %s", newfile, pcr_error, oldfile, phar_obj->archive->fname);
                RETURN_FALSE;