cvs: /php4 php_virtual_cwd.c

From: Date: Thu, 16 Mar 2000 19:10:01 +0000
Subject: cvs: /php4 php_virtual_cwd.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-12274@lists.php.net to get a copy of this message
andi Thu Mar 16 11:10:01 2000 EDT Modified files: /php4 php_virtual_cwd.c Log: - php_is_dir_ok() should work on Windows now. Index: php4/php_virtual_cwd.c diff -u php4/php_virtual_cwd.c:1.6 php4/php_virtual_cwd.c:1.7 --- php4/php_virtual_cwd.c:1.6 Thu Mar 16 10:56:08 2000 +++ php4/php_virtual_cwd.c Thu Mar 16 11:10:01 2000 @@ -72,7 +72,10 @@ uint cwd_length; } cwd_state; -#ifndef PHP_WIN32 +#ifndef S_ISDIR +#define S_ISDIR(mode) ((mode) & _S_IFDIR) +#endif + static int php_is_dir_ok(const cwd_state *state) { struct stat buf; @@ -82,7 +85,7 @@ return (1); } -#endif + char *virtual_getcwd(cwd_state *state, uint *length)

« previous php.version4 (#12274) next »