CVS update: php3

From: Date: Sun, 04 Oct 1998 00:19:34 +0000
Subject: CVS update: php3
Groups: php.dev 
Request: Send a blank email to php-dev+get-1625@lists.php.net to get a copy of this message
Date: Saturday October 3, 1998 @ 20:19 Author: zeev Update of /repository/php3 In directory asf:/u2/tmp/cvs-serv9590 Modified Files: ChangeLog internal_functions.c Log Message: active_symbol_table isn't maintained for internal functions. fix getThis() Index: php3/ChangeLog diff -c php3/ChangeLog:1.497 php3/ChangeLog:1.498 *** php3/ChangeLog:1.497 Sat Oct 3 15:43:16 1998 --- php3/ChangeLog Sat Oct 3 20:19:32 1998 *************** *** 1,6 **** --- 1,8 ---- 'PHP 3.0 CHANGE LOG ChangeLog ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? Version 3.0.5 + - Fixed a bug in the API function getThis(). It affected mostly the dir + functions, if nested within objects. - Fixed a problem in require() in conjunction with switch(), and in some other cases. Also fixed an identical problem with the call_user_function() API function. Index: php3/internal_functions.c diff -c php3/internal_functions.c:1.326 php3/internal_functions.c:1.327 *** php3/internal_functions.c:1.326 Thu Sep 10 19:56:54 1998 --- php3/internal_functions.c Sat Oct 3 20:19:33 1998 *************** *** 29,35 **** */ ! /* $Id: internal_functions.c,v 1.326 1998/09/10 23:56:54 zeev Exp $ */ #ifdef THREAD_SAFE #include "tls.h" --- 29,35 ---- */ ! /* $Id: internal_functions.c,v 1.327 1998/10/04 00:19:33 zeev Exp $ */ #ifdef THREAD_SAFE #include "tls.h" *************** *** 184,194 **** return SUCCESS; } ! PHPAPI int getThis(pval **this) { pval *data; TLS_VARS; ! if (_php3_hash_find(GLOBAL(active_symbol_table), "this", sizeof("this"), (void **)&data) == FAILURE) { return FAILURE; } *this = data; --- 184,195 ---- return SUCCESS; } ! PHPAPI int getThis(pval **this) ! { pval *data; TLS_VARS; ! if (_php3_hash_find(GLOBAL(function_state.symbol_table), "this", sizeof("this"), (void **)&data) == FAILURE) { return FAILURE; } *this = data; -- 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 (#1625) next »