summaryrefslogtreecommitdiff
path: root/ext/simplexml/tests/bug37076.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/simplexml/tests/bug37076.phpt')
-rw-r--r--ext/simplexml/tests/bug37076.phpt16
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/simplexml/tests/bug37076.phpt b/ext/simplexml/tests/bug37076.phpt
new file mode 100644
index 0000000..c7f19b3
--- /dev/null
+++ b/ext/simplexml/tests/bug37076.phpt
@@ -0,0 +1,16 @@
+--TEST--
+Bug #37076 (SimpleXML ignores .=)
+--SKIPIF--
+<?php if (!extension_loaded("simplexml")) print "skip"; ?>
+--FILE--
+<?php
+$xml = simplexml_load_string("<root><foo /></root>");
+$xml->foo = "foo";
+$xml->foo .= "bar";
+print $xml->asXML();
+?>
+===DONE===
+--EXPECT--
+<?xml version="1.0"?>
+<root><foo>foobar</foo></root>
+===DONE===