summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/hyperwave/hw.c4
-rw-r--r--ext/standard/post.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/ext/hyperwave/hw.c b/ext/hyperwave/hw.c
index 8ac6dbd070..8a813dde86 100644
--- a/ext/hyperwave/hw.c
+++ b/ext/hyperwave/hw.c
@@ -1533,7 +1533,7 @@ void php3_hw_getcgi(INTERNAL_FUNCTION_PARAMETERS) {
sprintf(cgi_env_str, "CGI_REQUEST_METHOD=%s\nCGI_PATH_INFO=%s\nCGI_QUERY_STRING=%s",
request_info.request_method,
request_info.path_info,
- request_info.query_string);
+ SG(request_info).query_string);
#endif
/* !!!! memory for object and attributes is allocated with malloc !!!! */
if (0 != (ptr->lasterror = send_getcgi(ptr->socket, id, cgi_env_str, &attributes, &object, &count)))
@@ -1785,7 +1785,7 @@ void php3_hw_pipecgi(INTERNAL_FUNCTION_PARAMETERS) {
sprintf(cgi_env_str, "CGI_REQUEST_METHOD=%s\nCGI_PATH_INFO=%s\nCGI_QUERY_STRING=%s",
request_info.request_method,
request_info.path_info,
- request_info.query_string);
+ SG(request_info).query_string);
#endif
/* !!!! memory for object, bodytag and attributes is allocated with malloc !!!! */
if (0 != (ptr->lasterror = send_pipecgi(ptr->socket,
diff --git a/ext/standard/post.c b/ext/standard/post.c
index 166c6799e7..009f37f08a 100644
--- a/ext/standard/post.c
+++ b/ext/standard/post.c
@@ -317,6 +317,7 @@ void php3_treat_data(int arg, char *str)
pval *array_ptr;
ELS_FETCH();
PLS_FETCH();
+ SLS_FETCH();
switch (arg) {
case PARSE_POST:
@@ -350,7 +351,7 @@ void php3_treat_data(int arg, char *str)
if (arg == PARSE_POST) {
res = php3_getpost(array_ptr PLS_CC);
} else if (arg == PARSE_GET) { /* Get data */
- var = request_info.query_string;
+ var = SG(request_info).query_string;
if (var && *var) {
res = (char *) estrdup(var);
}