From: t dot steve at ariadne-quatra dot com
Operating system: Windows 2000 server SP4
PHP version: 5.0.0b2 (beta2)
PHP Bug Type: Unknown/Other Function
Bug description: include_once() sometimes works, sometimes doesn't with each page
refresh
Description:
------------
PHP5 beta2
IIS5
Windows 2000 SP4
ISAPI mode
- Worked correctly with PHP4.3.4 with Zend 2.0.1
- With PHP5 beta2 (also ISAPI mode) a simple PHP page which uses
include_once([local path]) to include the menu part of a web page
sometimes works, sometimes does not (sometimes the menu is included,
sometimes it is not). (There is only the single include_once in the code,
so this is NOT an issue of my trying to include something twice with
include_ONCE... )
- The page contains NO other PHP code, just the lines below:
<% include_once("c:/wwwroot/domain.com/english/inc/header.inc"); %>
(html_head.inc is the file to be included, it contains only html code, no
php)
- Again, note that the exact same page, exact same setup works fine under
4.3.4 - and has done so with previous versions!
- Under PHP5, with every refresh of the page the inclusion of the file is
erratic - every few refreshes the inclusion is not done.
If you need any part of my php.ini, let me know please.
Thanks,
Steve
Reproduce code:
---------------
<html>
<head>
<title>The world of services</title>
</head>
<body>
<% include_once("c:/wwwroot/domain.com/english/inc/header.inc"); %>
Please select from the menu on the left!
</body>
</html>
Expected result:
----------------
A page with the menu on the left (created fromt he included file), plus
the contents.
Actual result:
--------------
Only the contents apperas, the inclusion is not done.
--
Edit bug report at http://bugs.php.net/?id=26618&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26618&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26618&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26618&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26618&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26618&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26618&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26618&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26618&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26618&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26618&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26618&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26618&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26618&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26618&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26618&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26618&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26618&r=float