From: Stefan Esser Date: Wed, 24 Jul 2002 11:25:55 +0000 (+0000) Subject: MFH X-Git-Tag: php-4.2.3RC1~60 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df15a2e57eb1e66549e0dee2b3f77166e92089c2;p=php MFH --- diff --git a/main/php_variables.c b/main/php_variables.c index 196a348645..008b0eec61 100644 --- a/main/php_variables.c +++ b/main/php_variables.c @@ -198,6 +198,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) {