xref: /PHP-7.4/ext/soap/tests/bugs/bug54911.phpt (revision 782352c5)
1--TEST--
2Bug #54911 (Access to a undefined member in inherit SoapClient may cause Segmentation Fault)
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--FILE--
6<?php
7    class XSoapClient extends SoapClient {
8        function __doRequest($request, $location, $action, $version, $one_way=false) {
9            echo self::$crash;
10        }
11    }
12    $client = new XSoapClient(null, array('uri'=>'', 'location'=>''));
13    $client->__soapCall('', array());
14?>
15--EXPECTF--
16Fatal error: Uncaught SoapFault exception: [Client] Access to undeclared static property: XSoapClient::$crash in %sbug54911.php:4
17Stack trace:
18#0 [internal function]: XSoapClient->__doRequest('<?xml version="...', '', '#', 1, 0)
19#1 %sbug54911.php(8): SoapClient->__soapCall('', Array)
20#2 {main}
21  thrown in %sbug54911.php on line 4
22