mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
break out if there is no data to work on.
This commit is contained in:
parent
7b3fb771e4
commit
5b3ee5f27a
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue