diff options
| author | Ondřej Surý <ondrej@sury.org> | 2012-01-11 15:43:42 +0100 |
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2012-01-11 15:43:42 +0100 |
| commit | 8f1428d29ef91d74b4d272af171675f2971eb15b (patch) | |
| tree | a1f4f4d7dc5bfe8096806dd5c5266634e19fa07a /ext/zip | |
| parent | c6e4182351e0173fe58de141e143aac2eacf5efe (diff) | |
| download | php-8f1428d29ef91d74b4d272af171675f2971eb15b.tar.gz | |
Imported Upstream version 5.3.9upstream/5.3.9
Diffstat (limited to 'ext/zip')
| -rw-r--r-- | ext/zip/php_zip.c | 6 | ||||
| -rw-r--r-- | ext/zip/php_zip.h | 4 | ||||
| -rw-r--r-- | ext/zip/tests/bug38943.inc | 16 | ||||
| -rw-r--r-- | ext/zip/tests/bug38943.phpt | 24 | ||||
| -rw-r--r-- | ext/zip/tests/bug38943_2.phpt | 38 | ||||
| -rw-r--r-- | ext/zip/tests/bug53885.phpt | 5 |
6 files changed, 28 insertions, 65 deletions
diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index f86fa6310..4765e8b66 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2011 The PHP Group | + | Copyright (c) 1997-2012 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_zip.c 313665 2011-07-25 11:42:53Z felipe $ */ +/* $Id: php_zip.c 321634 2012-01-01 13:15:04Z felipe $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -2872,7 +2872,7 @@ static PHP_MINFO_FUNCTION(zip) php_info_print_table_start(); php_info_print_table_row(2, "Zip", "enabled"); - php_info_print_table_row(2, "Extension Version","$Id: php_zip.c 313665 2011-07-25 11:42:53Z felipe $"); + php_info_print_table_row(2, "Extension Version","$Id: php_zip.c 321634 2012-01-01 13:15:04Z felipe $"); php_info_print_table_row(2, "Zip version", PHP_ZIP_VERSION_STRING); php_info_print_table_row(2, "Libzip version", "0.9.0"); diff --git a/ext/zip/php_zip.h b/ext/zip/php_zip.h index beaae7f9d..f3634e77b 100644 --- a/ext/zip/php_zip.h +++ b/ext/zip/php_zip.h @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2011 The PHP Group | + | Copyright (c) 1997-2012 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_zip.h 306939 2011-01-01 02:19:59Z felipe $ */ +/* $Id: php_zip.h 321634 2012-01-01 13:15:04Z felipe $ */ #ifndef PHP_ZIP_H #define PHP_ZIP_H diff --git a/ext/zip/tests/bug38943.inc b/ext/zip/tests/bug38943.inc deleted file mode 100644 index a6f45e829..000000000 --- a/ext/zip/tests/bug38943.inc +++ /dev/null @@ -1,16 +0,0 @@ -<?php -class myZip extends ZipArchive { - private $test = 0; - public $testp = 1; - private $testarray = array(); - - public function __construct() { - $this->testarray[] = 1; - var_dump($this->testarray); - } -} - -$z = new myZip; -$z->testp = "foobar"; -var_dump($z); - diff --git a/ext/zip/tests/bug38943.phpt b/ext/zip/tests/bug38943.phpt index 856818275..c5e228471 100644 --- a/ext/zip/tests/bug38943.phpt +++ b/ext/zip/tests/bug38943.phpt @@ -1,14 +1,26 @@ --TEST-- -#38943, properties in extended class cannot be set (< 5.3) +#38943, properties in extended class cannot be set (5.3+) --SKIPIF-- <?php -/* $Id: bug38943.phpt 260091 2008-05-21 09:27:41Z pajoye $ */ if(!extension_loaded('zip')) die('skip'); -if (!defined('PHP_VERSION_MAJOR')) die('skip'); ?> --FILE-- <?php -include dirname(__FILE__) . '/bug38943.inc'; +class myZip extends ZipArchive { + private $test = 0; + public $testp = 1; + private $testarray = array(); + + public function __construct() { + $this->testarray[] = 1; + var_dump($this->testarray); + } +} + +$z = new myZip; +$z->testp = "foobar"; +var_dump($z); + ?> --EXPECTF-- array(1) { @@ -16,11 +28,11 @@ array(1) { int(1) } object(myZip)#1 (%d) { - ["test:private"]=> + ["test":"myZip":private]=> int(0) ["testp"]=> string(6) "foobar" - ["testarray:private"]=> + ["testarray":"myZip":private]=> array(1) { [0]=> int(1) diff --git a/ext/zip/tests/bug38943_2.phpt b/ext/zip/tests/bug38943_2.phpt deleted file mode 100644 index 0045f0d1c..000000000 --- a/ext/zip/tests/bug38943_2.phpt +++ /dev/null @@ -1,38 +0,0 @@ ---TEST-- -#38943, properties in extended class cannot be set (5.3) ---SKIPIF-- -<?php -/* $Id: bug38943_2.phpt 268872 2008-11-12 17:16:51Z felipe $ */ -if(!extension_loaded('zip')) die('skip'); -if (version_compare(PHP_VERSION, "5.3", "<")) die('skip test for5.3+ only'); -?> ---FILE-- -<?php -include 'bug38943.inc'; -?> ---EXPECTF-- -array(1) { - [0]=> - int(1) -} -object(myZip)#1 (%d) { - ["test":"myZip":private]=> - int(0) - ["testp"]=> - string(6) "foobar" - ["testarray":"myZip":private]=> - array(1) { - [0]=> - int(1) - } - ["status"]=> - int(0) - ["statusSys"]=> - int(0) - ["numFiles"]=> - int(0) - ["filename"]=> - string(0) "" - ["comment"]=> - string(0) "" -} diff --git a/ext/zip/tests/bug53885.phpt b/ext/zip/tests/bug53885.phpt index d59bf8f03..1b3fcb9e4 100644 --- a/ext/zip/tests/bug53885.phpt +++ b/ext/zip/tests/bug53885.phpt @@ -15,5 +15,10 @@ $nx->locateName("a",ZIPARCHIVE::FL_UNCHANGED); $nx->statName("a",ZIPARCHIVE::FL_UNCHANGED); ?> ==DONE== +--CLEAN-- +<?php +$fname = dirname(__FILE__)."/test53885.zip"; +unlink($fname); +?> --EXPECTF-- ==DONE== |
