From:             info at libertydesign dot de
Operating system: Windows Vista
PHP version:      5.3.0
PHP Bug Type:     Apache2 related
Bug description:  resolving symlinks works unstable

Description:
------------
Symbolic links under Windows Vista doesnt work as expected anymore when
using PHP 5.3 in combination with Apache 2.2.12.

See Code below.
Resolving to Base.php works. But using BASE_DIR in Base.php itself causes

Warning:
require_once(C:\localhost\htdocs\page/lib/base/Database.class.php)
[function.require-once]: failed to open stream: No such file or directory
in C:\localhost\htdocs\page/lib/base/Base.php on line 7

Fatal error: require_once() [function.require]: Failed opening required
'C:\localhost\htdocs\page/lib/base/Database.class.php'
(include_path='.;C:\localhost\php\pear\') in
C:\localhost\htdocs\page\lib\base\Base.php on line 7

but sometimes it works, than i reload and it doesn't work again.
I don't know why. With PHP 5.2.9 it works as expected.


Reproduce code:
---------------
/* in C:\localhost\page/index.php */
// something like C:\localhost\page/
define('BASE_DIR', dirname(__FILE__).'/');

// the base dir is a symbolic link to C:\localhost\_base/
require_once(BASE_DIR.'lib/base/Base.php');



/* in C:\localhost\_base/Base.php */
require_once(BASE_DIR.'lib/base/Database.php');


-- 
Edit bug report at http://bugs.php.net/?id=49417&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=49417&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=49417&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=49417&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=49417&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=49417&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=49417&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=49417&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=49417&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=49417&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=49417&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=49417&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=49417&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=49417&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=49417&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=49417&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=49417&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=49417&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=49417&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=49417&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=49417&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=49417&r=mysqlcfg

Reply via email to