#50102 [NEW]: With CGI/FastCGI, auto_prepend_file and auto_append_file duplication.

From: Date: Fri, 06 Nov 2009 15:03:32 +0000
Subject: #50102 [NEW]: With CGI/FastCGI, auto_prepend_file and auto_append_file duplication.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-144314@lists.php.net to get a copy of this message
From: RQuadling at GMail dot com Operating system: Windows XP SP3 PHP version: 5.3SVN-2009-11-06 (snap) PHP Bug Type: CGI related Bug description: With CGI/FastCGI, auto_prepend_file and auto_append_file duplication. Description: ------------ Hi. I have a script D:\PHP\Includes\auto_loader.php My include_path=C:\PHP5\PEAR;D:\PHP\Includes;. My auto_prepend_file=auto_loader.php For this bug report, I've also set auto_append_file=show_includes.php At the CLI, all is well. Via CGI-FastCGI (I'm using IIS7, but I can replicate the issue via the commandline using php-cgi.exe), I get an extra entries. Using ... CD C:\ C:\PHP5\php.exe C:\PHP5\php-cgi.exe and pressing CTRL+Z (or F6) and then ENTER to leave PHP reveals the issue. Interestingly, if I use ... C:\PHP5\php-cgi -n -d auto_prepend_file=D:\PHP\Includes\auto_loader.php -d auto_append_file=D:\PHP\Includes\show_includes.php, then all is well. So it seems reading the ini file and processing the auto_append_file/auto_prepend_file entries causes the issue. Maybe. It looks that way. Reproduce code: --------------- --------auto_loader.php <?php // Nothing needed here. All my code removed. ?> -------show_includes.php <?php print_r(get_included_files()); ?> Expected result: ---------------- Array ( [0] => C:\- [1] => D:\PHP\Includes\auto_loader.php [2] => D:\PHP\Includes\show_includes.php ) Array ( [0] => C:\- [1] => D:\PHP\Includes\auto_loader.php [2] => D:\PHP\Includes\show_includes.php ) Actual result: -------------- Array ( [0] => C:\- [1] => D:\PHP\Includes\auto_loader.php [2] => D:\PHP\Includes\show_includes.php ) X-Powered-By: PHP/5.3.2-dev Content-type: text/html; charset=UTF-8 Array ( [0] => C:\- [1] => C:\auto_loader.php [2] => D:\PHP\Includes\auto_loader.php [3] => C:\show_includes.php [4] => D:\PHP\Includes\show_includes.php ) -- Edit bug report at http://bugs.php.net/?id=50102&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50102&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50102&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50102&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50102&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50102&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50102&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50102&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50102&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50102&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50102&r=support Expected behavior: http://bugs.php.net/fix.php?id=50102&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50102&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50102&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50102&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50102&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50102&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50102&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50102&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50102&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50102&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50102&r=mysqlcfg

« previous php.bugs (#144314) next »