cvs: php4 /ext/standard datetime.c

From: Date: Sun, 04 May 2003 11:19:57 +0000
Subject: cvs: php4 /ext/standard datetime.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-20670@lists.php.net to get a copy of this message
moriyoshi Sun May 4 07:19:57 2003 EDT Modified files: /php4/ext/standard datetime.c Log: Added missing sanity check # likely a fix for bug #23457 Index: php4/ext/standard/datetime.c diff -u php4/ext/standard/datetime.c:1.108 php4/ext/standard/datetime.c:1.109 --- php4/ext/standard/datetime.c:1.108 Sun Apr 6 18:37:45 2003 +++ php4/ext/standard/datetime.c Sun May 4 07:19:57 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: datetime.c,v 1.108 2003/04/06 22:37:45 sniper Exp $ */ +/* $Id: datetime.c,v 1.109 2003/05/04 11:19:57 moriyoshi Exp $ */ #include "php.h" #include "zend_operators.h" @@ -314,7 +314,11 @@ #else tzone = timezone; #endif - tname[0] = tzname[0]; + if (tzname[0] != NULL) { + tname[0] = tzname[0]; + } else { + tname[0] = "???"; + } #endif }

« previous php.cvs (#20670) next »