From: jwarring at aol dot net Operating system: Linux RedHat AS3 PHP version: 5.1.4 PHP Bug Type: Reproducible crash Bug description: schema import failure sigsegv
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 bug report at http://bugs.php.net/?id=37807&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37807&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37807&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37807&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37807&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37807&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37807&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37807&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37807&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37807&r=support Expected behavior: http://bugs.php.net/fix.php?id=37807&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37807&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37807&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37807&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37807&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37807&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37807&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37807&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37807&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37807&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37807&r=mysqlcfg