#37807 [Opn->Fbk]: schema import failure sigsegv
ID: 37807
Updated by: tony2001@php.net
Reported By: jwarring at aol dot net
-Status: Open
+Status: Feedback
Bug Type: SOAP related
Operating System: Linux RedHat AS3
PHP Version: 5.1.4
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2006-06-14 16:56:26] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37807&edit=1
Thread (3 messages)