Bug #72050 [NEW]: Problems loading XSLT style sheets from some, but not all, PHP-FPM workers
| From: | dirkjan at ochtman dot nl | Date: | Mon, 18 Apr 2016 14:18:58 +0000 |
| Subject: | Bug #72050 [NEW]: Problems loading XSLT style sheets from some, but not all, PHP-FPM workers | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-200629@lists.php.net to get a copy of this message | ||
From: dirkjan at ochtman dot nl
Operating system: Linux
PHP version: 5.6.20
Package: FPM related
Bug Type: Bug
Bug description:Problems loading XSLT style sheets from some, but not all, PHP-FPM workers
Description:
------------
In one of my legacy websites, I'm using XSLT using the
XSLTProcessor
class from the xslt extension:
function process() {
$xslt = new XSLTProcessor();
$xslt->importStylesheet($this->xsl);
foreach ($this->params as $name => $value) {
$xslt->setParameter('', $name, $value);
}
return $xslt->transformToXML($this->xml);
}
The XSLT stylesheet I'm using also does some includes, with paths
relative to the executed PHP script:
<xsl:include href="assets/xsl/basic.xsl" />
However, since migrating to PHP-FPM, I've found that sometimes, the
worker processes get into a state where some workers work correctly,
however some workers fail to find the included XSL sheets, resulting in
errors:
Warning: XSLTProcessor::importStylesheet(): I/O warning : failed to load
external entity "/var/www/hebe.nl/http/assets/xsl/basic.xsl" in
/var/www/hebe.nl/http/include/classes.sys.php on line 315
Warning: XSLTProcessor::importStylesheet(): compilation error: file
/var/www/hebe.nl/http/ line 14 element include in
/var/www/hebe.nl/http/include/classes.sys.php on line 315
Warning: XSLTProcessor::importStylesheet(): xsl:include : unable to load
/var/www/hebe.nl/http/assets/xsl/basic.xsl in
/var/www/hebe.nl/http/include/classes.sys.php on line 315
When restarting PHP-FPM, the problem fixes itself, but that's not a very
nice way to solve it. :)
Expected result:
----------------
XSLT includes should work (or not) consistently.
Actual result:
--------------
Reloading the page sometimes results in the correct HTML, sometimes has
errors.
--
Edit bug report at https://bugs.php.net/bug.php?id=72050&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72050&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72050&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72050&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=72050&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=72050&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=72050&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=72050&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=72050&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=72050&r=support
Expected behavior: https://bugs.php.net/fix.php?id=72050&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=72050&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=72050&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=72050&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72050&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=72050&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=72050&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=72050&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72050&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=72050&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=72050&r=mysqlcfg