We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c129c7 commit 1e3498eCopy full SHA for 1e3498e
ext/standard/basic_functions.c
@@ -2329,18 +2329,17 @@ PHP_FUNCTION(unregister_tick_function)
2329
/* {{{ Check if file was created by rfc1867 upload */
2330
PHP_FUNCTION(is_uploaded_file)
2331
{
2332
- char *path;
2333
- size_t path_len;
+ zend_string *path;
2334
2335
ZEND_PARSE_PARAMETERS_START(1, 1)
2336
- Z_PARAM_PATH(path, path_len)
+ Z_PARAM_PATH_STR(path)
2337
ZEND_PARSE_PARAMETERS_END();
2338
2339
if (!SG(rfc1867_uploaded_files)) {
2340
RETURN_FALSE;
2341
}
2342
2343
- if (zend_hash_str_exists(SG(rfc1867_uploaded_files), path, path_len)) {
+ if (zend_hash_exists(SG(rfc1867_uploaded_files), path)) {
2344
RETURN_TRUE;
2345
} else {
2346
0 commit comments