我想从php5.6和symfony2 resp升级到php7和symfony3。我有一些symfony控制台命令,它使用soap来请求第三方api。
升级到php7和php7.0-soap之后,命令失败并出现分段错误。我尝试用gdb调试,下面是跟踪。貌似这是php7.0-soap的问题?解决方案是什么?
Program received signal SIGSEGV, Segmentation fault.
0x00005555557bc4db in zend_hash_destroy ()
(gdb) bt
#0 0x00005555557bc4db in zend_hash_destroy ()
#1 0x00007fffecbbe141 in delete_type_persistent () from /usr/lib/php/20151012/soap.so
#2 0x00005555557bc5dd in zend_hash_destroy ()
#3 0x00007fffecbc55f1 in ?? () from /usr/lib/php/20151012/soap.so
#4 0x00007fffecbc565f in ?? () from /usr/lib/php/20151012/soap.so
#5 0x00005555557bc4d2 in zend_hash_destroy ()
#6 0x00007fffecb95f0b in zm_shutdown_soap () from /usr/lib/php/20151012/soap.so
#7 0x00005555557b25f3 in module_destructor ()
#8 0x00005555557ab08c in ?? ()
#9 0x00005555557bd048 in zend_hash_graceful_reverse_destroy ()
#10 0x00005555557ac055 in zend_shutdown ()
#11 0x000055555574fb3b in php_module_shutdown ()
#12 0x000055555563d796 in main ()
答案 0 :(得分:3)
目前您无法在PHP7中使用WSDL_CACHE_MEMORY
(或WSDL_CACHE_BOTH
):https://bugs.php.net/bug.php?id=71931
使用WSDL_CACHE_DISK
代替soap.wsdl_cache
设置php.ini
,或者 - 如果您无法访问php.ini
- 使用ini_set
:< / p>
ini_set('soap.wsdl_cache', WSDL_CACHE_DISK);