Lines Matching refs:filename
48 PHPAPI int php_checkuid_ex(const char *filename, const char *fopen_mode, int mode, int flags) in php_checkuid_ex() argument
59 if (!filename) { in php_checkuid_ex()
63 if (strlcpy(filenamecopy, filename, MAXPATHLEN)>=MAXPATHLEN) { in php_checkuid_ex()
66 filename=(char *)&filenamecopy; in php_checkuid_ex()
83 strcpy(ftest, filename); in php_checkuid_ex()
85 strcpy(path, filename); in php_checkuid_ex()
88 expand_filepath(filename, path TSRMLS_CC); in php_checkuid_ex()
94 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to access %s", filename); in php_checkuid_ex()
99 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to access %s", filename); in php_checkuid_ex()
129 s = strrchr(filename, DEFAULT_SLASH); in php_checkuid_ex()
131 if (s == filename) { in php_checkuid_ex()
137 VCWD_REALPATH(filename, path); in php_checkuid_ex()
154 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to access %s", filename); in php_checkuid_ex()
166 if (zend_hash_exists(SG(rfc1867_uploaded_files), (char *) filename, strlen(filename)+1)) { in php_checkuid_ex()
184 filename = path; in php_checkuid_ex()
189 …ot allowed to access %s owned by uid/gid %ld/%ld", php_getuid(), php_getgid(), filename, uid, gid); in php_checkuid_ex()
191 …cript whose uid is %ld is not allowed to access %s owned by uid %ld", php_getuid(), filename, uid); in php_checkuid_ex()
198 PHPAPI int php_checkuid(const char *filename, const char *fopen_mode, int mode) in php_checkuid() argument
204 return php_checkuid_ex(filename, fopen_mode, mode, 0); in php_checkuid()