Skip to content

Commit 093c720

Browse files
committed
ext invalid mode error handling
1 parent 79a692a commit 093c720

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

ext/standard/filestat.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -571,10 +571,6 @@ PHP_FUNCTION(chmod)
571571
Z_PARAM_LONG(mode)
572572
ZEND_PARSE_PARAMETERS_END();
573573

574-
if (!zend_validate_file_permissions(mode, 2)) {
575-
RETURN_THROWS();
576-
}
577-
578574
wrapper = php_stream_locate_url_wrapper(filename, NULL, 0);
579575
if(wrapper != &php_plain_files_wrapper || strncasecmp("file://", filename, 7) == 0) {
580576
if(wrapper && wrapper->wops->stream_metadata) {

0 commit comments

Comments
 (0)