Annotation of embedaddon/php/ext/soap/tests/bugs/bug54911.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #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--
                     16: Fatal error: Uncaught SoapFault exception: [Client] Access to undeclared static property: XSoapClient::$crash in %sbug54911.php:4
                     17: Stack trace:
                     18: #0 %sbug54911.php(4): XSoapClient::__doRequest()
                     19: #1 [internal function]: XSoapClient->__doRequest('<?xml version="...', '', '#', 1, 0)
                     20: #2 %sbug54911.php(8): SoapClient->__soapCall('', Array)
                     21: #3 {main}
                     22:   thrown in %sbug54911.php on line 4

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>