oo_ext_zip.phpt 397 B

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