Bug #78279 [NEW]: libxml_disable_entity_loader settings is shared between requests (cgi-fcgi)

From: Date: Fri, 12 Jul 2019 09:13:34 +0000
Subject: Bug #78279 [NEW]: libxml_disable_entity_loader settings is shared between requests (cgi-fcgi)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221713@lists.php.net to get a copy of this message
From: julius dot boellmann at gmail dot com Operating system: Ubuntu 18.04.2 LTS PHP version: 7.2.20 Package: *XML functions Bug Type: Bug Bug description:libxml_disable_entity_loader settings is shared between requests (cgi-fcgi) Description: ------------ The problem that the function libxml_disable_entity_loader shares its state between requests, that was reported and fixed for fpm in https://bugs.php.net/bug.php?id=64938, does also effect the sapi „cgi-fcgi“(php fastcgi). Our hoster uses this sapi in connection with apache2 and we have noticed the same behaviour. To reproduce that, use the following two scripts. First call Script 1 and than immediately call Script 2. Test script: --------------- #Script 1 <?php libxml_disable_entity_loader(true); #Script 2 <?php die(var_dump(libxml_disable_entity_loader(false))); Expected result: ---------------- Script 2 should always return false. Actual result: -------------- Script 2 returns true. (if other processes running on the server influencing libxml_disable_entity_loader the test has to been repeated a few times) -- Edit bug report at https://bugs.php.net/bug.php?id=78279&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=78279&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=78279&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=78279&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=78279&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78279&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78279&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78279&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78279&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78279&r=support Expected behavior: https://bugs.php.net/fix.php?id=78279&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78279&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78279&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78279&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78279&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=78279&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78279&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78279&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78279&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78279&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78279&r=mysqlcfg

« previous php.bugs (#221713) next »