CVS update: php3/functions
| From: | rasmus | Date: | Tue, 22 Sep 1998 14:26:07 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-1381@lists.php.net to get a copy of this message | ||
Date: Tuesday September 22, 1998 @ 10:26
Author: rasmus
Update of /repository/php3/functions
In directory asf:/u2/tmp/cvs-serv12598/functions
Modified Files:
datetime.c
Log Message:
time_t isn't always a long
Index: php3/functions/datetime.c
diff -c php3/functions/datetime.c:1.41 php3/functions/datetime.c:1.42
*** php3/functions/datetime.c:1.41 Sat Jul 11 17:10:40 1998
--- php3/functions/datetime.c Tue Sep 22 10:26:07 1998
***************
*** 30,36 ****
*/
! /* $Id: datetime.c,v 1.41 1998/07/11 21:10:40 ssb Exp $ */
#ifdef THREAD_SAFE
--- 30,36 ----
*/
! /* $Id: datetime.c,v 1.42 1998/09/22 14:26:07 rasmus Exp $ */
#ifdef THREAD_SAFE
***************
*** 242,248 ****
}
break;
case 'U': /* seconds since the epoch */
! sprintf(tmp_buff, "%ld", the_time); /* SAFE */
strcat(return_value->value.str.val, tmp_buff);
break;
case 'F': /* month, textual, full */
--- 242,248 ----
}
break;
case 'U': /* seconds since the epoch */
! sprintf(tmp_buff, "%ld", (long)the_time); /* SAFE */
strcat(return_value->value.str.val, tmp_buff);
break;
case 'F': /* month, textual, full */
--
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