php.net |  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
 [2006-06-14 16:56 UTC] jwarring at aol dot net
Description:
------------
I downloaded a liberty discovery wsdl from http://
www.projectliberty.org/specs/liberty-idwsf-disco-svc-v2.0.wsdl 
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:
---------------
<HTML>
<BODY>
<?php
$client = new SoapClient("file:///home/jwarring/cvs/discovery/docs/liberty-idwsf-disco-svc-v2.0.wsdl",
                         array ("trace" => 1, "exceptions" => 0));
?>
</BODY>
</HTML>


Expected result:
----------------
a complaint about not being able to find liberty-idwsf-
utility-v2.0.xsd

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=
1)
    at /home/jwarring/ftp/php-5.1.4/ext/soap/php_schema.c:
118
#1  0x01103c84 in load_schema (ctx=0xbfff79a0, 
schema=0x9202678) at /home/jwarring/ftp/php-5.1.4/ext/soap/
php_schema.c:2
51
#2  0x01104205 in schema_load_file (ctx=0xbfff79a0, 
ns=0x91f4d88, 
    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/
php_schema.c:136
#3  0x01103c84 in load_schema (ctx=0xbfff79a0, 
schema=0x91f4e30) at /home/jwarring/ftp/php-5.1.4/ext/soap/
php_schema.c:2
51
#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/
docs/liberty-idwsf-disco-svc-v2.0.wsdl")
    at /home/jwarring/ftp/php-5.1.4/ext/soap/php_sdl.c:638


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-19 11:44 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip


 [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: Sun Dec 22 05:01:30 2024 UTC