pajoye          Mon Sep 25 09:17:56 2006 UTC

  Added files:                 
    /php-src/ext/zip/tests      bug38943.phpt 

  Removed files:               
    /php-src/ext/zip/tests      38943.phpt 
  Log:
  - fix test, php6 displays the class
  - mv 38943.phpt to bug38943.phpt
  
  

http://cvs.php.net/viewvc.cgi/php-src/ext/zip/tests/bug38943.phpt?view=markup&rev=1.1
Index: php-src/ext/zip/tests/bug38943.phpt
+++ php-src/ext/zip/tests/bug38943.phpt
--TEST--
#38943, properties in extended class cannot be set
--SKIPIF--
<?php
/* $Id: bug38943.phpt,v 1.1 2006/09/25 09:17:56 pajoye 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;
$z->testp = "foobar";
var_dump($z);
?>
--EXPECTF--
array(1) {
  [0]=>
  int(1)
}
object(myZip)#1 (%d) {
  ["test":"myZip":private]=>
  int(0)
  ["testp"]=>
  string(6) "foobar"
  ["testarray":"myZip":private]=>
  array(1) {
    [0]=>
    int(1)
  }
  ["status"]=>
  int(0)
  ["statusSys"]=>
  int(0)
  ["numFiles"]=>
  int(0)
  ["filename"]=>
  string(0) ""
  ["comment"]=>
  string(0) ""
}

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to