|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37807 schema import failure sigsegv
Submitted: 2006-06-14 16:56 UTC Modified: 2006-06-19 16:04 UTC
From: jwarring at aol dot net Assigned:
Status: Closed Package: SOAP related
PHP Version: 5.1.4 OS: Linux RedHat AS3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: jwarring at aol dot net
New email:
PHP Version: OS:


 [2006-06-14 16:56 UTC] jwarring at aol dot net
I downloaded a liberty discovery wsdl from http:// 
placed in my local directory and then pointed my php script at 
it.  I have some supporting XSDs but probably not all of them 
in that directory.  Output of my ls *.xsd follows:

liberty-idwsf-disco-svc-v2.0.xsd  liberty-idwsf-utility-
v2.0.xsd  ws-addressing-fragment.xsd

the problem is that the new_tns pointer is NULL and the 
expected error msg tries to dereference it.

Reproduce code:
$client = new SoapClient("file:///home/jwarring/cvs/discovery/docs/liberty-idwsf-disco-svc-v2.0.wsdl",
                         array ("trace" => 1, "exceptions" => 0));

Expected result:
a complaint about not being able to find liberty-idwsf-

Actual result:
#0  schema_load_file (ctx=0xbfff79a0, ns=0x92025d0, 
    location=0x91f3f30 "file:///home/jwarring/cvs/discovery/
docs/liberty-idwsf-utility-v2.0.xsd", tns=0x9202388, import=
    at /home/jwarring/ftp/php-5.1.4/ext/soap/php_schema.c:
#1  0x01103c84 in load_schema (ctx=0xbfff79a0, 
schema=0x9202678) at /home/jwarring/ftp/php-5.1.4/ext/soap/
#2  0x01104205 in schema_load_file (ctx=0xbfff79a0, 
    location=0x91f3e88 "file:///home/jwarring/cvs/discovery/
docs/liberty-idwsf-disco-svc-v2.0.xsd", tns=0x91f44f0, 
    import=1) at /home/jwarring/ftp/php-5.1.4/ext/soap/
#3  0x01103c84 in load_schema (ctx=0xbfff79a0, 
schema=0x91f4e30) at /home/jwarring/ftp/php-5.1.4/ext/soap/
#4  0x011051bf in load_wsdl_ex (this_ptr=0x91f194c, 
struri=0x91f4ce8 "", ctx=0xbfff79a0, include=0)
    at /home/jwarring/ftp/php-5.1.4/ext/soap/php_sdl.c:270
#5  0x01106a5b in load_wsdl (this_ptr=0x91f194c, 
    struri=0xbfff7e10 "file:///home/jwarring/cvs/discovery/
    at /home/jwarring/ftp/php-5.1.4/ext/soap/php_sdl.c:638


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-19 11:44 UTC]
Please try using this CVS snapshot:
For Windows:

 [2006-06-19 16:05 UTC] jwarring at aol dot net
I got the expected error msg this time and no core dump :)  Problem Fixed.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 07:01:34 2024 UTC