break out if there is no data to work on.

This commit is contained in:
Stefan Esser 2002-07-24 11:25:36 +00:00
parent 7b3fb771e4
commit 5b3ee5f27a

View file

@ -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) {