]> granicus.if.org Git - php/commitdiff
add test for bug #73452
authorAnatol Belski <ab@php.net>
Mon, 21 Nov 2016 14:25:46 +0000 (15:25 +0100)
committerAnatol Belski <ab@php.net>
Mon, 21 Nov 2016 14:25:46 +0000 (15:25 +0100)
ext/soap/tests/bug73452.phpt [new file with mode: 0644]

diff --git a/ext/soap/tests/bug73452.phpt b/ext/soap/tests/bug73452.phpt
new file mode 100644 (file)
index 0000000..75f8c27
--- /dev/null
@@ -0,0 +1,17 @@
+--TEST--
+Bug #73452 Segfault (Regression for #69152)
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
+--FILE--
+<?php
+
+$data = 'O:9:"SoapFault":4:{s:9:"faultcode";i:4298448493;s:11:"faultstring";i:4298448543;s:7:"'."\0*\0".'file";i:4298447319;s:7:"'."\0*\0".'line";s:4:"ryat";}';
+echo unserialize($data);
+
+?>
+==DONE==
+--EXPECTF--
+SoapFault exception: [4298448493] 4298448543 in :0
+Stack trace:
+#0 %sbug73452.php(4): unserialize('O:9:"SoapFault"...')
+#1 {main}==DONE==