Lines Matching refs:ptr
80 char **p, *pathbuf, *ptr, *end; in ZEND_INI_MH() local
108 ptr = pathbuf = estrdup(ZSTR_VAL(new_value)); in ZEND_INI_MH()
109 while (ptr && *ptr) { in ZEND_INI_MH()
110 end = strchr(ptr, DEFAULT_DIR_SEPARATOR); in ZEND_INI_MH()
115 if (php_check_open_basedir_ex(ptr, 0) != 0) { in ZEND_INI_MH()
120 ptr = end; in ZEND_INI_MH()
287 char *ptr; local
300 ptr = pathbuf;
302 while (ptr && *ptr) {
303 end = strchr(ptr, DEFAULT_DIR_SEPARATOR);
309 if (php_check_specific_open_basedir(ptr, path) == 0) {
314 ptr = end;
479 const char *ptr, *end, *p; local
520 ptr = path;
521 while (ptr && *ptr) {
525 for (p = ptr; isalnum((int)*p) || *p == '+' || *p == '-' || *p == '.'; p++);
526 if ((*p == ':') && (p - ptr > 1) && (p[1] == '/') && (p[2] == '/')) {
528 if (p[-1] != '.' || p[-2] != '.' || p - 2 != ptr) {
535 …if (filename_length > (MAXPATHLEN - 2) || (end-ptr) > MAXPATHLEN || (end-ptr) + 1 + (size_t)filena…
536 ptr = end + 1;
539 memcpy(trypath, ptr, end-ptr);
540 trypath[end-ptr] = '/';
541 memcpy(trypath+(end-ptr)+1, filename, filename_length+1);
542 ptr = end+1;
544 size_t len = strlen(ptr);
549 memcpy(trypath, ptr, len);
552 ptr = NULL;
624 char *pathbuf, *ptr, *end; local
678 ptr = pathbuf;
680 while (ptr && *ptr) {
681 end = strchr(ptr, DEFAULT_DIR_SEPARATOR);
686 if (snprintf(trypath, MAXPATHLEN, "%s/%s", ptr, filename) >= MAXPATHLEN) {
687 php_error_docref(NULL, E_NOTICE, "%s/%s path was truncated to %d", ptr, filename, MAXPATHLEN);
694 ptr = end;