summaryrefslogtreecommitdiff
path: root/ext/wddx/tests/bug74145.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/wddx/tests/bug74145.phpt')
-rw-r--r--ext/wddx/tests/bug74145.phpt16
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/wddx/tests/bug74145.phpt b/ext/wddx/tests/bug74145.phpt
new file mode 100644
index 0000000000..a99a1178ca
--- /dev/null
+++ b/ext/wddx/tests/bug74145.phpt
@@ -0,0 +1,16 @@
+--TEST--
+Bug #74145 (wddx parsing empty boolean tag leads to SIGSEGV)
+--SKIPIF--
+<?php
+if (!extension_loaded("wddx")) print "skip";
+?>
+--FILE--
+<?php
+$data = file_get_contents(__DIR__ . '/bug74145.xml');
+$wddx = wddx_deserialize($data);
+var_dump($wddx);
+?>
+DONE
+--EXPECTF--
+NULL
+DONE \ No newline at end of file