CVS update: php3

From: Date: Thu, 10 Sep 1998 21:27:18 +0000
Subject: CVS update: php3
Groups: php.dev 
Request: Send a blank email to php-dev+get-923@lists.php.net to get a copy of this message
Date: Thursday September 10, 1998 @ 17:27 Author: zeev Update of /repository/php3 In directory asf:/u2/tmp/cvs-serv28586 Modified Files: ChangeLog variables.c Log Message: Fix for #728/#730 Index: php3/ChangeLog diff -c php3/ChangeLog:1.475 php3/ChangeLog:1.476 *** php3/ChangeLog:1.475 Sun Sep 6 02:51:09 1998 --- php3/ChangeLog Thu Sep 10 17:27:17 1998 *************** *** 1,6 **** --- 1,8 ---- PHP 3.0 CHANGE LOG ChangeLog ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? Version 3.0.4 + - Copying objects that had member functions with static variables produced + undetermined results. Fixed. - Added function lstat() and cleaned up the status functions, added tests for file status functions (this may break on some plattforms) - Fixed is_link() - it was returning always false. Index: php3/variables.c diff -c php3/variables.c:1.152 php3/variables.c:1.153 *** php3/variables.c:1.152 Thu Sep 10 16:40:16 1998 --- php3/variables.c Thu Sep 10 17:27:18 1998 *************** *** 29,35 **** */ ! /* $Id: variables.c,v 1.152 1998/09/10 20:40:16 zeev Exp $ */ #ifdef THREAD_SAFE #include "tls.h" --- 29,35 ---- */ ! /* $Id: variables.c,v 1.153 1998/09/10 21:27:18 zeev Exp $ */ #ifdef THREAD_SAFE #include "tls.h" *************** *** 148,153 **** --- 148,160 ---- yystype->value.func.arg_types = emalloc(sizeof(unsigned char)*(arg_types[0]+1)); memcpy(yystype->value.func.arg_types, arg_types, sizeof(unsigned char)*(arg_types[0]+1)); } + if (yystype->type == IS_USER_FUNCTION && yystype->value.func.addr.statics) { + HashTable *statics = yystype->value.func.addr.statics; + pval tmp; + + _php3_hash_copy(&yystype->value.func.addr.statics, statics, (void (*)(void *)) yystype_copy_constructor, &tmp, sizeof(pval)); + } + } return SUCCESS; } -- 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 (#923) next »