ID:               47442
 Updated by:       johan...@php.net
 Reported By:      msong at targetcastnetworks dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Filesystem function related
 Operating System: win32 only - windows xp
 PHP Version:      5.2.9RC2
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

PHP knows nothing about Apache configuration.


Previous Comments:
------------------------------------------------------------------------

[2009-02-18 19:40:46] msong at targetcastnetworks dot com

Description:
------------
I try to use the realpath() call to get the absolute file path for a
file. The file is located on the directory that was specified as a
apache alias directory. Following is the alias set up in Apache
httpd.conf:

    Alias /tctv/testimages "//192.168.1.125/tcshare/Logs/images"

    <Directory "//192.168.1.125/tcshare/Logs/images">
        Options Indexes FollowSymlinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>

Here is the php snippet to make a realpath() call:

<?
...

echo "realpath=" . realpath("./testimages") . "<BR>";

...
?>

I do expect it returns "//192.168.1.125/tcshare/Logs/images", however,
it returns null.

I will appreciate if someone can help me on this.

-Mike

Reproduce code:
---------------
    Alias /tctv/testimages "//192.168.1.125/tcshare/Logs/images"

    <Directory "//192.168.1.125/tcshare/Logs/images">
        Options Indexes FollowSymlinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>

Here is the php snippet to make a realpath() call:

<?
...

echo "realpath=" . realpath("./testimages") . "<BR>";

...
?>

Expected result:
----------------
I do expect it returns "//192.168.1.125/tcshare/Logs/images", however,
it returns null.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=47442&edit=1

Reply via email to