summaryrefslogtreecommitdiff
path: root/main/fopen_wrappers.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-05-02 19:54:02 +0000
committerZeev Suraski <zeev@php.net>1999-05-02 19:54:02 +0000
commita5ab6b9638c76748f7b9b66ebbd4d8cacf682250 (patch)
tree68c045f85fd7ea5fd8c20d2d460180392352be31 /main/fopen_wrappers.c
parent7071131f81c53b5ff062f724a0aa758a5138e012 (diff)
downloadphp-git-a5ab6b9638c76748f7b9b66ebbd4d8cacf682250.tar.gz
Move path_info to the SAPI structure
Diffstat (limited to 'main/fopen_wrappers.c')
-rw-r--r--main/fopen_wrappers.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c
index 8b2814bf88..2a563c6bc7 100644
--- a/main/fopen_wrappers.c
+++ b/main/fopen_wrappers.c
@@ -31,6 +31,7 @@
#include "php.h"
#include "php_globals.h"
+#include "SAPI.h"
#include <stdio.h>
#include <stdlib.h>
@@ -205,9 +206,10 @@ PHPAPI FILE *php3_fopen_for_parser(void)
char *temp, *path_info, *fn;
int l;
PLS_FETCH();
+ SLS_FETCH();
fn = request_info.filename;
- path_info = request_info.path_info;
+ path_info = SG(request_info).request_uri;
#if HAVE_PWD_H
if (PG(user_dir) && *PG(user_dir)
&& path_info && '/' == path_info[0] && '~' == path_info[1]) {