From af17316fcdb685a0b0fe604be8a43116836142b6 Mon Sep 17 00:00:00 2001 From: Tomasz Sawicki Date: Thu, 25 Jun 2015 18:32:01 +0200 Subject: [PATCH] Test for bug #69462 Test scenario for already fixed bug #69462 with segmentation fault when SoapVar XML node name was null. --- ext/soap/tests/bugs/bug69462.phpt | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 ext/soap/tests/bugs/bug69462.phpt diff --git a/ext/soap/tests/bugs/bug69462.phpt b/ext/soap/tests/bugs/bug69462.phpt new file mode 100644 index 0000000000..011e5e202b --- /dev/null +++ b/ext/soap/tests/bugs/bug69462.phpt @@ -0,0 +1,26 @@ +--TEST-- +Bug #69462 __soapCall with a SoapVar that has a namespace but no name crashes +--SKIPIF-- + +--FILE-- + 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 -- 2.40.0