File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / zip / tests / oo_ext_zip.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:05 2012 UTC (12 years, 4 months ago) by misho
Branches: php, MAIN
CVS tags: v5_3_10, HEAD
php

--TEST--
Extending Zip class and array property
--SKIPIF--
<?php
/* $Id: oo_ext_zip.phpt,v 1.1.1.1 2012/02/21 23:48:05 misho Exp $ */
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;
?>
--EXPECTF--
array(1) {
  [0]=>
  int(1)
}

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