Lines Matching refs:ptr
82 char **p, *pathbuf, *ptr, *end; in ZEND_INI_MH() local
110 ptr = pathbuf = estrdup(ZSTR_VAL(new_value)); in ZEND_INI_MH()
111 while (ptr && *ptr) { in ZEND_INI_MH()
112 end = strchr(ptr, DEFAULT_DIR_SEPARATOR); in ZEND_INI_MH()
117 if (php_check_open_basedir_ex(ptr, 0) != 0) { in ZEND_INI_MH()
122 ptr = end; in ZEND_INI_MH()
289 char *ptr; local
302 ptr = pathbuf;
304 while (ptr && *ptr) {
305 end = strchr(ptr, DEFAULT_DIR_SEPARATOR);
311 if (php_check_specific_open_basedir(ptr, path) == 0) {
316 ptr = end;
483 const char *ptr, *end, *p; local
524 ptr = path;
525 while (ptr && *ptr) {
529 for (p = ptr; isalnum((int)*p) || *p == '+' || *p == '-' || *p == '.'; p++);
530 if ((*p == ':') && (p - ptr > 1) && (p[1] == '/') && (p[2] == '/')) {
532 if (p[-1] != '.' || p[-2] != '.' || p - 2 != ptr) {
539 …if (filename_length > (MAXPATHLEN - 2) || (end-ptr) > MAXPATHLEN || (end-ptr) + 1 + (size_t)filena…
540 ptr = end + 1;
543 memcpy(trypath, ptr, end-ptr);
544 trypath[end-ptr] = '/';
545 memcpy(trypath+(end-ptr)+1, filename, filename_length+1);
546 ptr = end+1;
548 size_t len = strlen(ptr);
553 memcpy(trypath, ptr, len);
556 ptr = NULL;
628 char *pathbuf, *ptr, *end; local
682 ptr = pathbuf;
684 while (ptr && *ptr) {
685 end = strchr(ptr, DEFAULT_DIR_SEPARATOR);
690 if (snprintf(trypath, MAXPATHLEN, "%s/%s", ptr, filename) >= MAXPATHLEN) {
691 php_error_docref(NULL, E_NOTICE, "%s/%s path was truncated to %d", ptr, filename, MAXPATHLEN);
698 ptr = end;