oo_ext_zip.phpt 369 B

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