oo_ext_zip.phpt 385 B

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