From:             robin dot harvey at chaptereight dot com
Operating system: Linux - Ubuntu
PHP version:      5.2.1
PHP Bug Type:     SOAP related
Bug description:  Segfaults when using more than one SoapVar in a request

Description:
------------
I've got a very simple soap service (written in Java/Tomcat/Axis) which
simply accepts and logs the XML of a soap request.  I need to post complex
XML to the server (an XSL stylesheet) and I'm using SoapVar with XSD_ANYXML
and dealing with the XSL as a string in PHP.  When I try to add more than
one SoapVar object encoded in this way, PHP segfaults.  It's happy with 1
param as a SoapVar, and with both as simple strings.

Reproduce code:
---------------
<?php
$s = new
SoapClient('http://192.168.1.79:8080/axis2/services/BuddyTestService?wsdl');
$data1 = <<<XML
<meta>
    <properties>
        <of>the transform go here!</of>
    </properties>
</meta>
XML;

$data2 = <<<XML
<more>
    <nice>Random content</nice>
    <being>sent to the soap server</being>
</more>
XML;

$tdata = new SoapVar($data1, XSD_ANYXML);
$t = new SoapVar($data2, XSD_ANYXML);

$data = array('TransformData' => $tdata, 'Transform' => $t);
//$data = array('TransformData' => 'foo', 'Transform' => 'bar');
$s->examine($data);
?>

Expected result:
----------------
NULL.  The service is 'In only'

Actual result:
--------------
[EMAIL PROTECTED]:~/projects/buddy/tomcat/soap2$ php test-client-joe.php

Segmentation fault (core dumped)

-- 
Edit bug report at http://bugs.php.net/?id=40609&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40609&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40609&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40609&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40609&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40609&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40609&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40609&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40609&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40609&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40609&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40609&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40609&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40609&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40609&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40609&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40609&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40609&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40609&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40609&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40609&r=mysqlcfg

Reply via email to