rasmus          Thu Feb 28 17:39:08 2008 UTC

  Modified files:              
    /php-src/ext/simplexml/tests        034.phpt 
  Log:
  MFB
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/simplexml/tests/034.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/simplexml/tests/034.phpt
diff -u /dev/null php-src/ext/simplexml/tests/034.phpt:1.2
--- /dev/null   Thu Feb 28 17:39:08 2008
+++ php-src/ext/simplexml/tests/034.phpt        Thu Feb 28 17:39:08 2008
@@ -0,0 +1,22 @@
+--TEST--
+SimpleXML: array casting bug
+--SKIPIF--
+<?php if (!extension_loaded("simplexml")) print "skip"; ?>
+--FILE--
+<?php
+$string = '<?xml version="1.0"?>
+<foo><bar>
+   <p>Blah 1</p>
+   <p>Blah 2</p>
+   <p>Blah 3</p>
+   <tt>Blah 4</tt>
+</bar></foo>
+';
+$foo = simplexml_load_string($string);
+$p = $foo->bar->p;
+echo count($p);
+$p = (array)$foo->bar->p;
+echo count($p);
+?>
+--EXPECTF--
+33

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

Reply via email to