Home
last modified time | relevance | path

Searched refs:exec_fname_length (Results 1 – 2 of 2) sorted by relevance

/PHP-7.4/main/
H A Dfopen_wrappers.c590 size_t exec_fname_length = ZSTR_LEN(exec_filename); local
592 while ((--exec_fname_length < SIZE_MAX) && !IS_SLASH(exec_fname[exec_fname_length]));
593 if (exec_fname_length > 0 &&
595 exec_fname_length + 1 + filename_length + 1 < MAXPATHLEN) {
596 memcpy(trypath, exec_fname, exec_fname_length + 1);
597 memcpy(trypath+exec_fname_length + 1, filename, filename_length+1);
672 size_t exec_fname_length = ZSTR_LEN(exec_filename); local
674 while ((--exec_fname_length < SIZE_MAX) && !IS_SLASH(exec_fname[exec_fname_length]));
675 if ((exec_fname && exec_fname[0] == '[') || exec_fname_length <= 0) {
684 memcpy(pathbuf + path_length + 1, exec_fname, exec_fname_length);
[all …]
/PHP-7.4/main/streams/
H A Dplain_wrapper.c1608 size_t exec_fname_length = ZSTR_LEN(exec_filename); in _php_stream_fopen_with_path() local
1610 while ((--exec_fname_length < SIZE_MAX) && !IS_SLASH(exec_fname[exec_fname_length])); in _php_stream_fopen_with_path()
1611 if (exec_fname_length<=0) { in _php_stream_fopen_with_path()
1617 pathbuf = (char *) emalloc(exec_fname_length + path_length +1 +1); in _php_stream_fopen_with_path()
1620 memcpy(pathbuf+path_length+1, exec_fname, exec_fname_length); in _php_stream_fopen_with_path()
1621 pathbuf[path_length + exec_fname_length +1] = '\0'; in _php_stream_fopen_with_path()

Completed in 13 milliseconds