cvs: php4 /main php_variables.c

From: Date: Wed, 24 Jul 2002 11:25:36 +0000
Subject: cvs: php4 /main php_variables.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-12963@lists.php.net to get a copy of this message
sesser Wed Jul 24 07:25:36 2002 EDT Modified files: /php4/main php_variables.c Log: break out if there is no data to work on. Index: php4/main/php_variables.c diff -u php4/main/php_variables.c:1.36 php4/main/php_variables.c:1.37 --- php4/main/php_variables.c:1.36 Sat May 4 13:34:41 2002 +++ php4/main/php_variables.c Wed Jul 24 07:25:36 2002 @@ -16,7 +16,7 @@ | Zeev Suraski <zeev@zend.com> | +----------------------------------------------------------------------+ */ -/* $Id: php_variables.c,v 1.36 2002/05/04 17:34:41 sas Exp $ */ +/* $Id: php_variables.c,v 1.37 2002/07/24 11:25:36 sesser Exp $ */ #include <stdio.h> #include "php.h" @@ -195,6 +195,10 @@ char *var, *val; 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);

« previous php.cvs (#12963) next »