Lines Matching refs:entry_obj
4490 phar_entry_object *entry_obj; local
4499 entry_obj = (phar_entry_object*)zend_object_store_get_object(getThis() TSRMLS_CC);
4501 if (entry_obj->ent.entry) {
4537 entry_obj->ent.entry = entry_info;
4548 …phar_entry_object *entry_obj = (phar_entry_object*)zend_object_store_get_object(getThis() TSRMLS_C…
4549 if (!entry_obj->ent.entry) { \
4560 …phar_entry_object *entry_obj = (phar_entry_object*)zend_object_store_get_object(getThis() TSRMLS_C… local
4562 if (entry_obj->ent.entry && entry_obj->ent.entry->is_temp_dir) {
4563 if (entry_obj->ent.entry->filename) {
4564 efree(entry_obj->ent.entry->filename);
4565 entry_obj->ent.entry->filename = NULL;
4568 efree(entry_obj->ent.entry);
4569 entry_obj->ent.entry = NULL;
4585 RETURN_LONG(entry_obj->ent.entry->compressed_filesize);
4604 RETURN_BOOL(entry_obj->ent.entry->flags & PHAR_ENT_COMPRESSION_MASK);
4606 RETURN_BOOL(entry_obj->ent.entry->flags & PHAR_ENT_COMPRESSED_GZ);
4608 RETURN_BOOL(entry_obj->ent.entry->flags & PHAR_ENT_COMPRESSED_BZ2);
4627 if (entry_obj->ent.entry->is_dir) {
4633 if (entry_obj->ent.entry->is_crc_checked) {
4634 RETURN_LONG(entry_obj->ent.entry->crc32);
4653 RETURN_BOOL(entry_obj->ent.entry->is_crc_checked);
4668 RETURN_LONG(entry_obj->ent.entry->flags & ~(PHAR_ENT_PERM_MASK|PHAR_ENT_COMPRESSION_MASK));
4681 if (entry_obj->ent.entry->is_temp_dir) {
4683 …emporary directory (not an actual entry in the archive), cannot chmod", entry_obj->ent.entry->file…
4687 if (PHAR_G(readonly) && !entry_obj->ent.entry->phar->is_data) {
4688 …"%s\" in phar \"%s\", write operations are prohibited", entry_obj->ent.entry->filename, entry_obj-…
4696 if (entry_obj->ent.entry->is_persistent) {
4697 phar_archive_data *phar = entry_obj->ent.entry->phar;
4704 …zend_hash_find(&phar->manifest, entry_obj->ent.entry->filename, entry_obj->ent.entry->filename_len…
4707 entry_obj->ent.entry->flags &= ~PHAR_ENT_PERM_MASK;
4709 entry_obj->ent.entry->flags |= perms;
4710 entry_obj->ent.entry->old_flags = entry_obj->ent.entry->flags;
4711 entry_obj->ent.entry->phar->is_modified = 1;
4712 entry_obj->ent.entry->is_modified = 1;
4726 phar_flush(entry_obj->ent.entry->phar, 0, 0, 0, &error TSRMLS_CC);
4746 RETURN_BOOL(entry_obj->ent.entry->metadata != NULL);
4761 if (entry_obj->ent.entry->metadata) {
4762 if (entry_obj->ent.entry->is_persistent) {
4764 … char *buf = estrndup((char *) entry_obj->ent.entry->metadata, entry_obj->ent.entry->metadata_len);
4766 phar_parse_metadata(&buf, &ret, entry_obj->ent.entry->metadata_len TSRMLS_CC);
4770 RETURN_ZVAL(entry_obj->ent.entry->metadata, 1, 0);
4785 if (PHAR_G(readonly) && !entry_obj->ent.entry->phar->is_data) {
4790 if (entry_obj->ent.entry->is_temp_dir) {
4800 if (entry_obj->ent.entry->is_persistent) {
4801 phar_archive_data *phar = entry_obj->ent.entry->phar;
4808 …zend_hash_find(&phar->manifest, entry_obj->ent.entry->filename, entry_obj->ent.entry->filename_len…
4810 if (entry_obj->ent.entry->metadata) {
4811 zval_ptr_dtor(&entry_obj->ent.entry->metadata);
4812 entry_obj->ent.entry->metadata = NULL;
4815 MAKE_STD_ZVAL(entry_obj->ent.entry->metadata);
4816 ZVAL_ZVAL(entry_obj->ent.entry->metadata, metadata, 1, 0);
4818 entry_obj->ent.entry->is_modified = 1;
4819 entry_obj->ent.entry->phar->is_modified = 1;
4820 phar_flush(entry_obj->ent.entry->phar, 0, 0, 0, &error TSRMLS_CC);
4842 if (PHAR_G(readonly) && !entry_obj->ent.entry->phar->is_data) {
4847 if (entry_obj->ent.entry->is_temp_dir) {
4853 if (entry_obj->ent.entry->metadata) {
4854 if (entry_obj->ent.entry->is_persistent) {
4855 phar_archive_data *phar = entry_obj->ent.entry->phar;
4862 …zend_hash_find(&phar->manifest, entry_obj->ent.entry->filename, entry_obj->ent.entry->filename_len…
4864 zval_ptr_dtor(&entry_obj->ent.entry->metadata);
4865 entry_obj->ent.entry->metadata = NULL;
4866 entry_obj->ent.entry->is_modified = 1;
4867 entry_obj->ent.entry->phar->is_modified = 1;
4869 phar_flush(entry_obj->ent.entry->phar, 0, 0, 0, &error TSRMLS_CC);
4900 if (entry_obj->ent.entry->is_dir) {
4902 …trieve contents, \"%s\" in phar \"%s\" is a directory", entry_obj->ent.entry->filename, entry_obj-…
4906 link = phar_get_link_source(entry_obj->ent.entry TSRMLS_CC);
4909 link = entry_obj->ent.entry;
4914 …: Cannot retrieve contents, \"%s\" in phar \"%s\": %s", entry_obj->ent.entry->filename, entry_obj-…
4921 …or: Cannot retrieve contents of \"%s\" in phar \"%s\"", entry_obj->ent.entry->filename, entry_obj-…
4948 if (entry_obj->ent.entry->is_tar) {
4954 if (entry_obj->ent.entry->is_dir) {
4960 if (PHAR_G(readonly) && !entry_obj->ent.entry->phar->is_data) {
4966 if (entry_obj->ent.entry->is_deleted) {
4972 if (entry_obj->ent.entry->is_persistent) {
4973 phar_archive_data *phar = entry_obj->ent.entry->phar;
4980 …zend_hash_find(&phar->manifest, entry_obj->ent.entry->filename, entry_obj->ent.entry->filename_len…
4984 if (entry_obj->ent.entry->flags & PHAR_ENT_COMPRESSED_GZ) {
4988 if ((entry_obj->ent.entry->flags & PHAR_ENT_COMPRESSED_BZ2) != 0) {
4996 if (SUCCESS != phar_open_entry_fp(entry_obj->ent.entry, &error, 1 TSRMLS_CC)) {
4998 …s\" in phar \"%s\" in order to compress with gzip: %s", entry_obj->ent.entry->filename, entry_obj-…
5010 entry_obj->ent.entry->old_flags = entry_obj->ent.entry->flags;
5011 entry_obj->ent.entry->flags &= ~PHAR_ENT_COMPRESSION_MASK;
5012 entry_obj->ent.entry->flags |= PHAR_ENT_COMPRESSED_GZ;
5015 if (entry_obj->ent.entry->flags & PHAR_ENT_COMPRESSED_BZ2) {
5019 if ((entry_obj->ent.entry->flags & PHAR_ENT_COMPRESSED_GZ) != 0) {
5027 if (SUCCESS != phar_open_entry_fp(entry_obj->ent.entry, &error, 1 TSRMLS_CC)) {
5029 …\" in phar \"%s\" in order to compress with bzip2: %s", entry_obj->ent.entry->filename, entry_obj-…
5040 entry_obj->ent.entry->old_flags = entry_obj->ent.entry->flags;
5041 entry_obj->ent.entry->flags &= ~PHAR_ENT_COMPRESSION_MASK;
5042 entry_obj->ent.entry->flags |= PHAR_ENT_COMPRESSED_BZ2;
5049 entry_obj->ent.entry->phar->is_modified = 1;
5050 entry_obj->ent.entry->is_modified = 1;
5051 phar_flush(entry_obj->ent.entry->phar, 0, 0, 0, &error TSRMLS_CC);
5074 if (entry_obj->ent.entry->is_dir) {
5080 if ((entry_obj->ent.entry->flags & PHAR_ENT_COMPRESSION_MASK) == 0) {
5084 if (PHAR_G(readonly) && !entry_obj->ent.entry->phar->is_data) {
5090 if (entry_obj->ent.entry->is_deleted) {
5096 if ((entry_obj->ent.entry->flags & PHAR_ENT_COMPRESSED_GZ) != 0 && !PHAR_G(has_zlib)) {
5102 if ((entry_obj->ent.entry->flags & PHAR_ENT_COMPRESSED_BZ2) != 0 && !PHAR_G(has_bz2)) {
5108 if (entry_obj->ent.entry->is_persistent) {
5109 phar_archive_data *phar = entry_obj->ent.entry->phar;
5116 …zend_hash_find(&phar->manifest, entry_obj->ent.entry->filename, entry_obj->ent.entry->filename_len…
5118 if (!entry_obj->ent.entry->fp) {
5119 if (FAILURE == phar_open_archive_fp(entry_obj->ent.entry->phar TSRMLS_CC)) {
5120 …ar error: Cannot open phar archive \"%s\" for reading", entry_obj->ent.entry->filename, entry_obj-…
5123 entry_obj->ent.entry->fp_type = PHAR_FP;
5126 entry_obj->ent.entry->old_flags = entry_obj->ent.entry->flags;
5127 entry_obj->ent.entry->flags &= ~PHAR_ENT_COMPRESSION_MASK;
5128 entry_obj->ent.entry->phar->is_modified = 1;
5129 entry_obj->ent.entry->is_modified = 1;
5130 phar_flush(entry_obj->ent.entry->phar, 0, 0, 0, &error TSRMLS_CC);