php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28446 SoapClient Segmentation Fault _getTypes after loading WSDL
Submitted: 2004-05-19 17:36 UTC Modified: 2004-07-19 17:44 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: raewasch at ee dot oulu dot fi Assigned: dmitry (profile)
Status: Not a bug Package: SOAP related
PHP Version: 5.0.0RC2 OS: Linux 2.4.22
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: raewasch at ee dot oulu dot fi
New email:
PHP Version: OS:

 

 [2004-05-19 17:36 UTC] raewasch at ee dot oulu dot fi
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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-06 09:52 UTC] dmitry@php.net
Could you please post your WSDL file here.
I can do nothing without it.
 [2004-07-19 17:42 UTC] dmitry@php.net
I think it is the same as #29109 and #29236, those are fixed.
 [2004-07-19 17:44 UTC] tony2001@php.net
Duplicate -> bogus.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC