cvs: php4 /main rfc1867.c

From: Date: Mon, 04 Sep 2000 20:46:10 +0000
Subject: cvs: php4 /main rfc1867.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-1549@lists.php.net to get a copy of this message
zeev Mon Sep 4 13:46:10 2000 EDT Modified files: /php4/main rfc1867.c Log: Fix the fix Index: php4/main/rfc1867.c diff -u php4/main/rfc1867.c:1.40 php4/main/rfc1867.c:1.41 --- php4/main/rfc1867.c:1.40 Mon Sep 4 12:07:50 2000 +++ php4/main/rfc1867.c Mon Sep 4 13:46:10 2000 @@ -15,7 +15,7 @@ | Authors: Rasmus Lerdorf <rasmus@php.net> | +----------------------------------------------------------------------+ */ -/* $Id: rfc1867.c,v 1.40 2000/09/04 19:07:50 zeev Exp $ */ +/* $Id: rfc1867.c,v 1.41 2000/09/04 20:46:10 zeev Exp $ */ #include <stdio.h> #include "php.h" @@ -49,7 +49,7 @@ static void safe_php_register_variable(char *var, char *strval, zval *track_vars_array ELS_DC PLS_DC) { - if (!is_protected_variable(strval PLS_CC)) { + if (!is_protected_variable(var PLS_CC)) { php_register_variable(var, strval, track_vars_array ELS_CC PLS_CC); } } @@ -203,10 +203,9 @@ abuf = estrndup(namebuf, strlen(namebuf)-arr_len); sprintf(lbuf, "%s_name[%s]", abuf, arr_index); add_protected_variable(lbuf PLS_CC); - add_protected_variable(abuf PLS_CC); } else { sprintf(lbuf, "%s_name", namebuf); - add_protected_variable(abuf PLS_CC); + add_protected_variable(lbuf PLS_CC); } s = strrchr(filenamebuf, '\\'); if (s && s > filenamebuf) {

« previous php.cvs (#1549) next »