diff --git a/main/php_variables.c b/main/php_variables.c index 8e5260ccf41..1c7fb9c789e 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) {