xref: /PHP-8.3/ext/soap/tests/bug73452.phpt (revision de6cf68a)
1--TEST--
2Bug #73452 Segfault (Regression for #69152)
3--EXTENSIONS--
4soap
5--FILE--
6<?php
7
8$data = 'O:9:"SoapFault":4:{s:9:"faultcode";i:4298448493;s:11:"faultstring";i:4298448543;s:7:"'."\0*\0".'file";s:0:"";s:7:"'."\0*\0".'line";i:0;}';
9echo unserialize($data);
10
11?>
12==DONE==
13--EXPECTF--
14Fatal error: Uncaught TypeError: Cannot assign %s to property SoapFault::$faultcode of type ?string in %s:%d
15Stack trace:
16#0 %sbug73452.php(4): unserialize('O:9:"SoapFault"...')
17#1 {main}
18  thrown in %s on line %d
19