mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
24 lines
369 B
PHP
24 lines
369 B
PHP
--TEST--
|
|
Extending Zip class and array property
|
|
--EXTENSIONS--
|
|
zip
|
|
--FILE--
|
|
<?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;
|
|
?>
|
|
--EXPECT--
|
|
array(1) {
|
|
[0]=>
|
|
int(1)
|
|
}
|