Lines Matching refs:path_info
61 char *path_info; in phar_mung_server_vars() local
75 path_info = Z_STRVAL_P(stuff); in phar_mung_server_vars()
77 if (code > (size_t)entry_len && !memcmp(path_info, entry, entry_len)) { in phar_mung_server_vars()
79 ZVAL_STRINGL(stuff, path_info + entry_len, request_uri_len); in phar_mung_server_vars()
99 path_info = Z_STRVAL_P(stuff); in phar_mung_server_vars()
101 if (code > basename_len && !memcmp(path_info, basename, basename_len)) { in phar_mung_server_vars()
103 ZVAL_STRINGL(stuff, path_info + basename_len, code - basename_len); in phar_mung_server_vars()
111 path_info = Z_STRVAL_P(stuff); in phar_mung_server_vars()
114 if (code > basename_len && !memcmp(path_info, basename, basename_len)) { in phar_mung_server_vars()
116 ZVAL_STRINGL(stuff, path_info + basename_len, code - basename_len); in phar_mung_server_vars()
556 char *fname, *path_info, *mime_type = NULL, *entry, *pt; in PHP_METHOD() local
636 path_info = emalloc(Z_STRLEN_P(z_script_name) + entry_len + 1); in PHP_METHOD()
637 memcpy(path_info, Z_STRVAL_P(z_script_name), Z_STRLEN_P(z_script_name)); in PHP_METHOD()
638 memcpy(path_info + Z_STRLEN_P(z_script_name), entry, entry_len + 1); in PHP_METHOD()
643 path_info = Z_STRVAL_P(z_script_name); in PHP_METHOD()
657 path_info = sapi_getenv("PATH_INFO", sizeof("PATH_INFO")-1); in PHP_METHOD()
659 if (path_info) { in PHP_METHOD()
660 entry = path_info; in PHP_METHOD()
662 spprintf(&path_info, 0, "%s%s", testit, path_info); in PHP_METHOD()
665 path_info = testit; in PHP_METHOD()
675 path_info = SG(request_info).request_uri; in PHP_METHOD()
677 if (!(pt = strstr(path_info, basename))) { in PHP_METHOD()
682 entry_len = strlen(path_info); in PHP_METHOD()
683 entry_len -= (pt - path_info) + (fname_len - (basename - fname)); in PHP_METHOD()
686 pt = estrndup(path_info, (pt - path_info) + (fname_len - (basename - fname))); in PHP_METHOD()
722 efree(path_info); in PHP_METHOD()
733 efree(path_info); in PHP_METHOD()
769 efree(path_info); in PHP_METHOD()
782 tmp = strstr(path_info, basename) + fname_len; in PHP_METHOD()
789 if (path_info[strlen(path_info)-1] == '/') { in PHP_METHOD()
790 ctr.line_len = spprintf((char **) &(ctr.line), 4096, "Location: %s%s", path_info, entry + 1); in PHP_METHOD()
792 ctr.line_len = spprintf((char **) &(ctr.line), 4096, "Location: %s%s", path_info, entry); in PHP_METHOD()
800 efree(path_info); in PHP_METHOD()
832 efree(path_info); in PHP_METHOD()
849 efree(path_info); in PHP_METHOD()