Bug #71332 [NEW]: SoapClient crash with bus error
| From: | humbads at alum dot mit dot edu | Date: | Sun, 10 Jan 2016 20:22:18 +0000 |
| Subject: | Bug #71332 [NEW]: SoapClient crash with bus error | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-198558@lists.php.net to get a copy of this message | ||
From: humbads at alum dot mit dot edu
Operating system: FreeBSD 10.2
PHP version: 5.6.17
Package: SOAP related
Bug Type: Bug
Bug description:SoapClient crash with bus error
Description:
------------
PHP crashes with a "bus error" message when calling the SoapClient
constructor with any WSDL URL and no options. Everything works fine if
WSDL caching is disabled. Strangely, everything also works fine when
running the sample code from the command line like this:
php -r 'var_dump(new
SoapClient("http://www.webservicex.com/globalweather.asmx?wsdl"));'
Here are my SOAP settings - everything should be default:
php -i | grep -i soap
soap
Soap Client => enabled
Soap Server => enabled
soap.wsdl_cache => 1 => 1
soap.wsdl_cache_dir => /tmp => /tmp
soap.wsdl_cache_enabled => 1 => 1
soap.wsdl_cache_limit => 5 => 5
soap.wsdl_cache_ttl => 86400 => 86400
Notes:
* The test script is using a public/free WSDL URL.
* Permissions on the /tmp folder are "drwxrwxrwt", and cached wsdl
temporary files are being created there fine.
* I think PHP is crashing because the error handler is not being
triggered in my production code.
Test script:
---------------
<?php
// Disable wsdl cache for workaround
// ini_set('soap.wsdl_cache_enabled', 0);
var_dump(new
SoapClient("http://www.webservicex.com/globalweather.asmx?wsdl"));
?>
Expected result:
----------------
object(SoapClient)#1 (2) {
["_soap_version"]=>
int(1)
["sdl"]=>
resource(17) of type (Unknown)
}
Actual result:
--------------
Bus error
--
Edit bug report at https://bugs.php.net/bug.php?id=71332&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71332&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71332&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71332&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=71332&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=71332&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=71332&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=71332&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=71332&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=71332&r=support
Expected behavior: https://bugs.php.net/fix.php?id=71332&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=71332&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=71332&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=71332&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71332&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=71332&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=71332&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=71332&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71332&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=71332&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=71332&r=mysqlcfg