davidc          Fri Dec 14 04:49:47 2007 UTC

  Modified files:              
    /php-src/ext/spl/tests      array_023.phpt 
  Log:
  - Added other test with some unicode words (Sorry if this chinese word
    turns out to be offensive I have no clue what it means, just copied it)
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/spl/tests/array_023.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/spl/tests/array_023.phpt
diff -u php-src/ext/spl/tests/array_023.phpt:1.1 
php-src/ext/spl/tests/array_023.phpt:1.2
--- php-src/ext/spl/tests/array_023.phpt:1.1    Fri Dec 14 04:23:09 2007
+++ php-src/ext/spl/tests/array_023.phpt        Fri Dec 14 04:49:47 2007
@@ -19,6 +19,22 @@
 var_dump($a);
 var_dump($a->var);
 
+class Sláinte extends ArrayObject
+{
+    public $var = 'tá';
+    protected $bar = 'trí';
+    private $foo = 'å¹´';
+}
+
+$a = new Sláinte();
+var_dump($a);
+var_dump($a->var);
+
+$a = unserialize(serialize($a));
+
+var_dump($a);
+var_dump($a->var);
+
 ?>
 --EXPECT--
 object(Name)#1 (4) {
@@ -45,3 +61,27 @@
   }
 }
 string(1) "a"
+object(Sláinte)#1 (4) {
+  ["var"]=>
+  string(3) "tá"
+  ["bar":protected]=>
+  string(4) "trí"
+  ["foo":"Sláinte":private]=>
+  string(3) "å¹´"
+  ["storage":"ArrayObject":private]=>
+  array(0) {
+  }
+}
+string(3) "tá"
+object(Sláinte)#2 (4) {
+  ["var"]=>
+  string(3) "tá"
+  ["bar":protected]=>
+  string(4) "trí"
+  ["foo":"Sláinte":private]=>
+  string(3) "å¹´"
+  ["storage":"ArrayObject":private]=>
+  array(0) {
+  }
+}
+string(3) "tá"

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

Reply via email to