- 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);
/* Relative path open */
if (*filename == '.') {
return php_fopen_and_set_opened_path(filename, mode, opened_path TSRMLS_CC);
}
if ((*filename == '.')
/* Absolute path open */
if (IS_ABSOLUTE_PATH(filename, filename_length)) {
return php_fopen_and_set_opened_path(filename, mode, opened_path TSRMLS_CC);
}
if (!path || (path && !*path)) {
|| IS_ABSOLUTE_PATH(filename, filename_length)
|| (!path || (path && !*path))
) {
return php_fopen_and_set_opened_path(filename, mode, opened_path TSRMLS_CC);
}