From ee1273af7a12df80dcbfc1bf332cab2033d0268b Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Mon, 28 Apr 2008 22:41:20 +0000 Subject: [PATCH] remove hack introduced because of broken usage of php_resolve_path instead of zend_resolve_path --- ext/phar/phar.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/ext/phar/phar.c b/ext/phar/phar.c index 525c10ee0b..1ca84aa542 100644 --- a/ext/phar/phar.c +++ b/ext/phar/phar.c @@ -2874,21 +2874,6 @@ static zend_op_array *phar_compile_file(zend_file_handle *file_handle, int type #endif } } - } else if (PHAR_G(cwd_init) && !strstr(file_handle->filename, "://")) { - if ((name = phar_find_in_include_path((char *) file_handle->filename, strlen(file_handle->filename), NULL TSRMLS_CC))) { - zend_file_handle f = *file_handle; - if (SUCCESS == phar_orig_zend_open((const char *)name, file_handle TSRMLS_CC)) { - efree(name); - name = NULL; - file_handle->filename = f.filename; - if (f.opened_path) { - efree(f.opened_path); - } - file_handle->free_filename = 1; - } else { - *file_handle = f; - } - } } zend_try { failed = 0; -- 2.50.1