diff options
| author | Christoph M. Becker <cmb@php.net> | 2015-06-26 23:27:25 +0200 |
|---|---|---|
| committer | Christoph M. Becker <cmb@php.net> | 2015-06-26 23:27:25 +0200 |
| commit | 95459a4d16b4b0b1365d06353a90c5f5c125017b (patch) | |
| tree | 5420b49da2c64d400a38b19cc0d8c9f079cf38bc | |
| parent | 25e1b49ea1c1f5dbbafef0734fac176fceb0af9e (diff) | |
| parent | bdf3bb668f9b82a2392f8331357ffe3953146cbc (diff) | |
| download | php-git-95459a4d16b4b0b1365d06353a90c5f5c125017b.tar.gz | |
Merge branch 'PHP-5.6'
* PHP-5.6:
slightly revised bug69462.phpt
Test for bug #69462
| -rw-r--r-- | ext/soap/tests/bugs/bug69462.phpt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ext/soap/tests/bugs/bug69462.phpt b/ext/soap/tests/bugs/bug69462.phpt new file mode 100644 index 0000000000..eecd8d6749 --- /dev/null +++ b/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 |
