Lines Matching refs:ptr

76 	char *pathbuf, *ptr, *end;  in ZEND_INI_MH()  local
97 ptr = pathbuf = estrdup(ZSTR_VAL(new_value)); in ZEND_INI_MH()
98 while (ptr && *ptr) { in ZEND_INI_MH()
99 end = strchr(ptr, DEFAULT_DIR_SEPARATOR); in ZEND_INI_MH()
104 if (ptr[0] == '.' && ptr[1] == '.' && (ptr[2] == '\0' || IS_SLASH(ptr[2]))) { in ZEND_INI_MH()
109 if (php_check_open_basedir_ex(ptr, 0) != 0) { in ZEND_INI_MH()
114 ptr = end; in ZEND_INI_MH()
284 char *ptr; local
297 ptr = pathbuf;
299 while (ptr && *ptr) {
300 end = strchr(ptr, DEFAULT_DIR_SEPARATOR);
306 if (php_check_specific_open_basedir(ptr, path) == 0) {
311 ptr = end;
474 const char *ptr, *end, *p; local
515 ptr = path;
516 while (ptr && *ptr) {
520 for (p = ptr; isalnum((int)*p) || *p == '+' || *p == '-' || *p == '.'; p++);
521 if ((*p == ':') && (p - ptr > 1) && (p[1] == '/') && (p[2] == '/')) {
523 if (p[-1] != '.' || p[-2] != '.' || p - 2 != ptr) {
530 …if (filename_length > (MAXPATHLEN - 2) || (end-ptr) > MAXPATHLEN || (end-ptr) + 1 + filename_lengt…
531 ptr = end + 1;
534 memcpy(trypath, ptr, end-ptr);
535 trypath[end-ptr] = '/';
536 memcpy(trypath+(end-ptr)+1, filename, filename_length+1);
537 ptr = end+1;
539 size_t len = strlen(ptr);
544 memcpy(trypath, ptr, len);
547 ptr = NULL;
625 char *pathbuf, *ptr, *end; local
679 ptr = pathbuf;
681 while (ptr && *ptr) {
682 end = strchr(ptr, DEFAULT_DIR_SEPARATOR);
687 if (snprintf(trypath, MAXPATHLEN, "%s/%s", ptr, filename) >= MAXPATHLEN) {
688 php_error_docref(NULL, E_NOTICE, "%s/%s path was truncated to %d", ptr, filename, MAXPATHLEN);
695 ptr = end;