Lines Matching refs:ptr

87 	char **p, *pathbuf, *ptr, *end;  in ZEND_INI_MH()  local
115 ptr = pathbuf = estrdup(new_value); in ZEND_INI_MH()
116 while (ptr && *ptr) { in ZEND_INI_MH()
117 end = strchr(ptr, DEFAULT_DIR_SEPARATOR); in ZEND_INI_MH()
122 if (php_check_open_basedir_ex(ptr, 0 TSRMLS_CC) != 0) { in ZEND_INI_MH()
127 ptr = end; in ZEND_INI_MH()
299 char *ptr; local
312 ptr = pathbuf;
314 while (ptr && *ptr) {
315 end = strchr(ptr, DEFAULT_DIR_SEPARATOR);
321 if (php_check_specific_open_basedir(ptr, path TSRMLS_CC) == 0) {
326 ptr = end;
348 char *ptr; local
357 ptr = pathbuf;
359 while (ptr && *ptr) {
360 end = strchr(ptr, DEFAULT_DIR_SEPARATOR);
368 if (strncasecmp(ptr, resolved_name, strlen(ptr)) == 0)
370 if (strncmp(ptr, resolved_name, strlen(ptr)) == 0)
378 ptr = end;
541 const char *ptr, *end, *p; local
578 ptr = path;
579 while (ptr && *ptr) {
583 for (p = ptr; isalnum((int)*p) || *p == '+' || *p == '-' || *p == '.'; p++);
584 if ((*p == ':') && (p - ptr > 1) && (p[1] == '/') && (p[2] == '/')) {
586 if (p[-1] != '.' || p[-2] != '.' || p - 2 != ptr) {
593 if ((end-ptr) + 1 + filename_length + 1 >= MAXPATHLEN) {
594 ptr = end + 1;
597 memcpy(trypath, ptr, end-ptr);
598 trypath[end-ptr] = '/';
599 memcpy(trypath+(end-ptr)+1, filename, filename_length+1);
600 ptr = end+1;
602 int len = strlen(ptr);
607 memcpy(trypath, ptr, len);
610 ptr = NULL;
681 char *pathbuf, *ptr, *end; local
756 ptr = pathbuf;
758 while (ptr && *ptr) {
759 end = strchr(ptr, DEFAULT_DIR_SEPARATOR);
764 if (snprintf(trypath, MAXPATHLEN, "%s/%s", ptr, filename) >= MAXPATHLEN) {
765 …php_error_docref(NULL TSRMLS_CC, E_NOTICE, "%s/%s path was truncated to %d", ptr, filename, MAXPAT…
787 ptr = end;