ID:               37766
 Comment by:       boris_k at iname dot com
 Reported By:      boris_k at iname dot com
 Status:           No Feedback
 Bug Type:         Scripting Engine problem
 Operating System: win2000
 PHP Version:      5CVS-2006-06-09 (snap)
 New Comment:

in php 5.2.6 all works well.

Thank you for fix.

Close this topic, please.

Boris.


Previous Comments:
------------------------------------------------------------------------

[2009-03-21 22:32:48] jim_janer at hotmail dot com

I am using XAMPP and include_once reads more than once every time I
read again the same PHP file. Is this the same bug?

------------------------------------------------------------------------

[2006-10-04 01:00:01] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2006-09-26 22:13:59] [email protected]

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



------------------------------------------------------------------------

[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

Reply via email to