Lines Matching refs:filename

320 	char *filename;  in php_do_chgrp()  local
331 Z_PARAM_PATH(filename, filename_len) in php_do_chgrp()
335 wrapper = php_stream_locate_url_wrapper(filename, NULL, 0); in php_do_chgrp()
336 if(wrapper != &php_plain_files_wrapper || strncasecmp("file://", filename, 7) == 0) { in php_do_chgrp()
348 if(wrapper->wops->stream_metadata(wrapper, filename, option, value, NULL)) { in php_do_chgrp()
376 if (php_check_open_basedir(filename)) { in php_do_chgrp()
382 ret = VCWD_LCHOWN(filename, -1, gid); in php_do_chgrp()
385 ret = VCWD_CHOWN(filename, -1, gid); in php_do_chgrp()
458 char *filename; in php_do_chown() local
469 Z_PARAM_PATH(filename, filename_len) in php_do_chown()
473 wrapper = php_stream_locate_url_wrapper(filename, NULL, 0); in php_do_chown()
474 if(wrapper != &php_plain_files_wrapper || strncasecmp("file://", filename, 7) == 0) { in php_do_chown()
486 if(wrapper->wops->stream_metadata(wrapper, filename, option, value, NULL)) { in php_do_chown()
515 if (php_check_open_basedir(filename)) { in php_do_chown()
521 ret = VCWD_LCHOWN(filename, uid, -1); in php_do_chown()
524 ret = VCWD_CHOWN(filename, uid, -1); in php_do_chown()
556 char *filename; in PHP_FUNCTION() local
564 Z_PARAM_PATH(filename, filename_len) in PHP_FUNCTION()
568 wrapper = php_stream_locate_url_wrapper(filename, NULL, 0); in PHP_FUNCTION()
569 if(wrapper != &php_plain_files_wrapper || strncasecmp("file://", filename, 7) == 0) { in PHP_FUNCTION()
571 if(wrapper->wops->stream_metadata(wrapper, filename, PHP_STREAM_META_ACCESS, &mode, NULL)) { in PHP_FUNCTION()
583 if (php_check_open_basedir(filename)) { in PHP_FUNCTION()
589 ret = VCWD_CHMOD(filename, imode); in PHP_FUNCTION()
602 char *filename; in PHP_FUNCTION() local
613 Z_PARAM_PATH(filename, filename_len) in PHP_FUNCTION()
635 wrapper = php_stream_locate_url_wrapper(filename, NULL, 0); in PHP_FUNCTION()
636 if(wrapper != &php_plain_files_wrapper || strncasecmp("file://", filename, 7) == 0) { in PHP_FUNCTION()
638 if(wrapper->wops->stream_metadata(wrapper, filename, PHP_STREAM_META_TOUCH, newtime, NULL)) { in PHP_FUNCTION()
649 stream = php_stream_open_wrapper_ex(filename, "c", REPORT_ERRORS, NULL, NULL); in PHP_FUNCTION()
660 if (php_check_open_basedir(filename)) { in PHP_FUNCTION()
665 if (VCWD_ACCESS(filename, F_OK) != 0) { in PHP_FUNCTION()
666 file = VCWD_FOPEN(filename, "w"); in PHP_FUNCTION()
668 …php_error_docref(NULL, E_WARNING, "Unable to create file %s because %s", filename, strerror(errno)… in PHP_FUNCTION()
674 ret = VCWD_UTIME(filename, newtime); in PHP_FUNCTION()
685 PHPAPI void php_clear_stat_cache(bool clear_realpath_cache, const char *filename, size_t filename_l… in php_clear_stat_cache() argument
699 if (filename != NULL) { in php_clear_stat_cache()
700 realpath_cache_del(filename, filename_len); in php_clear_stat_cache()
712 char *filename = NULL; in PHP_FUNCTION() local
718 Z_PARAM_PATH(filename, filename_len) in PHP_FUNCTION()
721 php_clear_stat_cache(clear_realpath_cache, filename, filename_len); in PHP_FUNCTION()
731 PHPAPI void php_stat(zend_string *filename, int type, zval *return_value) in php_stat() argument
740 if (!ZSTR_LEN(filename) || CHECK_NULL_PATH(ZSTR_VAL(filename), ZSTR_LEN(filename))) { in php_stat()
741 if (ZSTR_LEN(filename) && !IS_EXISTS_CHECK(type)) { in php_stat()
747 …if ((wrapper = php_stream_locate_url_wrapper(ZSTR_VAL(filename), &local, 0)) == &php_plain_files_w… in php_stat()
796 if (filename == BG(CurrentLStatFile) in php_stat()
798 && zend_string_equal_content(filename, BG(CurrentLStatFile)))) { in php_stat()
803 if (filename == BG(CurrentStatFile) in php_stat()
805 && zend_string_equal_content(filename, BG(CurrentStatFile)))) { in php_stat()
812 if (!ZSTR_LEN(filename) || CHECK_NULL_PATH(ZSTR_VAL(filename), ZSTR_LEN(filename))) { in php_stat()
813 if (ZSTR_LEN(filename) && !IS_EXISTS_CHECK(type)) { in php_stat()
819 …if ((wrapper = php_stream_locate_url_wrapper(ZSTR_VAL(filename), &local, 0)) == &php_plain_files_w… in php_stat()
830 …f(NULL, E_WARNING, "%sstat failed for %s", IS_LINK_OPERATION(type) ? "L" : "", ZSTR_VAL(filename)); in php_stat()
840 BG(CurrentLStatFile) = zend_string_copy(filename); in php_stat()
848 BG(CurrentStatFile) = zend_string_copy(filename); in php_stat()
1006 zend_string *filename; \
1009 Z_PARAM_STR(filename) \
1012 php_stat(filename, funcnum, return_value); \