summaryrefslogtreecommitdiff
path: root/ext/zip/examples/fopen.php
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2008-05-21 09:27:41 +0000
committerPierre Joye <pajoye@php.net>2008-05-21 09:27:41 +0000
commitb734bf4b97f9203eb7a7a6a7ef24286f2272bd08 (patch)
treea361418bf40dfa23ac4d33ba3eae99c987f1ddae /ext/zip/examples/fopen.php
parent3681756cfb6d66c35f532f890160a1d56601e96c (diff)
downloadphp-git-b734bf4b97f9203eb7a7a6a7ef24286f2272bd08.tar.gz
- sync with PECL HEAD
Diffstat (limited to 'ext/zip/examples/fopen.php')
-rw-r--r--ext/zip/examples/fopen.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/zip/examples/fopen.php b/ext/zip/examples/fopen.php
index 5af37b1ab3..32357f3c08 100644
--- a/ext/zip/examples/fopen.php
+++ b/ext/zip/examples/fopen.php
@@ -1,4 +1,8 @@
<?php
+if (!extension_loaded('zip')) {
+ dl('zip.so');
+}
+
$fp = fopen('zip://' . dirname(__FILE__) . '/test.zip#test', 'r');
if (!$fp) {