We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79a692a commit 093c720Copy full SHA for 093c720
1 file changed
ext/standard/filestat.c
@@ -571,10 +571,6 @@ PHP_FUNCTION(chmod)
571
Z_PARAM_LONG(mode)
572
ZEND_PARSE_PARAMETERS_END();
573
574
- if (!zend_validate_file_permissions(mode, 2)) {
575
- RETURN_THROWS();
576
- }
577
-
578
wrapper = php_stream_locate_url_wrapper(filename, NULL, 0);
579
if(wrapper != &php_plain_files_wrapper || strncasecmp("file://", filename, 7) == 0) {
580
if(wrapper && wrapper->wops->stream_metadata) {
0 commit comments