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