Lines Matching refs:filename
354 char *filename; in php_do_chgrp() local
365 Z_PARAM_PATH(filename, filename_len) in php_do_chgrp()
369 wrapper = php_stream_locate_url_wrapper(filename, NULL, 0); in php_do_chgrp()
370 if(wrapper != &php_plain_files_wrapper || strncasecmp("file://", filename, 7) == 0) { in php_do_chgrp()
382 if(wrapper->wops->stream_metadata(wrapper, filename, option, value, NULL)) { in php_do_chgrp()
410 if (php_check_open_basedir(filename)) { in php_do_chgrp()
416 ret = VCWD_LCHOWN(filename, -1, gid); in php_do_chgrp()
419 ret = VCWD_CHOWN(filename, -1, gid); in php_do_chgrp()
492 char *filename; in php_do_chown() local
503 Z_PARAM_PATH(filename, filename_len) in php_do_chown()
507 wrapper = php_stream_locate_url_wrapper(filename, NULL, 0); in php_do_chown()
508 if(wrapper != &php_plain_files_wrapper || strncasecmp("file://", filename, 7) == 0) { in php_do_chown()
520 if(wrapper->wops->stream_metadata(wrapper, filename, option, value, NULL)) { in php_do_chown()
549 if (php_check_open_basedir(filename)) { in php_do_chown()
555 ret = VCWD_LCHOWN(filename, uid, -1); in php_do_chown()
558 ret = VCWD_CHOWN(filename, uid, -1); in php_do_chown()
590 char *filename; in PHP_FUNCTION() local
598 Z_PARAM_PATH(filename, filename_len) in PHP_FUNCTION()
602 wrapper = php_stream_locate_url_wrapper(filename, NULL, 0); in PHP_FUNCTION()
603 if(wrapper != &php_plain_files_wrapper || strncasecmp("file://", filename, 7) == 0) { in PHP_FUNCTION()
605 if(wrapper->wops->stream_metadata(wrapper, filename, PHP_STREAM_META_ACCESS, &mode, NULL)) { in PHP_FUNCTION()
617 if (php_check_open_basedir(filename)) { in PHP_FUNCTION()
623 ret = VCWD_CHMOD(filename, imode); in PHP_FUNCTION()
636 char *filename; in PHP_FUNCTION() local
647 Z_PARAM_PATH(filename, filename_len) in PHP_FUNCTION()
669 wrapper = php_stream_locate_url_wrapper(filename, NULL, 0); in PHP_FUNCTION()
670 if(wrapper != &php_plain_files_wrapper || strncasecmp("file://", filename, 7) == 0) { in PHP_FUNCTION()
672 if(wrapper->wops->stream_metadata(wrapper, filename, PHP_STREAM_META_TOUCH, newtime, NULL)) { in PHP_FUNCTION()
683 stream = php_stream_open_wrapper_ex(filename, "c", REPORT_ERRORS, NULL, NULL); in PHP_FUNCTION()
694 if (php_check_open_basedir(filename)) { in PHP_FUNCTION()
699 if (VCWD_ACCESS(filename, F_OK) != 0) { in PHP_FUNCTION()
700 file = VCWD_FOPEN(filename, "w"); in PHP_FUNCTION()
702 …php_error_docref(NULL, E_WARNING, "Unable to create file %s because %s", filename, strerror(errno)… in PHP_FUNCTION()
708 ret = VCWD_UTIME(filename, newtime); in PHP_FUNCTION()
719 PHPAPI void php_clear_stat_cache(bool clear_realpath_cache, const char *filename, size_t filename_l… in php_clear_stat_cache() argument
733 if (filename != NULL) { in php_clear_stat_cache()
734 realpath_cache_del(filename, filename_len); in php_clear_stat_cache()
746 char *filename = NULL; in PHP_FUNCTION() local
752 Z_PARAM_PATH(filename, filename_len) in PHP_FUNCTION()
755 php_clear_stat_cache(clear_realpath_cache, filename, filename_len); in PHP_FUNCTION()
765 PHPAPI void php_stat(zend_string *filename, int type, zval *return_value) in php_stat() argument
774 if (!ZSTR_LEN(filename) || CHECK_NULL_PATH(ZSTR_VAL(filename), ZSTR_LEN(filename))) { in php_stat()
775 if (ZSTR_LEN(filename) && !IS_EXISTS_CHECK(type)) { in php_stat()
781 …if ((wrapper = php_stream_locate_url_wrapper(ZSTR_VAL(filename), &local, 0)) == &php_plain_files_w… in php_stat()
823 if (filename == BG(CurrentLStatFile) in php_stat()
825 && zend_string_equal_content(filename, BG(CurrentLStatFile)))) { in php_stat()
830 if (filename == BG(CurrentStatFile) in php_stat()
832 && zend_string_equal_content(filename, BG(CurrentStatFile)))) { in php_stat()
839 if (!ZSTR_LEN(filename) || CHECK_NULL_PATH(ZSTR_VAL(filename), ZSTR_LEN(filename))) { in php_stat()
840 if (ZSTR_LEN(filename) && !IS_EXISTS_CHECK(type)) { in php_stat()
846 …if ((wrapper = php_stream_locate_url_wrapper(ZSTR_VAL(filename), &local, 0)) == &php_plain_files_w… in php_stat()
857 …f(NULL, E_WARNING, "%sstat failed for %s", IS_LINK_OPERATION(type) ? "L" : "", ZSTR_VAL(filename)); in php_stat()
867 BG(CurrentLStatFile) = zend_string_copy(filename); in php_stat()
875 BG(CurrentStatFile) = zend_string_copy(filename); in php_stat()
1035 zend_string *filename; \
1038 Z_PARAM_STR(filename) \
1041 php_stat(filename, funcnum, return_value); \