ID: 37766 Updated by: [EMAIL PROTECTED] Reported By: boris_k at iname dot com -Status: Open +Status: Feedback Bug Type: Scripting Engine problem Operating System: win2000 PHP Version: 5CVS-2006-06-09 (snap) New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2006-06-09 15:37:05] boris_k at iname dot com Description: ------------ File inc/test3.inc included in code more then one time. php is module of apache 2.2 php.ihi is here http://bdr.kiev.ua/tmpboris/php.ini till some time. ICQ 176869864 Good luck! Reproduce code: --------------- File test.php <?php include_once('inc/test3.inc'); // it have to print array include_once('inc/test3.inc'); // no output include_once('inc/test3.inc'); // no output include_once ('inc/test2.inc'); // ?> File inc/test2.inc <?php include_once ("test3.inc"); ?> File inc/test3.inc <?php echo "file inc/file3.inc\n"; print_r(get_included_files ( )); ?> Expected result: ---------------- file inc/file3.inc Array ( [0] => C:\tmp\bdr\html\php\test.php [1] => C:\tmp\bdr\html\php\inc\test3.inc ) Actual result: -------------- file inc/file3.inc Array ( [0] => C:\tmp\bdr\html\php\test.php [1] => C:\tmp\bdr\html\php\inc\test3.inc ) file inc/file3.inc Array ( [0] => C:\tmp\bdr\html\php\test.php [1] => C:\tmp\bdr\html\php\inc\test3.inc [2] => C:\tmp\bdr\html\php\inc\test2.inc [3] => c:\tmp\bdr\html\php\inc\test3.inc ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37766&edit=1