From: Greg Beaver Date: Tue, 22 Apr 2008 17:19:06 +0000 (+0000) Subject: re-enable disabled cwd code X-Git-Tag: RELEASE_2_0_0b1~265 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0338b289391c196de8a64e169cf3561d19118f05;p=php re-enable disabled cwd code --- diff --git a/ext/phar/phar_object.c b/ext/phar/phar_object.c index 27b92a5968..eacf4e9c95 100755 --- a/ext/phar/phar_object.c +++ b/ext/phar/phar_object.c @@ -273,7 +273,7 @@ static int phar_file_action(phar_entry_data *phar, char *mime_type, int code, ch PHAR_G(cwd) = NULL; PHAR_G(cwd_len) = 0; if (zend_hash_add(&EG(included_files), file_handle.opened_path, strlen(file_handle.opened_path)+1, (void *)&dummy, sizeof(int), NULL)==SUCCESS) { - if (0 && (cwd = strrchr(entry, '/'))) { + if ((cwd = strrchr(entry, '/'))) { if (entry == cwd) { /* root directory */ PHAR_G(cwd_len) = 0;