Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug #42183 (classmap cause crashr in non-wsdl mode)
- Loading branch information
Showing
2 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--TEST-- | ||
Bug #42183 (classmap cause crash in non-wsdl mode ) | ||
--SKIPIF-- | ||
<?php require_once('skipif.inc'); ?> | ||
--FILE-- | ||
<?php | ||
class PHPObject { | ||
} | ||
|
||
$req = <<<EOF | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://ws.sit.com" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:test/></SOAP-ENV:Body></SOAP-ENV:Envelope> | ||
EOF; | ||
|
||
function test() { | ||
return new PHPObject(); | ||
} | ||
|
||
$server = new SoapServer(NULL, array('uri' => 'http://ws.sit.com', | ||
'classmap' => array('Object' => 'PHPObject'))); | ||
$server->addFunction("test"); | ||
ob_start(); | ||
$server->handle($req); | ||
ob_end_clean(); | ||
echo "ok\n"; | ||
--EXPECT-- | ||
ok |