helly Sun Feb 26 16:40:01 2006 UTC
Modified files:
/php-src/ext/simplexml/tests bug35785.phpt
Log:
- Fix test
http://cvs.php.net/viewcvs.cgi/php-src/ext/simplexml/tests/bug35785.phpt?r1=1.3&r2=1.4&diff_format=u
Index: php-src/ext/simplexml/tests/bug35785.phpt
diff -u php-src/ext/simplexml/tests/bug35785.phpt:1.3
php-src/ext/simplexml/tests/bug35785.phpt:1.4
--- php-src/ext/simplexml/tests/bug35785.phpt:1.3 Sun Feb 26 15:48:28 2006
+++ php-src/ext/simplexml/tests/bug35785.phpt Sun Feb 26 16:40:01 2006
@@ -4,7 +4,13 @@
<?php
$xml = simplexml_load_string("<root></root>");
-$count = count($xml->posts);
+$xml->bla->posts->name = "FooBar";
+echo $xml->asXML();
+
+echo "===FAIL===\n";
+
+$xml = simplexml_load_string("<root></root>");
+$count = count($xml->bla->posts);
var_dump($count);
$xml->bla->posts[++$count]->name = "FooBar";
echo $xml->asXML();
@@ -12,13 +18,9 @@
===DONE===
<?php exit(0); __halt_compiler(); ?>
--EXPECTF--
+<?xml version="1.0"?>
+<root><bla><posts><name>FooBar</name></posts></bla></root>
+===FAIL===
int(0)
-Notice: Undefined index: name in %sbug35785.php on line %d
-
-Strict Standards: Creating default object from empty value in %sbug35785.php
on line %d
-
-Warning: Attempt to assign property of non-object in %sbug35785.php on line %d
-<?xml version="1.0"?>
-<root/>
-===DONE===
+Fatal error: Objects used as arrays in post/pre increment/decrement must
return values by reference in %sext/simplexml/tests/bug35785.php on line %d
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php