Lines Matching refs:ptr

78 	char **p, *pathbuf, *ptr, *end;  in ZEND_INI_MH()  local
106 ptr = pathbuf = estrdup(ZSTR_VAL(new_value)); in ZEND_INI_MH()
107 while (ptr && *ptr) { in ZEND_INI_MH()
108 end = strchr(ptr, DEFAULT_DIR_SEPARATOR); in ZEND_INI_MH()
113 if (ptr[0] == '.' && ptr[1] == '.' && (ptr[2] == '\0' || IS_SLASH(ptr[2]))) { in ZEND_INI_MH()
118 if (php_check_open_basedir_ex(ptr, 0) != 0) { in ZEND_INI_MH()
123 ptr = end; in ZEND_INI_MH()
294 char *ptr; local
307 ptr = pathbuf;
309 while (ptr && *ptr) {
310 end = strchr(ptr, DEFAULT_DIR_SEPARATOR);
316 if (php_check_specific_open_basedir(ptr, path) == 0) {
321 ptr = end;
486 const char *ptr, *end, *p; local
527 ptr = path;
528 while (ptr && *ptr) {
532 for (p = ptr; isalnum((int)*p) || *p == '+' || *p == '-' || *p == '.'; p++);
533 if ((*p == ':') && (p - ptr > 1) && (p[1] == '/') && (p[2] == '/')) {
535 if (p[-1] != '.' || p[-2] != '.' || p - 2 != ptr) {
542 …if (filename_length > (MAXPATHLEN - 2) || (end-ptr) > MAXPATHLEN || (end-ptr) + 1 + filename_lengt…
543 ptr = end + 1;
546 memcpy(trypath, ptr, end-ptr);
547 trypath[end-ptr] = '/';
548 memcpy(trypath+(end-ptr)+1, filename, filename_length+1);
549 ptr = end+1;
551 size_t len = strlen(ptr);
556 memcpy(trypath, ptr, len);
559 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;