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;
492 const char *ptr, *end, *p; local
529 ptr = path;
530 while (ptr && *ptr) {
534 for (p = ptr; isalnum((int)*p) || *p == '+' || *p == '-' || *p == '.'; p++);
535 if ((*p == ':') && (p - ptr > 1) && (p[1] == '/') && (p[2] == '/')) {
537 if (p[-1] != '.' || p[-2] != '.' || p - 2 != ptr) {
544 …if (filename_length > (MAXPATHLEN - 2) || (end-ptr) > MAXPATHLEN || (end-ptr) + 1 + filename_lengt…
545 ptr = end + 1;
548 memcpy(trypath, ptr, end-ptr);
549 trypath[end-ptr] = '/';
550 memcpy(trypath+(end-ptr)+1, filename, filename_length+1);
551 ptr = end+1;
553 size_t len = strlen(ptr);
558 memcpy(trypath, ptr, len);
561 ptr = NULL;
637 char *pathbuf, *ptr, *end; local
691 ptr = pathbuf;
693 while (ptr && *ptr) {
694 end = strchr(ptr, DEFAULT_DIR_SEPARATOR);
699 if (snprintf(trypath, MAXPATHLEN, "%s/%s", ptr, filename) >= MAXPATHLEN) {
700 php_error_docref(NULL, E_NOTICE, "%s/%s path was truncated to %d", ptr, filename, MAXPATHLEN);
707 ptr = end;