From:             raewasch at ee dot oulu dot fi
Operating system: Linux 2.4.22
PHP version:      5.0.0RC2
PHP Bug Type:     SOAP related
Bug description:  SoapClient Segmentation Fault _getTypes after loading WSDL

Description:
------------
A very simple soap client with a fairly complex WSDL file segfaults on
__getTypes()

Code is below.  No GDB trace, but if this can't be replicated I can send
one.

The output:
$ php -v
PHP 5.0.0RC2 (cgi) (built: May 17 2004 20:08:36)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.0RC2, Copyright (c) 1998-2004 Zend Technologies


Reproduce code:
---------------
#!/usr/local/bin/php
<?php

ini_set("soap.wsdl_cache_enabled", 0);

$WSDL_URL = "http://www.ee.oulu.fi/~raewasch/mad-cpi-php-bug.wsdl";;
$client = new SoapClient($WSDL_URL);

print_r($client->__getFunctions());
print_r($client->__getTypes());

?>

Expected result:
----------------
Not a segfault.

Actual result:
--------------
$ php soap-test.php 
Content-type: text/html
X-Powered-By: PHP/5.0.0RC2

Array
(
    [0] => void SetDefaultDeliveryRule(SetDefaultDeliveryRuleRequest
$setDefaultDeliveryRule)
<...snip reasonable output...>
    [11] => GetAdRenderURLResponse GetAdRenderURL(GetAdRenderURLRequest
$getAdRenderURL)
)
Segmentation fault


-- 
Edit bug report at http://bugs.php.net/?id=28446&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28446&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28446&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28446&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28446&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28446&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28446&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28446&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28446&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28446&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28446&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28446&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28446&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28446&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28446&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28446&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28446&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28446&r=float

Reply via email to