cvs: php4 /ext/standard basic_functions.c
| From: | Jani Taskinen | Date: | Tue, 09 Jan 2001 09:02:21 +0000 |
| Subject: | cvs: php4 /ext/standard basic_functions.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-3507@lists.php.net to get a copy of this message | ||
sniper Tue Jan 9 01:02:21 2001 EDT
Modified files:
/php4/ext/standard basic_functions.c
Log:
If TZ environment variable is changed call tzset().
# Although man page for tzset() says it should be called automaticly
# by some of the time related functions, IRL this doesn't happen.
# PR: 3977, 4732, 5510, 6972, 7203, 8502, 8609
Index: php4/ext/standard/basic_functions.c
diff -u php4/ext/standard/basic_functions.c:1.293 php4/ext/standard/basic_functions.c:1.294
--- php4/ext/standard/basic_functions.c:1.293 Sun Jan 7 18:39:52 2001
+++ php4/ext/standard/basic_functions.c Tue Jan 9 01:02:21 2001
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: basic_functions.c,v 1.293 2001/01/08 02:39:52 hirokawa Exp $ */
+/* $Id: basic_functions.c,v 1.294 2001/01/09 09:02:21 sniper Exp $ */
#include "php.h"
#include "php_main.h"
@@ -1059,6 +1059,9 @@
if ((ret=putenv(pe.putenv_string))==0) { /* success */
zend_hash_add(&BG(putenv_ht),pe.key,pe.key_len+1,(void **)
&pe,sizeof(putenv_entry),NULL);
+#ifdef HAVE_TZSET
+ if(!strncmp(pe.key,"TZ",2)) tzset();
+#endif
RETURN_TRUE;
} else {
efree(pe.putenv_string);