Justtechjobs.com Find a programming school near you






Online Campus Both


php4-beta | 200004

[PHP4BETA] cvs: /php4 php_virtual_cwd.c From: Andi Gutmans (andi <email protected>)
Date: 04/21/00

andi Fri Apr 21 07:42:51 2000 EDT

  Modified files:
    /php4 php_virtual_cwd.c
  Log:
  - Small fix to virtual_Chdir_file() to include the trailing slash when
    the file is in the root directory.
  
  
Index: php4/php_virtual_cwd.c
diff -u php4/php_virtual_cwd.c:1.34 php4/php_virtual_cwd.c:1.35
--- php4/php_virtual_cwd.c:1.34 Thu Apr 20 10:40:03 2000
+++ php4/php_virtual_cwd.c Fri Apr 21 07:42:20 2000
@@ -345,6 +345,9 @@
                 return virtual_chdir(path);
         }
 
+ if (length == COPY_WHEN_ABSOLUTE) { /* Also use trailing slash if this is root */
+ length++;
+ }
         temp = (char *) malloc(length+1);
         memcpy(temp, path, length);
         temp[length] = 0;

-- 
PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
To unsubscribe, e-mail: php4beta-unsubscribe <email protected>
For additional commands, e-mail: php4beta-help <email protected>
To contact the list administrators, e-mail: php4beta-admin <email protected>