From:             
Operating system: linux
PHP version:      5.2.14
Package:          Unknown/Other Function
Bug Type:         Bug
Bug description:Alternative PHP Cache Bug /mv cmd

Description:
------------
# I have the following directories structure

# document root: /home/mysite/web

# lib directory /home/mysite/lib/vendor/



# I have the following line of code in 'index.php' to include the
'mytest.class.php'. It works well in browser, lynx and on CLI.



require_once(dirname(__FILE__)."/../lib/vendor/mytest.class.php");



# index.php in web directory

# mytest.class.php is in lib/vendor directory



# I performed the following linux commands:

# $ mkdir -p /home/mysite/libtest

# $ mv /home/mysite/lib/* /home/mysite/libtest



# Then I changed the above php code (index.php) as follows:

require_once(dirname(__FILE__)."/../libtest/vendor/mytest.class.php");



# When I run the script from browser, it shows error that fail to find the
file 'mytest.class.php' in /home/mysite/vendor. I cleared the cache, used
other fresh browser, but same results, lynx showing the same results, CLI
works though



# I am using APC

# os: Linux www.wackylab.com 2.6.18-028stab059.6 #1 SMP Fri Nov 14 14:01:22
MSK 2008 i686 i686 i386 GNU/Linux





Test script:
---------------
# change this line of code in index.php

require_once(dirname(__FILE__)."/../lib/vendor/mytest.class.php");

echo "This is a test";



# to:

require_once(dirname(__FILE__)."/../libtest/vendor/mytest.class.php");

echo "This is a test";

Expected result:
----------------
This is a test

Actual result:
--------------
....failed to open stream: No such file or directory in /home/mysite/....

This is a test

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

Reply via email to