Bug #52542 [Com]: Alternative PHP Cache Bug /mv cmd

From: Date: Thu, 05 Aug 2010 12:26:19 +0000
Subject: Bug #52542 [Com]: Alternative PHP Cache Bug /mv cmd
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-153116@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52542&edit=1

 ID:                 52542
 Comment by:         asimbaki at gmail dot com
 Reported by:        asimbaki at gmail dot com
 Summary:            Alternative PHP Cache Bug /mv cmd
 Status:             Open
 Type:               Bug
 Package:            Unknown/Other Function
 Operating System:   linux
 PHP Version:        5.2.14
 Block user comment: N

 New Comment:

Even, if the path is hard-coded the same results. Also, the path in the
error message was unexpected. The problem is not with dirname. Might be
some file stat problem.


Previous Comments:
------------------------------------------------------------------------
[2010-08-05 14:07:52] asimbaki at gmail dot com

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 this bug report at http://bugs.php.net/bug.php?id=52542&edit=1


Thread (3 messages)

« previous php.bugs (#153116) next »