PHP  
 PHP_5_3
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Expected Test Failure Report for ext/simplexml/tests/034.phpt ('SimpleXML: array casting bug')

Script

1: <?php
2: $string 
'<?xml version="1.0"?>
3: <foo><bar>
4:    <p>Blah 1</p>
5:    <p>Blah 2</p>
6:    <p>Blah 3</p>
7:    <tt>Blah 4</tt>
8: </bar></foo>
9: '
;
10:
$foo simplexml_load_string($string);
11:
$p $foo->bar->p;
12: echo 
count($p);
13:
$p = (array)$foo->bar->p;
14: echo 
count($p);
15:
?>
16:

Expected

33

Output

31

Diff

001+ 31
001- 33

 

Generated at Sun, 27 Jul 2014 12:58:43 +0000 (5 days ago)

Copyright © 2005-2014 The PHP Group
All rights reserved.