sterling Wed Sep 11 18:40:57 2002 EDT
Modified files:
/php4/ext/standard filestat.c
Log:
max this use the virtual_filepath() function and feel all threadsafe and
wholesome inside
Index: php4/ext/standard/filestat.c
diff -u php4/ext/standard/filestat.c:1.106 php4/ext/standard/filestat.c:1.107
--- php4/ext/standard/filestat.c:1.106 Thu Sep 5 17:16:34 2002
+++ php4/ext/standard/filestat.c Wed Sep 11 18:40:56 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: filestat.c,v 1.106 2002/09/05 21:16:34 sniper Exp $ */
+/* $Id: filestat.c,v 1.107 2002/09/11 22:40:56 sterling Exp $ */
#include "php.h"
#include "safe_mode.h"
@@ -570,6 +570,19 @@
}
#ifndef PHP_WIN32
+#if VIRTUAL_DIR
+ do {
+ char *tmpname;
+
+ if (virtual_filepath(filename, &tmpname TSRMLS_CC)) {
+ php_error(E_WARNING, "Cannot get the virtual filepath of
+%s\n", filename);
+ RETURN_FALSE;
+ }
+
+ filename = tmpname;
+ } while (0);
+#endif
+
switch (type) {
case FS_IS_W:
RETURN_BOOL (!access (filename, W_OK));
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php