realpath is not available in all LibCs
| From: | Kamesh Jayachandran | Date: | Thu, 11 Aug 2005 11:37:54 +0000 |
| Subject: | realpath is not available in all LibCs | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-17829@lists.php.net to get a copy of this message | ||
Hi,
Version PHP 5.1
file main/php_init.c
function int php_init_config() uses realpath.
In NetWare our earlier releases of LibC SDK has no realpath
implementation.
I could see the following lines in TSRM/tsrm_virtual_cwd.c
#ifndef HAVE_REALPATH
#define realpath(x,y) strcpy(y,x)
#endif
Why not this be in TSRM/tsrm_virtual_cwd.h so that it will work in all
the cases.
Can I go ahead and checkin this?
With regards
Kamesh Jayachandran
--
http://www.fastmail.fm - Does exactly what it says on the tin