mirror of
https://github.com/php/php-src.git
synced 2026-03-27 17:52:16 +01:00
$Id attributes were used with SVN. With Git most of the Git ident attributes in source code files are not used anymore.
12 lines
301 B
PHP
12 lines
301 B
PHP
<?php
|
|
|
|
$im = imagecreatefromgif('zip://' . dirname(__FILE__) . '/test_im.zip#pear_item.gif');
|
|
imagepng($im, 'a.png');
|
|
|
|
$z = new ZipArchive();
|
|
$z->open(dirname(__FILE__) . '/test_im.zip');
|
|
$im_string = $z->getFromName("pear_item.gif");
|
|
$im = imagecreatefromstring($im_string);
|
|
imagepng($im, 'b.png');
|
|
|