derick Thu Dec 29 10:56:17 2005 EDT
Modified files:
/php-src/ext/date php_date.c
Log:
- MFH: Fixed bug #35751 (using date with a timestamp makes httpd segfault).
http://cvs.php.net/viewcvs.cgi/php-src/ext/date/php_date.c?r1=1.79&r2=1.80&diff_format=u
Index: php-src/ext/date/php_date.c
diff -u php-src/ext/date/php_date.c:1.79 php-src/ext/date/php_date.c:1.80
--- php-src/ext/date/php_date.c:1.79 Tue Dec 20 19:59:47 2005
+++ php-src/ext/date/php_date.c Thu Dec 29 10:56:17 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_date.c,v 1.79 2005/12/20 19:59:47 derick Exp $ */
+/* $Id: php_date.c,v 1.80 2005/12/29 10:56:17 derick Exp $ */
#include "php.h"
#include "php_streams.h"
@@ -674,7 +674,7 @@
{
char *format;
int format_len;
- time_t ts;
+ long ts;
char *string;
if (ZEND_NUM_ARGS() == 1) {
@@ -839,7 +839,7 @@
{
char *format;
int format_len;
- time_t ts;
+ long ts;
int ret;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &format,
&format_len, &ts) == FAILURE) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php