Skip to content

Commit

Permalink
Merge branch 'PHP-5.6'
Browse files Browse the repository at this point in the history
* PHP-5.6:
  slightly revised bug69462.phpt
  Test for bug #69462
  • Loading branch information
cmb69 committed Jun 26, 2015
2 parents 25e1b49 + bdf3bb6 commit 95459a4
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions ext/soap/tests/bugs/bug69462.phpt
@@ -0,0 +1,27 @@
--TEST--
Bug #69462 (__soapCall with a SoapVar that has a namespace but no name crashes)
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$namespace = "http://example.com/ns";

$client = new SoapClient(null, [ 'exceptions' => 1, 'location' => "", 'uri' => $namespace ]);

$soapvar = new SoapVar(
array(
new SoapVar('value', XSD_STRING, null, null, null, $namespace)
),
SOAP_ENC_OBJECT, null, null, 'name', $namespace
);

try {
$client->__soapCall('method', array($soapvar));
}
catch (Exception $e) {
/* ignore any errors, we're testing for segmentation fault anyway */
echo "good";
}
?>
--EXPECT--
good

0 comments on commit 95459a4

Please sign in to comment.