- simplify

This commit is contained in:
Pierre Joye 2011-07-26 09:27:53 +00:00
parent 438cc3e255
commit 4cbca588f7

View file

@ -628,16 +628,11 @@ PHPAPI FILE *php_fopen_with_path(const char *filename, const char *mode, const c
filename_length = strlen(filename); filename_length = strlen(filename);
/* Relative path open */ /* Relative path open */
if (*filename == '.') { if ((*filename == '.')
return php_fopen_and_set_opened_path(filename, mode, opened_path TSRMLS_CC);
}
/* Absolute path open */ /* Absolute path open */
if (IS_ABSOLUTE_PATH(filename, filename_length)) { || IS_ABSOLUTE_PATH(filename, filename_length)
return php_fopen_and_set_opened_path(filename, mode, opened_path TSRMLS_CC); || (!path || (path && !*path))
} ) {
if (!path || (path && !*path)) {
return php_fopen_and_set_opened_path(filename, mode, opened_path TSRMLS_CC); return php_fopen_and_set_opened_path(filename, mode, opened_path TSRMLS_CC);
} }