|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-11-06 15:38 UTC] rquadling@php.net
[2009-11-06 15:39 UTC] rquadling@php.net
[2009-11-06 15:51 UTC] rquadling@php.net
[2009-11-07 19:27 UTC] ksingla@php.net
[2009-11-07 20:38 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 12 21:00:01 2025 UTC |
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 )