summaryrefslogtreecommitdiff
path: root/main/php_variables.c
diff options
context:
space:
mode:
authorStefan Esser <sesser@php.net>2002-07-24 11:25:36 +0000
committerStefan Esser <sesser@php.net>2002-07-24 11:25:36 +0000
commit5b3ee5f27a306fcd960fa3628c36e07dc7fa1845 (patch)
tree4b84d1e9248cdff5d9b49c784f9b52c81ad89ba0 /main/php_variables.c
parent7b3fb771e4b022a8bf74b1a881dbec67d3ad460b (diff)
downloadphp-git-5b3ee5f27a306fcd960fa3628c36e07dc7fa1845.tar.gz
break out if there is no data to work on.
Diffstat (limited to 'main/php_variables.c')
-rw-r--r--main/php_variables.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/php_variables.c b/main/php_variables.c
index 8e5260ccf4..1c7fb9c789 100644
--- a/main/php_variables.c
+++ b/main/php_variables.c
@@ -196,6 +196,10 @@ SAPI_API SAPI_POST_HANDLER_FUNC(php_std_post_handler)
char *strtok_buf = NULL;
zval *array_ptr = (zval *) arg;
+ if (SG(request_info).post_data==NULL) {
+ return;
+ }
+
var = php_strtok_r(SG(request_info).post_data, "&", &strtok_buf);
while (var) {