Lines Matching refs:archive
1164 if (phar_obj->arc.archive) { in PHP_METHOD()
1238 phar_obj->arc.archive = phar_data; in PHP_METHOD()
1257 phar_obj->arc.archive->is_data = is_data; in PHP_METHOD()
1260 …R_GLOBALS->phar_persist_map, (const char *) phar_obj->arc.archive, sizeof(phar_obj->arc.archive), … in PHP_METHOD()
1387 if (!phar_obj->arc.archive) { \
1400 if (phar_obj->arc.archive && phar_obj->arc.archive->is_persistent) { in PHP_METHOD()
1401 …AR_GLOBALS->phar_persist_map, (const char *) phar_obj->arc.archive, sizeof(phar_obj->arc.archive)); in PHP_METHOD()
1674 …if (!(data = phar_get_or_create_entry_data(phar_obj->arc.archive->fname, phar_obj->arc.archive->fn… in phar_build()
1751 if (PHAR_G(readonly) && !phar_obj->arc.archive->is_data) { in PHP_METHOD()
1765 …ion, 0 TSRMLS_CC, "Unable to instantiate directory iterator for %s", phar_obj->arc.archive->fname); in PHP_METHOD()
1787 …ion, 0 TSRMLS_CC, "Unable to instantiate directory iterator for %s", phar_obj->arc.archive->fname); in PHP_METHOD()
1809 …ception, 0 TSRMLS_CC, "Unable to instantiate regex iterator for %s", phar_obj->arc.archive->fname); in PHP_METHOD()
1830 …ception, 0 TSRMLS_CC, "phar \"%s\" unable to create temporary file", phar_obj->arc.archive->fname); in PHP_METHOD()
1834 …if (phar_obj->arc.archive->is_persistent && FAILURE == phar_copy_on_write(&(phar_obj->arc.archive)… in PHP_METHOD()
1840 …, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar_obj->arc.archive->fname); in PHP_METHOD()
1851 phar_obj->arc.archive->ufp = pass.fp; in PHP_METHOD()
1852 phar_flush(phar_obj->arc.archive, 0, 0, 0, &error TSRMLS_CC); in PHP_METHOD()
1889 if (PHAR_G(readonly) && !phar_obj->arc.archive->is_data) { in PHP_METHOD()
1899 …if (phar_obj->arc.archive->is_persistent && FAILURE == phar_copy_on_write(&(phar_obj->arc.archive)… in PHP_METHOD()
1900 …, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar_obj->arc.archive->fname); in PHP_METHOD()
1914 …eption, 0 TSRMLS_CC, "phar \"%s\": unable to create temporary file", phar_obj->arc.archive->fname); in PHP_METHOD()
1919 phar_obj->arc.archive->ufp = pass.fp; in PHP_METHOD()
1920 phar_flush(phar_obj->arc.archive, 0, 0, 0, &error TSRMLS_CC); in PHP_METHOD()
1944 RETURN_LONG(zend_hash_num_elements(&phar_obj->arc.archive->manifest)); in PHP_METHOD()
1963 RETURN_BOOL(phar_obj->arc.archive->is_tar); in PHP_METHOD()
1965 RETURN_BOOL(phar_obj->arc.archive->is_zip); in PHP_METHOD()
1967 RETURN_BOOL(!phar_obj->arc.archive->is_tar && !phar_obj->arc.archive->is_zip); in PHP_METHOD()
2386 if (phar_obj->arc.archive->is_tar) { in PHP_METHOD()
2388 } else if (phar_obj->arc.archive->is_zip) { in PHP_METHOD()
2406 flags = phar_obj->arc.archive->flags & PHAR_FILE_COMPRESSION_MASK; in PHP_METHOD()
2447 is_data = phar_obj->arc.archive->is_data; in PHP_METHOD()
2448 phar_obj->arc.archive->is_data = 0; in PHP_METHOD()
2449 ret = phar_convert_to_other(phar_obj->arc.archive, format, ext, flags TSRMLS_CC); in PHP_METHOD()
2450 phar_obj->arc.archive->is_data = is_data; in PHP_METHOD()
2483 if (phar_obj->arc.archive->is_tar) { in PHP_METHOD()
2485 } else if (phar_obj->arc.archive->is_zip) { in PHP_METHOD()
2508 flags = phar_obj->arc.archive->flags & PHAR_FILE_COMPRESSION_MASK; in PHP_METHOD()
2549 is_data = phar_obj->arc.archive->is_data; in PHP_METHOD()
2550 phar_obj->arc.archive->is_data = 1; in PHP_METHOD()
2551 ret = phar_convert_to_other(phar_obj->arc.archive, format, ext, flags TSRMLS_CC); in PHP_METHOD()
2552 phar_obj->arc.archive->is_data = is_data; in PHP_METHOD()
2574 if (phar_obj->arc.archive->flags & PHAR_FILE_COMPRESSED_GZ) { in PHP_METHOD()
2578 if (phar_obj->arc.archive->flags & PHAR_FILE_COMPRESSED_BZ2) { in PHP_METHOD()
2598 if (!phar_obj->arc.archive->is_writeable) { in PHP_METHOD()
2602 if (SUCCESS != php_stream_stat_path(phar_obj->arc.archive->fname, &ssb)) { in PHP_METHOD()
2603 if (phar_obj->arc.archive->is_brandnew) { in PHP_METHOD()
2625 if (PHAR_G(readonly) && !phar_obj->arc.archive->is_data) { in PHP_METHOD()
2635 …if (phar_obj->arc.archive->is_persistent && FAILURE == phar_copy_on_write(&(phar_obj->arc.archive)… in PHP_METHOD()
2636 …, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar_obj->arc.archive->fname); in PHP_METHOD()
2639 if (zend_hash_exists(&phar_obj->arc.archive->manifest, fname, (uint) fname_len)) { in PHP_METHOD()
2640 …if (SUCCESS == zend_hash_find(&phar_obj->arc.archive->manifest, fname, (uint) fname_len, (void**)&… in PHP_METHOD()
2647 phar_obj->arc.archive->is_modified = 1; in PHP_METHOD()
2655 phar_flush(phar_obj->arc.archive, NULL, 0, 0, &error TSRMLS_CC); in PHP_METHOD()
2676 if (phar_obj->arc.archive->alias && phar_obj->arc.archive->alias != phar_obj->arc.archive->fname) { in PHP_METHOD()
2677 RETURN_STRINGL(phar_obj->arc.archive->alias, phar_obj->arc.archive->alias_len, 1); in PHP_METHOD()
2693 RETURN_STRINGL(phar_obj->arc.archive->fname, phar_obj->arc.archive->fname_len, 1); in PHP_METHOD()
2709 if (PHAR_G(readonly) && !phar_obj->arc.archive->is_data) { in PHP_METHOD()
2719 if (phar_obj->arc.archive->is_data) { in PHP_METHOD()
2720 if (phar_obj->arc.archive->is_tar) { in PHP_METHOD()
2731 …if (alias_len == phar_obj->arc.archive->alias_len && memcmp(phar_obj->arc.archive->alias, alias, a… in PHP_METHOD()
2746 "Invalid alias \"%s\" specified for phar \"%s\"", alias, phar_obj->arc.archive->fname); in PHP_METHOD()
2750 …if (phar_obj->arc.archive->is_persistent && FAILURE == phar_copy_on_write(&(phar_obj->arc.archive)… in PHP_METHOD()
2751 …, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar_obj->arc.archive->fname); in PHP_METHOD()
2754 …_obj->arc.archive->alias_len && SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_alias_map), phar_ob… in PHP_METHOD()
2755 …d_hash_del(&(PHAR_GLOBALS->phar_alias_map), phar_obj->arc.archive->alias, phar_obj->arc.archive->a… in PHP_METHOD()
2759 oldalias = phar_obj->arc.archive->alias; in PHP_METHOD()
2760 oldalias_len = phar_obj->arc.archive->alias_len; in PHP_METHOD()
2761 old_temp = phar_obj->arc.archive->is_temporary_alias; in PHP_METHOD()
2764 phar_obj->arc.archive->alias = estrndup(alias, alias_len); in PHP_METHOD()
2766 phar_obj->arc.archive->alias = NULL; in PHP_METHOD()
2769 phar_obj->arc.archive->alias_len = alias_len; in PHP_METHOD()
2770 phar_obj->arc.archive->is_temporary_alias = 0; in PHP_METHOD()
2771 phar_flush(phar_obj->arc.archive, NULL, 0, 0, &error TSRMLS_CC); in PHP_METHOD()
2774 phar_obj->arc.archive->alias = oldalias; in PHP_METHOD()
2775 phar_obj->arc.archive->alias_len = oldalias_len; in PHP_METHOD()
2776 phar_obj->arc.archive->is_temporary_alias = old_temp; in PHP_METHOD()
2779 …GLOBALS->phar_alias_map), oldalias, oldalias_len, (void*)&(phar_obj->arc.archive), sizeof(phar_arc… in PHP_METHOD()
2785 …zend_hash_add(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, (void*)&(phar_obj->arc.archive), … in PHP_METHOD()
2809 RETURN_STRING(phar_obj->arc.archive->version, 1); in PHP_METHOD()
2824 phar_obj->arc.archive->donotflush = 1; in PHP_METHOD()
2839 RETURN_BOOL(phar_obj->arc.archive->donotflush); in PHP_METHOD()
2856 if (PHAR_G(readonly) && !phar_obj->arc.archive->is_data) { in PHP_METHOD()
2862 phar_obj->arc.archive->donotflush = 0; in PHP_METHOD()
2863 phar_flush(phar_obj->arc.archive, 0, 0, 0, &error TSRMLS_CC); in PHP_METHOD()
2885 if (PHAR_G(readonly) && !phar_obj->arc.archive->is_data) { in PHP_METHOD()
2891 if (phar_obj->arc.archive->is_data) { in PHP_METHOD()
2892 if (phar_obj->arc.archive->is_tar) { in PHP_METHOD()
2909 …if (phar_obj->arc.archive->is_persistent && FAILURE == phar_copy_on_write(&(phar_obj->arc.archive)… in PHP_METHOD()
2910 …, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar_obj->arc.archive->fname); in PHP_METHOD()
2913 phar_flush(phar_obj->arc.archive, (char *) &zstub, len, 0, &error TSRMLS_CC); in PHP_METHOD()
2924 …if (phar_obj->arc.archive->is_persistent && FAILURE == phar_copy_on_write(&(phar_obj->arc.archive)… in PHP_METHOD()
2925 …, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar_obj->arc.archive->fname); in PHP_METHOD()
2928 phar_flush(phar_obj->arc.archive, stub, stub_len, 0, &error TSRMLS_CC); in PHP_METHOD()
2962 if (phar_obj->arc.archive->is_data) { in PHP_METHOD()
2963 if (phar_obj->arc.archive->is_tar) { in PHP_METHOD()
2977 if (ZEND_NUM_ARGS() > 0 && (phar_obj->arc.archive->is_tar || phar_obj->arc.archive->is_zip)) { in PHP_METHOD()
2988 if (!phar_obj->arc.archive->is_tar && !phar_obj->arc.archive->is_zip) { in PHP_METHOD()
3003 …if (phar_obj->arc.archive->is_persistent && FAILURE == phar_copy_on_write(&(phar_obj->arc.archive)… in PHP_METHOD()
3004 …, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar_obj->arc.archive->fname); in PHP_METHOD()
3007 phar_flush(phar_obj->arc.archive, stub, stub_len, 1, &error TSRMLS_CC); in PHP_METHOD()
3037 if (PHAR_G(readonly) && !phar_obj->arc.archive->is_data) { in PHP_METHOD()
3058 …if (phar_obj->arc.archive->is_persistent && FAILURE == phar_copy_on_write(&(phar_obj->arc.archive)… in PHP_METHOD()
3059 …, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar_obj->arc.archive->fname); in PHP_METHOD()
3062 phar_obj->arc.archive->sig_flags = algo; in PHP_METHOD()
3063 phar_obj->arc.archive->is_modified = 1; in PHP_METHOD()
3067 phar_flush(phar_obj->arc.archive, 0, 0, 0, &error TSRMLS_CC); in PHP_METHOD()
3091 if (phar_obj->arc.archive->signature) { in PHP_METHOD()
3096 …add_assoc_stringl(return_value, "hash", phar_obj->arc.archive->signature, phar_obj->arc.archive->s… in PHP_METHOD()
3097 switch(phar_obj->arc.archive->sig_flags) { in PHP_METHOD()
3114 unknown_len = spprintf(&unknown, 0, "Unknown (%u)", phar_obj->arc.archive->sig_flags); in PHP_METHOD()
3135 RETURN_BOOL(phar_obj->arc.archive->is_modified); in PHP_METHOD()
3214 if (PHAR_G(readonly) && !phar_obj->arc.archive->is_data) { in PHP_METHOD()
3220 if (phar_obj->arc.archive->is_zip) { in PHP_METHOD()
3253 if (phar_obj->arc.archive->is_tar) { in PHP_METHOD()
3254 ret = phar_convert_to_other(phar_obj->arc.archive, PHAR_FORMAT_TAR, ext, flags TSRMLS_CC); in PHP_METHOD()
3256 ret = phar_convert_to_other(phar_obj->arc.archive, PHAR_FORMAT_PHAR, ext, flags TSRMLS_CC); in PHP_METHOD()
3281 if (PHAR_G(readonly) && !phar_obj->arc.archive->is_data) { in PHP_METHOD()
3287 if (phar_obj->arc.archive->is_zip) { in PHP_METHOD()
3293 if (phar_obj->arc.archive->is_tar) { in PHP_METHOD()
3294 …ret = phar_convert_to_other(phar_obj->arc.archive, PHAR_FORMAT_TAR, ext, PHAR_FILE_COMPRESSED_NONE… in PHP_METHOD()
3296 …ret = phar_convert_to_other(phar_obj->arc.archive, PHAR_FORMAT_PHAR, ext, PHAR_FILE_COMPRESSED_NON… in PHP_METHOD()
3323 if (PHAR_G(readonly) && !phar_obj->arc.archive->is_data) { in PHP_METHOD()
3353 if (phar_obj->arc.archive->is_tar) { in PHP_METHOD()
3359 if (!pharobj_cancompress(&phar_obj->arc.archive->manifest TSRMLS_CC)) { in PHP_METHOD()
3370 …if (phar_obj->arc.archive->is_persistent && FAILURE == phar_copy_on_write(&(phar_obj->arc.archive)… in PHP_METHOD()
3371 …, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar_obj->arc.archive->fname); in PHP_METHOD()
3374 pharobj_set_compression(&phar_obj->arc.archive->manifest, flags TSRMLS_CC); in PHP_METHOD()
3375 phar_obj->arc.archive->is_modified = 1; in PHP_METHOD()
3376 phar_flush(phar_obj->arc.archive, 0, 0, 0, &error TSRMLS_CC); in PHP_METHOD()
3397 if (PHAR_G(readonly) && !phar_obj->arc.archive->is_data) { in PHP_METHOD()
3403 if (!pharobj_cancompress(&phar_obj->arc.archive->manifest TSRMLS_CC)) { in PHP_METHOD()
3409 if (phar_obj->arc.archive->is_tar) { in PHP_METHOD()
3412 …if (phar_obj->arc.archive->is_persistent && FAILURE == phar_copy_on_write(&(phar_obj->arc.archive)… in PHP_METHOD()
3413 …, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar_obj->arc.archive->fname); in PHP_METHOD()
3416 pharobj_set_compression(&phar_obj->arc.archive->manifest, PHAR_ENT_COMPRESSED_NONE TSRMLS_CC); in PHP_METHOD()
3419 phar_obj->arc.archive->is_modified = 1; in PHP_METHOD()
3420 phar_flush(phar_obj->arc.archive, 0, 0, 0, &error TSRMLS_CC); in PHP_METHOD()
3447 if (PHAR_G(readonly) && !phar_obj->arc.archive->is_data) { in PHP_METHOD()
3456 …to file \"%s\", cannot copy Phar meta-file in %s", oldfile, newfile, phar_obj->arc.archive->fname); in PHP_METHOD()
3463 …file \"%s\", cannot copy to Phar meta-file in %s", oldfile, newfile, phar_obj->arc.archive->fname); in PHP_METHOD()
3467 …hash_exists(&phar_obj->arc.archive->manifest, oldfile, (uint) oldfile_len) || SUCCESS != zend_hash… in PHP_METHOD()
3469 …copied to file \"%s\", file does not exist in %s", oldfile, newfile, phar_obj->arc.archive->fname); in PHP_METHOD()
3473 if (zend_hash_exists(&phar_obj->arc.archive->manifest, newfile, (uint) newfile_len)) { in PHP_METHOD()
3474 …if (SUCCESS == zend_hash_find(&phar_obj->arc.archive->manifest, newfile, (uint) newfile_len, (void… in PHP_METHOD()
3476 …e \"%s\", file must not already exist in phar %s", oldfile, newfile, phar_obj->arc.archive->fname); in PHP_METHOD()
3483 …nnot be copied from \"%s\" in phar %s", newfile, pcr_error, oldfile, phar_obj->arc.archive->fname); in PHP_METHOD()
3487 if (phar_obj->arc.archive->is_persistent) { in PHP_METHOD()
3488 if (FAILURE == phar_copy_on_write(&(phar_obj->arc.archive) TSRMLS_CC)) { in PHP_METHOD()
3489 …, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar_obj->arc.archive->fname); in PHP_METHOD()
3493 zend_hash_find(&phar_obj->arc.archive->manifest, oldfile, (uint) oldfile_len, (void**)&oldentry); in PHP_METHOD()
3526 phar_obj->arc.archive->is_modified = 1; in PHP_METHOD()
3527 phar_flush(phar_obj->arc.archive, 0, 0, 0, &error TSRMLS_CC); in PHP_METHOD()
3553 if (zend_hash_exists(&phar_obj->arc.archive->manifest, fname, (uint) fname_len)) { in PHP_METHOD()
3554 …if (SUCCESS == zend_hash_find(&phar_obj->arc.archive->manifest, fname, (uint) fname_len, (void**)&… in PHP_METHOD()
3567 if (zend_hash_exists(&phar_obj->arc.archive->virtual_dirs, fname, (uint) fname_len)) { in PHP_METHOD()
3591 …if (!(entry = phar_get_entry_info_dir(phar_obj->arc.archive, fname, fname_len, 1, &error, 0 TSRMLS… in PHP_METHOD()
3595 …t get stub \".phar/stub.php\" directly in phar \"%s\", use getStub", phar_obj->arc.archive->fname); in PHP_METHOD()
3600 …et alias \".phar/alias.txt\" directly in phar \"%s\", use getAlias", phar_obj->arc.archive->fname); in PHP_METHOD()
3605 …directly get any files or directories in magic \".phar\" directory", phar_obj->arc.archive->fname); in PHP_METHOD()
3614 fname_len = spprintf(&fname, 0, "phar://%s/%s", phar_obj->arc.archive->fname, fname); in PHP_METHOD()
3740 if (PHAR_G(readonly) && !phar_obj->arc.archive->is_data) { in PHP_METHOD()
3751 …t set stub \".phar/stub.php\" directly in phar \"%s\", use setStub", phar_obj->arc.archive->fname); in PHP_METHOD()
3756 …et alias \".phar/alias.txt\" directly in phar \"%s\", use setAlias", phar_obj->arc.archive->fname); in PHP_METHOD()
3761 … "Cannot set any files or directories in magic \".phar\" directory", phar_obj->arc.archive->fname); in PHP_METHOD()
3765 phar_add_file(&(phar_obj->arc.archive), fname, fname_len, cont_str, cont_len, zresource TSRMLS_CC); in PHP_METHOD()
3779 if (PHAR_G(readonly) && !phar_obj->arc.archive->is_data) { in PHP_METHOD()
3788 if (zend_hash_exists(&phar_obj->arc.archive->manifest, fname, (uint) fname_len)) { in PHP_METHOD()
3789 …if (SUCCESS == zend_hash_find(&phar_obj->arc.archive->manifest, fname, (uint) fname_len, (void**)&… in PHP_METHOD()
3795 if (phar_obj->arc.archive->is_persistent) { in PHP_METHOD()
3796 if (FAILURE == phar_copy_on_write(&(phar_obj->arc.archive) TSRMLS_CC)) { in PHP_METHOD()
3797 …, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar_obj->arc.archive->fname); in PHP_METHOD()
3801 zend_hash_find(&phar_obj->arc.archive->manifest, fname, (uint) fname_len, (void **)&entry); in PHP_METHOD()
3806 phar_flush(phar_obj->arc.archive, 0, 0, 0, &error TSRMLS_CC); in PHP_METHOD()
3840 phar_mkdir(&phar_obj->arc.archive, dirname, dirname_len TSRMLS_CC); in PHP_METHOD()
3884 phar_add_file(&(phar_obj->arc.archive), fname, fname_len, NULL, 0, zresource TSRMLS_CC); in PHP_METHOD()
3904 …phar_add_file(&(phar_obj->arc.archive), localname, localname_len, cont_str, cont_len, NULL TSRMLS_… in PHP_METHOD()
3925 if (phar_obj->arc.archive->is_tar || phar_obj->arc.archive->is_zip) { in PHP_METHOD()
3927 …if (SUCCESS == zend_hash_find(&(phar_obj->arc.archive->manifest), ".phar/stub.php", sizeof(".phar/… in PHP_METHOD()
3928 …if (phar_obj->arc.archive->fp && !phar_obj->arc.archive->is_brandnew && !(stub->flags & PHAR_ENT_C… in PHP_METHOD()
3929 fp = phar_obj->arc.archive->fp; in PHP_METHOD()
3931 if (!(fp = php_stream_open_wrapper(phar_obj->arc.archive->fname, "rb", 0, NULL))) { in PHP_METHOD()
3932 …lueException, 0 TSRMLS_CC, "phar error: unable to open phar \"%s\"", phar_obj->arc.archive->fname); in PHP_METHOD()
3944 …le to read stub of phar \"%s\" (cannot create %s filter)", phar_obj->arc.archive->fname, phar_deco… in PHP_METHOD()
3964 len = phar_obj->arc.archive->halt_offset; in PHP_METHOD()
3966 if (phar_obj->arc.archive->fp && !phar_obj->arc.archive->is_brandnew) { in PHP_METHOD()
3967 fp = phar_obj->arc.archive->fp; in PHP_METHOD()
3969 fp = php_stream_open_wrapper(phar_obj->arc.archive->fname, "rb", 0, NULL); in PHP_METHOD()
3983 if (fp != phar_obj->arc.archive->fp) { in PHP_METHOD()
3997 if (fp != phar_obj->arc.archive->fp) { in PHP_METHOD()
4013 RETURN_BOOL(phar_obj->arc.archive->metadata != NULL); in PHP_METHOD()
4028 if (phar_obj->arc.archive->metadata) { in PHP_METHOD()
4029 if (phar_obj->arc.archive->is_persistent) { in PHP_METHOD()
4031 …char *buf = estrndup((char *) phar_obj->arc.archive->metadata, phar_obj->arc.archive->metadata_len… in PHP_METHOD()
4033 phar_parse_metadata(&buf, &ret, phar_obj->arc.archive->metadata_len TSRMLS_CC); in PHP_METHOD()
4037 RETURN_ZVAL(phar_obj->arc.archive->metadata, 1, 0); in PHP_METHOD()
4052 if (PHAR_G(readonly) && !phar_obj->arc.archive->is_data) { in PHP_METHOD()
4061 …if (phar_obj->arc.archive->is_persistent && FAILURE == phar_copy_on_write(&(phar_obj->arc.archive)… in PHP_METHOD()
4062 …, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar_obj->arc.archive->fname); in PHP_METHOD()
4065 if (phar_obj->arc.archive->metadata) { in PHP_METHOD()
4066 zval_ptr_dtor(&phar_obj->arc.archive->metadata); in PHP_METHOD()
4067 phar_obj->arc.archive->metadata = NULL; in PHP_METHOD()
4070 MAKE_STD_ZVAL(phar_obj->arc.archive->metadata); in PHP_METHOD()
4071 ZVAL_ZVAL(phar_obj->arc.archive->metadata, metadata, 1, 0); in PHP_METHOD()
4072 phar_obj->arc.archive->is_modified = 1; in PHP_METHOD()
4073 phar_flush(phar_obj->arc.archive, 0, 0, 0, &error TSRMLS_CC); in PHP_METHOD()
4091 if (PHAR_G(readonly) && !phar_obj->arc.archive->is_data) { in PHP_METHOD()
4096 if (phar_obj->arc.archive->metadata) { in PHP_METHOD()
4097 zval_ptr_dtor(&phar_obj->arc.archive->metadata); in PHP_METHOD()
4098 phar_obj->arc.archive->metadata = NULL; in PHP_METHOD()
4099 phar_obj->arc.archive->is_modified = 1; in PHP_METHOD()
4100 phar_flush(phar_obj->arc.archive, 0, 0, 0, &error TSRMLS_CC); in PHP_METHOD()
4331 …fp = php_stream_open_wrapper(phar_obj->arc.archive->fname, "rb", IGNORE_URL|STREAM_MUST_SEEK, &act… in PHP_METHOD()
4335 "Invalid argument, %s cannot be found", phar_obj->arc.archive->fname); in PHP_METHOD()
4393 …if (FAILURE == zend_hash_find(&phar_obj->arc.archive->manifest, Z_STRVAL_PP(zval_file), Z_STRLEN_P… in PHP_METHOD()
4395 … non-existent file \"%s\" from phar \"%s\"", Z_STRVAL_PP(zval_file), phar_obj->arc.archive->fname); in PHP_METHOD()
4399 "Extraction from phar \"%s\" failed: %s", phar_obj->arc.archive->fname, error); in PHP_METHOD()
4412 …if (FAILURE == zend_hash_find(&phar_obj->arc.archive->manifest, filename, filename_len, (void **)&… in PHP_METHOD()
4414 …ted to extract non-existent file \"%s\" from phar \"%s\"", filename, phar_obj->arc.archive->fname); in PHP_METHOD()
4420 "Extraction from phar \"%s\" failed: %s", phar_obj->arc.archive->fname, error); in PHP_METHOD()
4427 phar = phar_obj->arc.archive; in PHP_METHOD()
5179 ZEND_ARG_INFO(0, archive)