CVS update: php3
| From: | andi | Date: | Mon, 15 Mar 1999 16:27:16 +0000 |
| Subject: | CVS update: php3 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-4629@lists.php.net to get a copy of this message | ||
Date: Monday March 15, 1999 @ 11:27
Author: andi
Update of /repository/php3
In directory asf:/u/temp/cvs-serv16055
Modified Files:
operators.c
Log Message:
-Fix tiny leak when decrementing numeric strings
Index: php3/operators.c
diff -c php3/operators.c:1.101 php3/operators.c:1.102
*** php3/operators.c:1.101 Thu Feb 25 09:57:54 1999
--- php3/operators.c Mon Mar 15 11:27:13 1999
***************
*** 29,35 ****
*/
! /* $Id: operators.c,v 1.101 1999/02/25 14:57:54 rasmus Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
--- 29,35 ----
*/
! /* $Id: operators.c,v 1.102 1999/03/15 16:27:13 andi Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
***************
*** 1045,1050 ****
--- 1045,1051 ----
op1->type = IS_LONG;
break;
} else if (is_numeric_string(op1->value.str.val, op1->value.str.len, &lval,
NULL)==IS_LONG) { /* long */
+ STR_FREE(op1->value.str.val);
op1->value.lval = lval-1;
op1->type = IS_LONG;
break;
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net