php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58992 require_once including file twice
Submitted: 2009-12-14 22:51 UTC Modified: 2009-12-14 22:52 UTC
From: donraman@php.net Assigned: DonRaman (profile)
Status: Closed Package: WinCache (PECL)
PHP Version: 5.3.0 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
32 + 43 = ?
Subscribe to this entry?

 
 [2009-12-14 22:51 UTC] donraman@php.net
Description:
------------
Including file using require_once in a case insensitive way is including the file twice. This is a regression from the RC release of WINCACHE 1.0.0

Reproduce code:
---------------
test.php

{

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<?php
 require_once 'Library/common_test.php';
 require_once 'Library/test_code.php';
 
?>
<head>
 <title>Test</title>
</head>
<body>

</body>
</html>

}

common_test.php

{

<?php
echo 'test';

?> 

}

 test_code.php

{

<?php
require_once $_SERVER['DOCUMENT_ROOT'].'/library/common_test.php';

?>


}


Expected result:
----------------
test

Actual result:
--------------
testtest

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-14 22:52 UTC] don dot raman at microsoft dot com
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.

This has been fixed now. The fix will be available in next release which will be WINCACHE 1.0.1.

Details about change can be seen at:
http://svn.php.net/viewvc/pecl/wincache/trunk/wincache_aplist.c?r1=291694&r2=291048
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 05:01:33 2024 UTC