This broke the TSRM build, trivial patch attached.
- Steph
----- Original Message -----
From: "Derick Rethans" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, January 13, 2008 3:16 PM
Subject: [PHP-CVS] cvs: php-src(PHP_5_3) / NEWS /ext/date php_date.c
php_date.h /ext/date/lib parse_date.c parse_date.re timelib.h
derick Sun Jan 13 15:16:11 2008 UTC
Modified files: (Branch: PHP_5_3)
/php-src NEWS
/php-src/ext/date php_date.c php_date.h
/php-src/ext/date/lib parse_date.c parse_date.re timelib.h
Log:
- Added new date/time functionality:
* date_parse_from_format(): Parse date/time strings according to a
format.
* date_create_from_format()/DateTime::createFromFormat(): Create a
date/time
object by parsing a date/time string according to a given format.
* date_get_last_errors()/DateTime::getLastErrors(): Return a list of
warnings
and errors that were found while parsing a date/time string through:
- strtotime() / new DateTime
- date_create_from_format() / DateTime::createFromFormat()
- date_parse_from_format()
# [DOC]
--------------------------------------------------------------------------------
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Index: ext/date/php_date.c
===================================================================
RCS file: /repository/php-src/ext/date/php_date.c,v
retrieving revision 1.43.2.45.2.51.2.7
diff -u -r1.43.2.45.2.51.2.7 php_date.c
--- ext/date/php_date.c 13 Jan 2008 15:15:48 -0000 1.43.2.45.2.51.2.7
+++ ext/date/php_date.c 13 Jan 2008 18:15:58 -0000
@@ -1648,6 +1648,8 @@
* parsing, from either strtotime or parse_from_format. */
static void update_errors_warnings(timelib_error_container *last_errors)
{
+ TSRMLS_FETCH();
+
if (DATEG(last_errors)) {
timelib_error_container_dtor(DATEG(last_errors));
DATEG(last_errors) = NULL;
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php