cvs: TSRM(PHP_5_2) / tsrm_virtual_cwd.h

From: Date: Tue, 14 Nov 2006 09:15:55 +0000
Subject: cvs: TSRM(PHP_5_2) / tsrm_virtual_cwd.h
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-5406@lists.php.net to get a copy of this message
dmitry Tue Nov 14 09:15:55 2006 UTC Modified files: (Branch: PHP_5_2) /TSRM tsrm_virtual_cwd.h Log: Added comments http://cvs.php.net/viewvc.cgi/TSRM/tsrm_virtual_cwd.h?r1=1.48.2.5.2.5&r2=1.48.2.5.2.6&diff_format=u Index: TSRM/tsrm_virtual_cwd.h diff -u TSRM/tsrm_virtual_cwd.h:1.48.2.5.2.5 TSRM/tsrm_virtual_cwd.h:1.48.2.5.2.6 --- TSRM/tsrm_virtual_cwd.h:1.48.2.5.2.5 Mon Nov 13 15:13:20 2006 +++ TSRM/tsrm_virtual_cwd.h Tue Nov 14 09:15:55 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: tsrm_virtual_cwd.h,v 1.48.2.5.2.5 2006/11/13 15:13:20 dmitry Exp $ */ +/* $Id: tsrm_virtual_cwd.h,v 1.48.2.5.2.6 2006/11/14 09:15:55 dmitry Exp $ */ #ifndef VIRTUAL_CWD_H #define VIRTUAL_CWD_H @@ -186,9 +186,12 @@ CWD_API int virtual_chown(const char *filename, uid_t owner, gid_t group, int link TSRMLS_DC); #endif -#define CWD_EXPAND 0 -#define CWD_FILEPATH 1 -#define CWD_REALPATH 2 +/* One of the following constants must be used as the last argument + in virtual_file_ex() call. */ + +#define CWD_EXPAND 0 /* expand "." and ".." but dont resolve symlinks */ +#define CWD_FILEPATH 1 /* resolve symlinks if file is exist otherwise expand */ +#define CWD_REALPATH 2 /* call realpath(), resolve symlinks. File must exist */ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func verify_path, int use_realpath);

« previous php.zend-engine.cvs (#5406) next »