mirror of
https://github.com/php/php-src.git
synced 2024-12-04 15:23:44 +08:00
5dc37b3510
- update libzip to version 1.11.1. We don't use any private symbol anymore - new method ZipArchive::setPassword($password) - add --with-libzip option to build with system libzip
14 lines
313 B
PHP
14 lines
313 B
PHP
<?php
|
|
$z = new ZipArchive;
|
|
$z->open('a.zip', ZIPARCHIVE::CREATE);
|
|
|
|
/* or 'remove_all_path' => 0*/
|
|
$options = array('remove_path' => '/home/pierre/cvs/gd/libgd/tests',
|
|
'add_path' => 'images/',
|
|
);
|
|
|
|
$found = $z->addPattern("/(\.png)$/i", "/home/pierre/cvs/gd/libgd/tests", $options);
|
|
var_dump($found);
|
|
$z->close();
|
|
|