Bug #68838 [NEW]: XMLReader::open stops working under php-fpm after about 30min
From: fs at gigacodes dot de
Operating system: Centos 7
PHP version: 5.5.20
Package: XML Reader
Bug Type: Bug
Bug description:XMLReader::open stops working under php-fpm after about 30min
Description:
------------
the xmlreader open call will function correctly for about 15-30minutes
after starting php-fpm. After that it will not even try to access the
remote url and fail with an "failed to load external entity" error.
In an strace i can sometimes see that it will do a 'stat' system call on
the url (which is quite weird) but will not even try to do anything
else.
When i restart php-fpm it will work immediately again for about 30 min.
The wsdl file in the test is just a public weather api i used for
reproducing.
We initially encountered this problem within SOAPClient but could track
it down to XMLReader.
System is a CentOS 7 with all updates (as of 15.01.15) and a php-5.5.20
compiled with:
./configure --prefix=/home/php-${version} --with-mysql --with-gd
--with-curl --with-zlib --with-jpeg-dir=/usr/lib/ --with-iconv
--with-pdo-mysql=mysqlnd --with-openssl --enable-mbstring --with-mysqli
--with-gettext --enable-sockets --with-mcrypt --with-freetype-dir=/usr
--enable-soap --with-xsl --enable-opcache
--with-oci8=instantclient,/usr/lib/oracle/12.1/client64/lib
--enable-sysvsem --enable-fpm --enable-pcntl --enable-bcmath --with-gmp
Test script:
---------------
<?php
function loadXML() {
try {
$xml = new XMLReader();
$xml->open("http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL");
$xml->setParserProperty(XMLReader::VALIDATE, true);
var_dump($xml->isValid()) . "\n";
return null;
} catch (Exception $e) {
return $e;
}
}
$start = new DateTime();
echo "Start: ". $start->format('Y-m-d H:i:s') ."\n";
$e = loadXML();
var_dump($e);
--
Edit bug report at https://bugs.php.net/bug.php?id=68838&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68838&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68838&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68838&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68838&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68838&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68838&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68838&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68838&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68838&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68838&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68838&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68838&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68838&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68838&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68838&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68838&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68838&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68838&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68838&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68838&r=mysqlcfg
Thread (5 messages)
- fs at gigacodes dot de