mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00

$Id attributes were used with SVN. With Git most of the Git ident attributes in source code files are not used anymore.
26 lines
385 B
PHP
26 lines
385 B
PHP
--TEST--
|
|
Extending Zip class and array property
|
|
--SKIPIF--
|
|
<?php
|
|
if(!extension_loaded('zip')) die('skip');
|
|
?>
|
|
--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)
|
|
}
|