Annotation of embedaddon/php/ext/zip/tests/oo_ext_zip.phpt, revision 1.1.1.2

1.1       misho       1: --TEST--
                      2: Extending Zip class and array property
                      3: --SKIPIF--
                      4: <?php
1.1.1.2 ! misho       5: /* $Id$ */
1.1       misho       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: 
                     15:        public function __construct() {
                     16:                $this->testarray[] = 1;
                     17:                var_dump($this->testarray);
                     18:        }
                     19: }
                     20: 
                     21: $z = new myZip;
                     22: ?>
                     23: --EXPECTF--
                     24: array(1) {
                     25:   [0]=>
                     26:   int(1)
                     27: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>