]> granicus.if.org Git - php/commitdiff
- Missing fixes for bug #54247
authorFelipe Pena <felipe@php.net>
Mon, 14 Mar 2011 14:12:42 +0000 (14:12 +0000)
committerFelipe Pena <felipe@php.net>
Mon, 14 Mar 2011 14:12:42 +0000 (14:12 +0000)
ext/phar/phar_object.c

index 3e98538f943ca9ad9cbddfda2fe299c9dac04a79..c54f3312e6d5f80b8598d3b64ae10856cf105588 100644 (file)
@@ -307,7 +307,7 @@ static int phar_file_action(phar_archive_data *phar, phar_entry_info *info, char
                                char *error;
                                if (!phar_open_jit(phar, info, &error TSRMLS_CC)) {
                                        if (error) {
-                                               zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, error);
+                                               zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "%s", error);
                                                efree(error);
                                        }
                                        return -1;
@@ -673,7 +673,7 @@ PHP_METHOD(Phar, webPhar)
 
        if (phar_open_executed_filename(alias, alias_len, &error TSRMLS_CC) != SUCCESS) {
                if (error) {
-                       zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, error);
+                       zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "%s", error);
                        efree(error);
                }
                return;
@@ -1095,7 +1095,7 @@ PHP_METHOD(Phar, createDefaultStub)
        stub = phar_create_default_stub(index, webindex, &stub_len, &error TSRMLS_CC);
 
        if (error) {
-               zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, error);
+               zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "%s", error);
                efree(error);
                return;
        }
@@ -1120,7 +1120,7 @@ PHP_METHOD(Phar, mapPhar)
        RETVAL_BOOL(phar_open_executed_filename(alias, alias_len, &error TSRMLS_CC) == SUCCESS);
 
        if (error) {
-               zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, error);
+               zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "%s", error);
                efree(error);
        }
 } /* }}} */