|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-11-20 22:57 UTC] bostjan at teon dot si
Description: ------------ When instantiating SOAP client, if WSDL cache exists and is "inappropriate" (either corrupted, or sth similar), PHP crashes. This was tested with: - php 5.6.15 (remi's CentOS repos) - php 5.6.13 (custom built) - php 5.5.9 (ubuntu default) - php 5.3.3 (centos 6 - I think it was originally created with this one) Test script: --------------- git clone https://github.com/bostjan/php-bug-soap-segfault.git cd php-bug-soap-segfault ./run.sh /* * Essentialy what script does: * 1. runs the soap-client.php for the first time, to create wsdl cache file * 2. replaces OK cache file with corrupted one * 3. reruns soap-client.php which now segfaults * * Content of soap-client.php: * ---------------------------------- * <?php * ini_set('soap.wsdl_cache_enabled', true); * ini_set('soap.wsdl_cache_dir', __DIR__); * $soap = new SoapClient ("./services.wsdl"); * echo "no segfault"; * ?> * ---------------------------------- */ Expected result: ---------------- ### Now the output will be 'no segfault': no segfault ### Installing 'inappropriate' cache file...done. ### Now there will be segmentation fault: no segfault /* Essentially no segmentation fault. */ Actual result: -------------- ### Now the output will be 'no segfault': no segfault ### Installing 'inappropriate' cache file...done. ### Now there will be segmentation fault: ./run.sh: line 23: 19892 Segmentation fault php ./soap-client.php PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 19:00:01 2025 UTC |
I just had this. We had invalid cache files because of a full disk incident before. +1 on invalidate+delete behaviour suggested. PHP 5.6.31-6+ubuntu16.04.1+deb.sury.org+1 (cli) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies Kernel: 4.4.0-96-generic #119-Ubuntu SMP