Bug #70757 [NEW]: $_SERVER["PHP_SELF"] is malformed with PHP-FPM and Apache 2.4.17

From: Date: Wed, 21 Oct 2015 10:17:22 +0000
Subject: Bug #70757 [NEW]: $_SERVER["PHP_SELF"] is malformed with PHP-FPM and Apache 2.4.17
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196722@lists.php.net to get a copy of this message
From: admin at franceserv dot fr Operating system: Linux Debian PHP version: Irrelevant Package: *Directory/Filesystem functions Bug Type: Bug Bug description:$_SERVER["PHP_SELF"] is malformed with PHP-FPM and Apache 2.4.17 Description: ------------ With a simple : <?php phpinfo(); ?> If we look the variable $_SERVER["PHP_SELF"], when the website is running with : Apache 2.4.16 + suPHP : OK Apache 2.4.16 + PHP-FPM : OK Apache 2.4.17 + suPHP : OK Apache 2.4.17 + PHP-FPM : WRONG To obtain the error and check with my webserver in Apache 2.4.17, you need to change your hosts file on this way : 195.154.164.142 www.franceserv.fr And when you go to http://www.franceserv.fr/data/phpinfo/, if the System name is "web2", you will see this : $_SERVER["PHP_SELF"] = http://www.franceserv.fr/data/phpinfo/ and it's WRONG, because there are no domain name and protocol in a PHP_SELF variable. If you take off the line from your hosts file, go to the same address and refresh the page (check your cache, you need to be on System name web1 or web3, not web2), you will see that : $_SERVER["PHP_SELF"] = /data/phpinfo/index.php which is correct. The problem exist only with Apache 2.4.17 + PHP-FPM. When i test with 2.4.16 + PHP-FPM all is GOOD. php.ini are same between PHP 5.4.16 and 5.4.17 and httpd.conf are same between Apache 2.4.16 and 2.4.17. -- Edit bug report at https://bugs.php.net/bug.php?id=70757&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70757&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70757&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70757&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=70757&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=70757&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=70757&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=70757&r=needscript Try newer version: https://bugs.php.net/fix.php?id=70757&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=70757&r=support Expected behavior: https://bugs.php.net/fix.php?id=70757&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=70757&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=70757&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=70757&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70757&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=70757&r=dst IIS Stability: https://bugs.php.net/fix.php?id=70757&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=70757&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=70757&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=70757&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=70757&r=mysqlcfg

« previous php.bugs (#196722) next »