cvs: /php4 configuration-parser.y

From: Date: Thu, 24 Feb 2000 13:40:06 +0000
Subject: cvs: /php4 configuration-parser.y
Groups: php.version4 
Request: Send a blank email to php-version4+get-10831@lists.php.net to get a copy of this message
thies Thu Feb 24 05:40:06 2000 EDT Modified files: /php4 configuration-parser.y Log: @-Fixed possible crash in request-shutdown. (Thies) (pvalue_config_destructor) gets a zval* not a zval** Index: php4/configuration-parser.y diff -u php4/configuration-parser.y:1.34 php4/configuration-parser.y:1.35 --- php4/configuration-parser.y:1.34 Sat Feb 19 15:21:25 2000 +++ php4/configuration-parser.y Thu Feb 24 05:39:36 2000 @@ -19,7 +19,7 @@ -/* $Id: configuration-parser.y,v 1.34 2000/02/19 23:21:25 zeev Exp $ */ +/* $Id: configuration-parser.y,v 1.35 2000/02/24 13:39:36 thies Exp $ */ #define DEBUG_CFG_PARSER 0 #include "php.h" @@ -124,12 +124,11 @@ } -static void pvalue_config_destructor(zval **pvalue) +static void pvalue_config_destructor(zval *pvalue) { - if ((*pvalue)->type == IS_STRING && (*pvalue)->value.str.val != empty_string) { - free((*pvalue)->value.str.val); + if (pvalue->type == IS_STRING && pvalue->value.str.val != empty_string) { + free(pvalue->value.str.val); } - free(*pvalue); }

« previous php.version4 (#10831) next »