Date: 03/15/99
- Next message: Andi Gutmans: "Re: [PHP-DEV] Bug #1235: string arithmetical misbehaviour"
- Previous message: Andi Gutmans: "Re: [PHP-DEV] Bug #1235: string arithmetical misbehaviour"
- Next in thread: sas: "[PHP-DEV] CVS update: php3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected> For help: php-dev-help <email protected>
- Next message: Andi Gutmans: "Re: [PHP-DEV] Bug #1235: string arithmetical misbehaviour"
- Previous message: Andi Gutmans: "Re: [PHP-DEV] Bug #1235: string arithmetical misbehaviour"
- Next in thread: sas: "[PHP-DEV] CVS update: php3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

