xref: /PHP-5.5/ext/zip/tests/oo_ext_zip.phpt (revision 664d102a)
1--TEST--
2Extending Zip class and array property
3--SKIPIF--
4<?php
5/* $Id$ */
6if(!extension_loaded('zip')) die('skip');
7?>
8--FILE--
9<?php
10class myZip extends ZipArchive {
11	private $test = 0;
12	public $testp = 1;
13	private $testarray = array();
14
15	public function __construct() {
16		$this->testarray[] = 1;
17		var_dump($this->testarray);
18	}
19}
20
21$z = new myZip;
22?>
23--EXPECTF--
24array(1) {
25  [0]=>
26  int(1)
27}
28