Skip to content

Commit

Permalink
PHP 5.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
adoy committed Mar 5, 2012
1 parent 553ab63 commit 48c09e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inotify.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,11 @@ PHP_FUNCTION(inotify_add_watch)
return;
}

#if PHP_VERSION_ID < 50399
if (PG(safe_mode) && (!php_checkuid(pathname, NULL, CHECKUID_ALLOW_FILE_NOT_EXISTS))) {
RETURN_FALSE;
}
#endif
if (php_check_open_basedir(pathname TSRMLS_CC)) {
RETURN_FALSE;
}
Expand Down

0 comments on commit 48c09e8

Please sign in to comment.