Re: [PHP] posible bug, require and symlinks

2002-11-14 Thread Jonathan Sharp
Can you post some sample code as well as paths to symlinks etc.

-js


Michael Sims wrote:
> On Wed, 13 Nov 2002 20:12:44 -0500, you wrote:
> 
> 
>>When I require a file from index.php, if there's no .. on the path (a relative 
>>path, but not going back), the relative path is from where the original file 
>>is, but if there's a .. on the path, the relative path is from where the 
>>symlink is (although php identifies the script as the original file in the 
>>error message).
> 
> 
> That certainly sounds like a bug to me, or at least inconsistent
> behavior.  I'd report it on bugs.php.net...
> 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] posible bug, require and symlinks

2002-11-14 Thread Michael Sims
On Wed, 13 Nov 2002 20:12:44 -0500, you wrote:

>When I require a file from index.php, if there's no .. on the path (a relative 
>path, but not going back), the relative path is from where the original file 
>is, but if there's a .. on the path, the relative path is from where the 
>symlink is (although php identifies the script as the original file in the 
>error message).

That certainly sounds like a bug to me, or at least inconsistent
behavior.  I'd report it on bugs.php.net...

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] posible bug, require and symlinks

2002-11-14 Thread Krzysztof Dziekiewicz
> When I require a file from index.php, if there's no .. on the path (a relative
> path, but not going back), the relative path is from where the original file 
> is, but if there's a .. on the path, the relative path is from where the 
> symlink is (although php identifies the script as the original file in the 
> error message).

???
written too complicated.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] posible bug, require and symlinks

2002-11-13 Thread Pupeno
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I think I've found a posible bug, or at least, an unexpected behaviour.
I'm requesting a page, the file that is called is index.php, but this file is 
a symlink from somewhere else.
When I require a file from index.php, if there's no .. on the path (a relative 
path, but not going back), the relative path is from where the original file 
is, but if there's a .. on the path, the relative path is from where the 
symlink is (although php identifies the script as the original file in the 
error message).
I'm using PHP 4.2.3-1mdk (Mandrake 9.0).
I'm searching the bug database to see if there's an already reported bug, but 
I can't find it...
Maybe something is wrong here, so I'd like if someone can confirm this or add 
any comments or tell me if it is a bug, reported, or just a weird behaviour.
Thank you.
- -- 
Pupeno: [EMAIL PROTECTED]
http://www.pupeno.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE90viPLr8z5XzmSDQRAp8yAJ9GhzdcyxMl8dfoM9IVUK50fxvfJQCfUthZ
Yyh5vNZokFSsyHg4DM0ZESQ=
=2Hao
-END PGP SIGNATURE-


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php