php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch tzset.patch for Unknown/Other Function Bug #63172

Patch version 2012-09-27 14:30 UTC

Return to Bug #63172 | Download this patch
Patch Revisions:

Developer: remi

--- ext/standard/basic_functions.c.orig	2012-09-27 16:17:35.857531837 +0200
+++ ext/standard/basic_functions.c	2012-09-27 16:18:19.901547257 +0200
@@ -3426,7 +3426,7 @@
 #ifdef HAVE_TZSET
 	/* don't forget to reset the various libc globals that
 	 * we might have changed by an earlier call to tzset(). */
-	if (!strncmp(pe->key, "TZ", pe->key_len)) {
+	if (!strncmp(pe->key, "TZ", pe->key_len) && !(PG(connection_status) & PHP_CONNECTION_TIMEOUT)) {
 		tzset();
 	}
 #endif

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 08:01:29 2024 UTC