Bug #71931 [NEW]: Soap cache_wsdl WSDL_CACHE_MEMORY option on CLI
From: nikspijkerman at gmail dot com
Operating system: Ubuntu 14.04
PHP version: 7.0.4
Package: SOAP related
Bug Type: Bug
Bug description:Soap cache_wsdl WSDL_CACHE_MEMORY option on CLI
Description:
------------
Using the SoapClient option cache_wsdl: WSDL_CACHE_MEMORY and/or
WSDL_CACHE_BOTH from the Symfony 2.8 Console causes a segmentation
fault. Using WSDL_CACHE_DISK does not throw an error.
Simply executing the script from a plain PHP file does not seem to
reproduce the fault.
[New LWP 29769]
[Thread debugging using libthread_db enabled]
Using host libthread_db library
"/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `php app/console provider:generate_dfp_services'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f91f03700db in zend_hash_destroy ()
(gdb) bt
#0 0x00007f91f03700db in zend_hash_destroy ()
#1 0x00007f91dfaa7f31 in delete_type_persistent () from
/usr/lib/php/20151012/soap.so
#2 0x00007f91f03701dd in zend_hash_destroy ()
#3 0x00007f91dfaaf3e1 in ?? () from /usr/lib/php/20151012/soap.so
#4 0x00007f91dfaaf44f in ?? () from /usr/lib/php/20151012/soap.so
#5 0x00007f91f03700d2 in zend_hash_destroy ()
#6 0x00007f91dfa7ff0b in zm_shutdown_soap () from
/usr/lib/php/20151012/soap.so
#7 0x00007f91f0366313 in module_destructor ()
#8 0x00007f91f035eedc in ?? ()
#9 0x00007f91f0370c48 in zend_hash_graceful_reverse_destroy ()
#10 0x00007f91f035fea5 in zend_shutdown ()
#11 0x00007f91f0303f6b in php_module_shutdown ()
#12 0x00007f91f01f4486 in main ()
Test script:
---------------
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class MySoapClientCommand extends ContainerAwareCommand
{
protected function configure()
{
$this->setName('app:mysoapclient');
}
protected function execute(InputInterface $input, OutputInterface
$output)
{
$wsdl =
'https://ads.google.com/apis/ads/publisher/v201502/ActivityService?wsdl';
$client = new \SoapClient($wsdl, ['cache_wsdl' =>
WSDL_CACHE_MEMORY]);
}
}
Then from the CLI:
$ php app/console app:mysoapclient
--
Edit bug report at https://bugs.php.net/bug.php?id=71931&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71931&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71931&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71931&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=71931&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=71931&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=71931&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=71931&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=71931&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=71931&r=support
Expected behavior: https://bugs.php.net/fix.php?id=71931&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=71931&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=71931&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=71931&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71931&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=71931&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=71931&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=71931&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71931&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=71931&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=71931&r=mysqlcfg
Thread (15 messages)
- nikspijkerman at gmail dot com
- colin at mollenhour dot comBug #71931 [Com]: Soap cache_wsdl WSDL_CACHE_MEMORY option on CLI
- johan-php at localhost dot nlBug #71931 [Com]: Soap cache_wsdl WSDL_CACHE_MEMORY option on CLI
- dominic at varspool dot comBug #71931 [Com]: Soap cache_wsdl WSDL_CACHE_MEMORY option on CLI
- dominic at varspool dot comBug #71931 [Com]: Soap cache_wsdl WSDL_CACHE_MEMORY option on CLI
- fedoreyev at gmail dot comBug #71931 [Com]: Soap cache_wsdl WSDL_CACHE_MEMORY option on CLI
- kevin dot letord at openclassrooms dot comBug #71931 [Com]: Soap cache_wsdl WSDL_CACHE_MEMORY option on CLI
- gcarrette at wayfair dot comBug #71931 [Com]: Soap cache_wsdl WSDL_CACHE_MEMORY option on CLI
- bddenhartog at gmail dot comBug #71931 [Com]: Soap cache_wsdl WSDL_CACHE_MEMORY option on CLI
- tentje at gmail dot comBug #71931 [Com]: Soap cache_wsdl WSDL_CACHE_MEMORY option on CLI
- tech at enuygun dot comBug #71931 [Com]: Soap cache_wsdl WSDL_CACHE_MEMORY option on CLI
- nunojsferreira at gmail dot comBug #71931 [Com]: Soap cache_wsdl WSDL_CACHE_MEMORY option on CLI
- mike dot grinspan at gmail dot comBug #71931 [Com]: Soap cache_wsdl WSDL_CACHE_MEMORY option on CLI
- nikic@php.netBug #71931 [Opn]: Soap cache_wsdl WSDL_CACHE_MEMORY option on CLI
- nikic@php.netBug #71931 [Opn->Dup]: Soap cache_wsdl WSDL_CACHE_MEMORY option on CLI