CVS update: php3/functions

From: Date: Sat, 19 Dec 1998 12:47:59 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-2868@lists.php.net to get a copy of this message
Date: Saturday December 19, 1998 @ 7:47 Author: sas Update of /repository/php3/functions In directory asf:/u/temp/cvs-serv20518/functions Modified Files: basic_functions.c basic_functions.h Log Message: added get_magic_quotes_gpc and get_magic_quotes_runtime added proper documentation for get_magic_quotes_gpc and (set|get)_magic_quotes_runtime Index: php3/functions/basic_functions.c diff -c php3/functions/basic_functions.c:1.237 php3/functions/basic_functions.c:1.238 *** php3/functions/basic_functions.c:1.237 Thu Dec 17 11:22:08 1998 --- php3/functions/basic_functions.c Sat Dec 19 07:47:58 1998 *************** *** 273,278 **** --- 273,281 ---- {"get_cfg_var", php3_get_cfg_var, NULL}, {"magic_quotes_runtime", php3_set_magic_quotes_runtime, NULL}, + {"set_magic_quotes_runtime", php3_set_magic_quotes_runtime, NULL}, + {"get_magic_quotes_gpc", php3_get_magic_quotes_gpc, NULL}, + {"get_magic_quotes_runtime", php3_get_magic_quotes_runtime, NULL}, {"is_long", php3_is_long, first_arg_allow_ref}, {"is_int", php3_is_long, first_arg_allow_ref}, *************** *** 1464,1470 **** --- 1467,1482 ---- php3_ini.magic_quotes_runtime=new_setting->value.lval; RETURN_TRUE; } + + void php3_get_magic_quotes_runtime(INTERNAL_FUNCTION_PARAMETERS) + { + RETURN_LONG(php3_ini.magic_quotes_runtime); + } + void php3_get_magic_quotes_gpc(INTERNAL_FUNCTION_PARAMETERS) + { + RETURN_LONG(php3_ini.magic_quotes_gpc); + } void php3_is_type(INTERNAL_FUNCTION_PARAMETERS,int type) { Index: php3/functions/basic_functions.h diff -c php3/functions/basic_functions.h:1.34 php3/functions/basic_functions.h:1.35 *** php3/functions/basic_functions.h:1.34 Tue Sep 22 15:39:33 1998 --- php3/functions/basic_functions.h Sat Dec 19 07:47:59 1998 *************** *** 29,35 **** */ ! /* $Id: basic_functions.h,v 1.34 1998/09/22 19:39:33 zeev Exp $ */ #ifndef _BASIC_FUNCTIONS_H #define _BASIC_FUNCTIONS_H --- 29,35 ---- */ ! /* $Id: basic_functions.h,v 1.35 1998/12/19 12:47:59 sas Exp $ */ #ifndef _BASIC_FUNCTIONS_H #define _BASIC_FUNCTIONS_H *************** *** 79,84 **** --- 79,86 ---- extern void php3_get_cfg_var(INTERNAL_FUNCTION_PARAMETERS); extern void php3_set_magic_quotes_runtime(INTERNAL_FUNCTION_PARAMETERS); + extern void php3_get_magic_quotes_runtime(INTERNAL_FUNCTION_PARAMETERS); + extern void php3_get_magic_quotes_gpc(INTERNAL_FUNCTION_PARAMETERS); extern void php3_is_type(INTERNAL_FUNCTION_PARAMETERS, int type); extern void php3_is_long(INTERNAL_FUNCTION_PARAMETERS); -- 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

« previous php.dev (#2868) next »