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