Bug #72937 [NEW]: SOAP WSDL memory cache alters interpreter exit code

From: Date: Thu, 25 Aug 2016 08:06:57 +0000
Subject: Bug #72937 [NEW]: SOAP WSDL memory cache alters interpreter exit code
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203530@lists.php.net to get a copy of this message
From: luza dot mbox at gmail dot com Operating system: Debian Linux PHP version: 7.0.10 Package: SOAP related Bug Type: Bug Bug description:SOAP WSDL memory cache alters interpreter exit code Description: ------------ When WSDL caching is enabled and cache in memory option is used, and WSDL consists of several files imported by using <xsd:import /> tag, PHP interpreter exit code appears to be 1 instead of 0. PHP 7.0.10 (cli) (built: Aug 19 2016 18:46:19) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.10, Copyright (c) 1999-2016, by Zend Technologies root@0d2dbb96cd17:/data# php -i | grep soap /usr/local/etc/php/conf.d/docker-php-ext-soap.ini, soap 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 root@0d2dbb96cd17:/data# php -d soap.wsdl_cache=0 test.php; echo $? 0 root@0d2dbb96cd17:/data# php -d soap.wsdl_cache=1 test.php; echo $? 0 root@0d2dbb96cd17:/data# php -d soap.wsdl_cache=2 test.php; echo $? 1 root@0d2dbb96cd17:/data# php -d soap.wsdl_cache=3 test.php; echo $? 1 Configure Command => './configure' '--with-config-file-path=/usr/local/etc/php' '--with-config-file-scan-dir=/usr/local/etc/php/conf.d' '--disable-cgi' '--enable-ftp' '--enable-mbstring' '--enable-mysqlnd' '--with-curl' '--with-libedit' '--with-openssl' '--with-zlib' '--enable-fpm' '--with-fpm-user=www-data' '--with-fpm-group=www-data' Test script: --------------- test.php: <?php $wsdl = 'https://api.hermes-dpd.ru/ws/webservice.svc?wsdl'; $bu = '5'; $soapClient = new SoapClient($wsdl, ['soap_version' => SOAP_1_1]); try { $result = $soapClient->GetParcelShops(['businessUnitCode' => $bu]); } catch (\Exception $e) { } Expected result: ---------------- Interpreter exit code is 0. Actual result: -------------- Interpreter exit code is 1 when WSDL caching in memory is enabled and WSDL consists of several files. -- Edit bug report at https://bugs.php.net/bug.php?id=72937&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72937&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72937&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72937&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=72937&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=72937&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=72937&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=72937&r=needscript Try newer version: https://bugs.php.net/fix.php?id=72937&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=72937&r=support Expected behavior: https://bugs.php.net/fix.php?id=72937&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=72937&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=72937&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=72937&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72937&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=72937&r=dst IIS Stability: https://bugs.php.net/fix.php?id=72937&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=72937&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=72937&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=72937&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=72937&r=mysqlcfg

« previous php.bugs (#203530) next »