summaryrefslogtreecommitdiff
path: root/ext/phar/zip.c
diff options
context:
space:
mode:
authorGreg Beaver <cellog@php.net>2008-10-12 19:40:30 +0000
committerGreg Beaver <cellog@php.net>2008-10-12 19:40:30 +0000
commitc448cb165cb2e8b9e353a9af78f81fac54809972 (patch)
treeec1f2fef9ec0c1b72817054d56fbeab01d7492ac /ext/phar/zip.c
parent4bd8bacde70b3a3c3bbcc1549bf05c23f704b128 (diff)
downloadphp-git-c448cb165cb2e8b9e353a9af78f81fac54809972.tar.gz
MFB: add tests for copy-on-write support
- fix metadata handling with cached phars - fix virtual_dirs with rmdir - ensure that after copy-on-write, all existing Phar objects link to the newly copied phar data
Diffstat (limited to 'ext/phar/zip.c')
-rw-r--r--ext/phar/zip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/phar/zip.c b/ext/phar/zip.c
index 027fcdb665..891280eb6e 100644
--- a/ext/phar/zip.c
+++ b/ext/phar/zip.c
@@ -704,6 +704,7 @@ static int phar_zip_changed_apply(void *data, void *arg TSRMLS_DC) /* {{{ */
}
}
+ phar_add_virtual_dirs(entry->phar, entry->filename, entry->filename_len);
memset(&local, 0, sizeof(local));
memset(&central, 0, sizeof(central));
memset(&perms, 0, sizeof(perms));