Commit Graph

550 Commits

Author SHA1 Message Date
Zoe Slattery
4cdeb0e808 Committing test for till 2008-10-21 09:34:39 +00:00
Derick Rethans
7dd5608d9d - Updated to version 2008.8 (2008h) 2008-10-13 11:45:32 +00:00
Derick Rethans
00ac4cac45 - Updated to version 2008.7 (2008g) 2008-10-06 14:27:33 +00:00
Derick Rethans
397dc60971 - Updated to version 2008.6 (2008f) 2008-09-15 18:02:49 +00:00
Derick Rethans
9cd469b655 - Updated to version
Notice: Undefined offset: 1 in Command line code on line 1

Call Stack:
    0.0002     660592   1. {main}() Command line code:0

.
Notice: Undefined offset: 2 in Command line code on line 1

Call Stack:
    0.0002     660592   1. {main}() Command line code:0

-96 ()
2008-09-15 18:00:59 +00:00
Derick Rethans
be1daa2ba9 - Support for the Scottish "back of" and "front of" hour phrases. 2008-08-29 11:59:23 +00:00
Pierre Joye
c76de7966d - [DOC] win's strftime does not support all posix formatting code and have some win specific rules see http://msdn.microsoft.com/en-us/library/fe06s4ak(VS.80).aspx for a complete list: split test for win32 and posix 2008-08-10 11:27:26 +00:00
Antony Dovgal
83fa3f9874 do not fail & segfault if malloc(0) returns NULL, that's expected
(reproducible on AIX with simple date() and UTC timezone)
2008-08-09 22:00:51 +00:00
Antony Dovgal
34b4cfd5e5 fix leak 2008-08-09 21:58:40 +00:00
Etienne Kneuss
b8aa44644d Fix error_handling usage in various extensions 2008-08-08 22:06:42 +00:00
Derick Rethans
7772d56fab - Fixed a bug that caused miscalculations with the "last <weekday> of <n>
month" relative time string.
2008-08-05 18:02:39 +00:00
Derick Rethans
d84a4ed4ab - Fixed bug #45696 (Not all DateTime methods allow method chaining). 2008-08-03 16:44:31 +00:00
Pierre Joye
c8a42610e5 - improve previous fix for scan, disable optimizer only for scan() using #pragma optimize 2008-08-02 16:49:56 +00:00
Pierre Joye
2317deb6f5 - parser's scan function is too large for VC6-7.x, disable the optimizer (size optimization instead) fixes it 2008-08-02 15:49:14 +00:00
Derick Rethans
2c577a4aaf - Fixed bug #45545 (DateInterval has a limitation of 4 chars for ISO
durations).
2008-08-02 13:50:30 +00:00
Derick Rethans
0ae51b159e - Fixed a bug with the YYYY-MM format not resetting the day correctly.
- Fixed a bug in the DateTime->modify() methods, it would not use the advanced
  relative time strings.
- Fixed return values of all the modifying methods, they now properly return
  the object itself.
2008-07-30 17:48:21 +00:00
Jani Taskinen
357c16c598 ws 2008-07-30 08:13:02 +00:00
Dmitry Stogov
fbb84e37d8 Fixed memory leak 2008-07-29 12:56:18 +00:00
Dmitry Stogov
7129a70051 Fixed test 2008-07-29 12:17:04 +00:00
Derick Rethans
0da9bc904d - Updated to version 2008.5 (2008e) 2008-07-28 19:31:21 +00:00
Derick Rethans
d4210b7a4a - Fixed DateTime::setTimestamp() and added a test for it. 2008-07-27 19:09:37 +00:00
Antony Dovgal
e6ae49ca17 fix test 2008-07-24 07:32:21 +00:00
Derick Rethans
e68b8af578 - Fixed an issue with "first <weekday> of" in case the first <weekday> was the
same day-of-week as the first day of the month.
2008-07-23 19:52:51 +00:00
Derick Rethans
5ddf492cfc - Fixed bug #43452 (strings containing a weekday, or a number plus weekday
behaved incorrect of the current day-of-week was the same as the one in the
  phrase). (Derick)
2008-07-23 18:49:37 +00:00
Antony Dovgal
523f696954 fix test 2008-07-23 09:49:11 +00:00
Derick Rethans
5738a0fcee - Fixed test. 2008-07-21 07:27:16 +00:00
Derick Rethans
ef9203a37e - Added test case to HEAD too. 2008-07-20 20:59:08 +00:00
Derick Rethans
e8803bb0ff - Fixed bug #45562 (Creating instance of DatePeriod crashes). 2008-07-20 20:58:35 +00:00
Derick Rethans
18a53456d3 - Country codes are ISO 3166. 2008-07-19 17:38:15 +00:00
Derick Rethans
998bd9d485 - Added support for selectively listing timezone identifiers by country code
through timezone_identifiers_list() / DateTimezone::listIdentifiers().
- Added timezone_location_get() / DateTimezone::getLocation() for retrieving
  location information from timezones.
2008-07-18 14:33:27 +00:00
Derick Rethans
aebf9395fe - Updated to version 2008.4.1 (2008d) 2008-07-18 13:45:58 +00:00
Derick Rethans
6edc71fc59 - Updated to version 2008.4 (2008d) 2008-07-18 13:44:34 +00:00
Derick Rethans
9c6a9c6460 - Added missing test-file. 2008-07-16 15:42:13 +00:00
Derick Rethans
b9c97d72a8 - Fixed bug #45529 (new DateTimeZone() and date_create()->getTimezone() behave
different).
2008-07-16 15:40:01 +00:00
Derick Rethans
5871211091 - MF53: Fixed segfault. 2008-07-16 12:35:45 +00:00
Derick Rethans
ae2c8698ac - Fixed tests. 2008-07-16 07:35:56 +00:00
Derick Rethans
89af1000b2 - Also add the warnings for times. This does not make sense for the english
text parser, as invalid times are never allowed in there.
2008-07-15 17:37:33 +00:00
Derick Rethans
d681181892 - Fixed reversed logic. 2008-07-14 17:38:19 +00:00
Derick Rethans
e1787110f1 - Added a warning to the error struct in case a parsed-date was found to be
invalid.
2008-07-14 17:30:09 +00:00
Derick Rethans
0e86197822 - Fixed a compiler warning - the code didn't make much sense. 2008-07-11 08:42:11 +00:00
Felipe Pena
96593efd3b - Fixed test 2008-07-09 13:00:00 +00:00
Felipe Pena
83a2c2f87c - MFB: Added arginfo 2008-07-09 12:51:26 +00:00
Joe Orton
28d3a9ef33 - tweak test case to better trigger the (now-fixed) reference bugs 2008-07-09 08:29:55 +00:00
Derick Rethans
b30cdcd5a7 - Fixed bug #45459 (date_create_from_format() fails on DATE_RFC3339) by
allowing a few more format specifiers in date_create_from_format() /
  date_parse_from_format().
2008-07-08 20:23:38 +00:00
Derick Rethans
d5bc2d0682 - Fixed a memleak (Original patch by Hannes Magnusson). 2008-07-08 19:29:06 +00:00
Derick Rethans
3042898466 - Fixed some ambiguities in the date parser. 2008-07-08 18:27:07 +00:00
Derick Rethans
a339c57e1d - Replaced // by /* .. */ comments. 2008-07-08 17:56:36 +00:00
Derick Rethans
698b0f818f - Fixed memory leaks and segfaults, patch by Joe Orton.
- Fixed bug #45038 (Crash when using DateTimeZone object returned by
  Date::getTimezone).
2008-07-08 17:40:35 +00:00
Derick Rethans
bbdb2416d0 - Updated to version 2008.4 (2008d) 2008-07-07 14:36:11 +00:00
Raghubansh Kumar
9d2cea0d4e Committed for Felix De Vliegher, TestFest Task No: 123, Tested on RHEL5-32bit, WinXP 2008-06-17 13:18:08 +00:00
Raghubansh Kumar
d26c78a2dd Committed for Felix De Vliegher, TestFest Task No: 122, Tested on RHEL5, WinXP 2008-06-17 13:17:15 +00:00
Antony Dovgal
a9ebb2170b fix ZTS build 2008-06-07 22:41:02 +00:00
Henrique do Nascimento Angelo
f97aeaa334 Update tests to conform with the unicode functions 2008-06-07 20:33:35 +00:00
Henrique do Nascimento Angelo
15b3e07f5a Add Unicode support and set as unicode compatible 2008-06-07 20:30:30 +00:00
Steph Fox
4be7f4aecd - killed off UEXPECT
- com_dotnet gets a .cvsignore
- Ulf will take care of mysql extensions, rest complete
2008-05-27 18:16:04 +00:00
Derick Rethans
02a5dc7764 - Updated to version 2008.3 (2008c) 2008-05-27 12:19:47 +00:00
Antony Dovgal
1db4d44c7b fix function signature and silence compile warning 2008-05-20 12:07:13 +00:00
Ilia Alshanetsky
5576983a3e MFB: kill unused vars 2008-05-07 23:46:11 +00:00
Derick Rethans
c070512ee4 - Added support for "<xth> <weekday of" and "last <weekday> of" phrases to be
used with months - like in "last saturday of februari 2008".
2008-05-04 20:50:46 +00:00
Derick Rethans
92975a6319 - Added support for using ISO 8601 time intervals to define a DatePeriod
iterator.
2008-05-04 09:59:42 +00:00
Derick Rethans
a49676e4f3 - Added support for using an end date to limit the amount of recursions
with the DatePeriod iterator.
2008-05-03 10:59:14 +00:00
Derick Rethans
4d6933d254 - Fixed weekdays algorithm. 2008-05-03 10:03:21 +00:00
Derick Rethans
7599f7384b - Fixed an issue in date() where a : was printed for the O modifier after a P
modifier was used.
2008-05-02 21:32:13 +00:00
Derick Rethans
2352d10de2 - Added DateInterval::createFromDateString() that creates an interval
from the relative parts of a date/time string.
- Fixed an issue where special relative bits were not applied.
#- @DOC
2008-05-02 12:48:19 +00:00
Derick Rethans
6205943023 - Rearranged some structures to allow for more powerfull period/intervals. 2008-05-01 16:14:29 +00:00
Derick Rethans
042867ecb8 - Include the starting date by default in the iterator output, but add an
option to disable this behavior.
2008-05-01 13:31:00 +00:00
Derick Rethans
b1960e2af3 - Added the DatePeriod class/iterator that iterates over a date time object
for a specific number of iterators and applies a DateInterval each time.
2008-05-01 00:10:25 +00:00
Antony Dovgal
9c2f3fc42c fix test 2008-04-29 07:26:39 +00:00
Scott MacVicar
455eeec4b9 MFH: Fix windows build 2008-04-28 13:26:50 +00:00
Derick Rethans
089bc254eb - Fixed "this week", "previous week"/"last week" and "next week" phrases by
actually meaning the week.
#- For now the week starts on Monday, but I plan on making that configurable.
2008-04-27 19:12:10 +00:00
Derick Rethans
64b888c0fa - MF53: Added new date/time functionality:
. support for diffing date/times through date_diff() / DateTime::diff().
  . added DateInterval class to represent the difference between two date/times.
  . support for parsing ISO intervals for use with DateInterval.
  . date_add() / DateTime::add(), date_sub() / DateTime::sub() for applying an
    interval to an existing date/time.
2008-04-25 12:55:16 +00:00
Derick Rethans
62a4aff5f8 - MF52: Fixed bug #44703 (htmlspecialchars() does not detect bad character set
argument).
#- WIll merge to 5.3 later, that branch has some more modifications.
2008-04-16 17:24:00 +00:00
Jani Taskinen
6fa8f52e7d - fix test 2008-04-08 11:58:03 +00:00
Derick Rethans
3954343162 - Fixing returned offset.
- Algorithm optimization.
2008-04-07 17:43:49 +00:00
Derick Rethans
d3a0dbf991 - Fixed testcases. 2008-04-07 17:41:48 +00:00
Derick Rethans
08534e1bee - Fixed a bug in formatting timestamps when DST is active in the default
timezone.
2008-03-31 09:10:54 +00:00
Derick Rethans
38ffd11722 - Updated to version 2008.2 (2008b) 2008-03-24 13:00:24 +00:00
Ilia Alshanetsky
4743186f27 MFB: removed unused var 2008-03-23 15:49:51 +00:00
Derick Rethans
993eb05f5b - Fix the DateTimeZone::getTransitions() algorithm. 2008-03-20 19:43:02 +00:00
Ilia Alshanetsky
6cbde65afa MFB: Remove unused variable 2008-03-16 15:15:47 +00:00
Derick Rethans
ee6f62b1cb - Updated to version 2008.1 (2008a) 2008-03-16 07:20:17 +00:00
Felipe Pena
6779560ec5 Fix build (ZTS) 2008-03-14 17:57:44 +00:00
Derick Rethans
56ba1cf8fa - Allow datetime objects to be serialized and woken up.
- Implemented __set_state().
2008-03-14 16:18:25 +00:00
Derick Rethans
cc07cc0bd9 - MF53: Fixed bug #44257 (timelib_tz_lookup_table must use float for
gmtoffset).
2008-03-13 16:00:18 +00:00
Derick Rethans
c7703dec10 - MF53: Added support for parsing date/time strings returned by MS SQL with strtotime(). 2008-03-13 15:54:53 +00:00
Ilia Alshanetsky
d2827c1e6a MFB: Initialize ts only after successful argument parsing 2008-03-09 18:10:09 +00:00
Ilia Alshanetsky
e9c77a5e92 MFB: Fixed a memory leak inside date_get_last_errors() when there are no
errors
2008-03-07 02:05:48 +00:00
Felipe Pena
2818d4fc51 New way for check void parameters 2008-03-04 23:39:15 +00:00
Derick Rethans
964189e41e - Fixed bug #44260 (African timezones missing). 2008-02-27 09:47:23 +00:00
Derick Rethans
a39148adf7 - Fixed tests on 64bit platform. 2008-02-25 22:32:26 +00:00
Derick Rethans
3b3d13ea0a - Added a few new separation specifiers.
- Added specifiers that can reset or default the y/m/d/h/i/s/tz values.
- Fixed a problem with parsing timezones as part of a format.
#- [DOC]: Added format specifiers.
2008-02-25 18:25:01 +00:00
Marcus Boerger
6b58678c63 - Add E_DEPRECATED (Lars Strojny, Felipe Pena, Marcus) 2008-02-23 17:03:53 +00:00
Derick Rethans
4c1dd9079d - Fixed bug #44216 (strftime segfaults on large negative value). 2008-02-22 17:48:31 +00:00
Derick Rethans
7f7c1c986e - Fixed bug #44209: strtotime doesn't support 64 bit timestamps. 2008-02-22 09:47:10 +00:00
Derick Rethans
93432884b2 - Fixed typoes. 2008-02-17 18:17:01 +00:00
Derick Rethans
aa93ba42ff - Add some missing elements from the return value. 2008-02-13 21:53:01 +00:00
Derick Rethans
836e228265 - Sync tests. 2008-02-03 14:37:00 +00:00
Derick Rethans
91038a08bf - Support "first/last day of <month>" style texts. 2008-02-03 14:10:48 +00:00
Derick Rethans
2c2947f93d - Make timezone_open() work again. 2008-02-02 17:25:40 +00:00
Derick Rethans
6d6ae90d03 - MF53: That should have been ||. 2008-01-29 20:15:44 +00:00
Derick Rethans
c3505930f0 - Make whitespace the same as in 5.3. 2008-01-29 20:12:23 +00:00
Derick Rethans
4b738ef8ba - Commit generated file. 2008-01-29 20:10:53 +00:00
Derick Rethans
87c936ef2c - Fixed bug #43960 (strtotime() returns timestamp in the future when given a
bogus string).
2008-01-29 20:08:42 +00:00
Derick Rethans
bc72c13db1 - Added two optional parameters to timezone_transitions_get() /
DateTimeZone::getTranstions() to limit the range of transitions being
  returned.
2008-01-28 21:12:24 +00:00
Derick Rethans
22c1b3b303 - MF53: Fixed test case. 2008-01-28 21:02:09 +00:00
Derick Rethans
ba5cc7524a - MF53: Added missing folding tags. 2008-01-28 20:36:04 +00:00
Derick Rethans
b66faab7be - Added DateTime::getTimestamp() / date_timestamp_get(). 2008-01-28 20:29:40 +00:00
Derick Rethans
dc5f4e48ee - Fixed parsing of timestamps. 2008-01-27 22:15:59 +00:00
Derick Rethans
408a892458 - Update proto. 2008-01-27 17:44:16 +00:00
Derick Rethans
14665d9149 - Added support for selectively listing timezone identifiers through
timezone_identifiers_list() / DateTimezone::listIdentifiers().
2008-01-27 17:28:58 +00:00
Nuno Lopes
b952c7f048 fix test 2008-01-27 17:02:01 +00:00
Antony Dovgal
2d5ff6a7b0 add missing TSRMLS_CC and fix segfaults in ZTS mode 2008-01-23 15:14:18 +00:00
Derick Rethans
cd9bc73574 - Fixed bug #41599 (setTime() fails after modify() is used). 2008-01-17 20:58:26 +00:00
Derick Rethans
13d1ef3015 - Fixed bug #43075 (Support 2007-11-01T24:00:00+00:00). 2008-01-17 20:43:58 +00:00
Derick Rethans
19af2f67d1 - Fixed bug #43808 (date_create never fails (even when it should)). 2008-01-17 20:34:17 +00:00
Derick Rethans
da0da918c0 - Fixed bug #43003 (Invalid timezone reported for DateTime objects constructed
using a timestamp).
2008-01-17 19:58:24 +00:00
Derick Rethans
64c498bddd - Added support for abbreviation and offset based timezone specifiers for
DateTime::getOffset() and DateTime::getName().
- Fixed bug #43527 (DateTime created from a timestamp reports environment
  timezone).
- Fixed bug #42190 (Constructing DateTime with TimeZone Indicator invalidates
  DateTimeZone).
2008-01-17 18:48:44 +00:00
Derick Rethans
c52fda6aae - Fixed TSRM builds.
#- Thanks for the hint Steph.
2008-01-13 18:42:51 +00:00
Derick Rethans
6be4825777 - MF53: 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()
2008-01-13 15:16:48 +00:00
Derick Rethans
6973393112 - Updated to version 2007.11 2008-01-01 15:31:43 +00:00
Hannes Magnusson
d3cb66967f Fix test 2008-01-01 14:35:26 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Scott MacVicar
b03ba567d8 MFB: Change createFromTimestamp to setTimestamp 2007-12-14 14:52:38 +00:00
Scott MacVicar
feaa1ba014 - Add Datetime::createFromTimestamp to allow setting of a unix timestamp without invoking the date parser. 2007-12-14 14:27:18 +00:00
Derick Rethans
7b19ae3023 - Updated to version 2007.10 2007-12-03 15:16:21 +00:00
Ilia Alshanetsky
e02a63c98c MFB: Fixed bug #43377 (PHP crashes with invalid argument for DateTimeZone) 2007-11-23 00:15:37 +00:00
Antony Dovgal
ea324b63c0 fix test 2007-11-08 11:39:10 +00:00
Derick Rethans
5a4e6c233f - Updated to version 2007.9 2007-11-05 09:24:17 +00:00
Derick Rethans
9e67f64a00 - Updated to version 2007.8 2007-10-11 18:35:04 +00:00
Yiduo (David) Wang
95da0dc570 Added macros for managing zval refcounts and is_ref statuses 2007-10-07 05:15:07 +00:00
Dmitry Stogov
8146078f7b Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) 2007-09-27 18:28:44 +00:00
Antony Dovgal
8df615e0d6 fix test name 2007-09-19 11:25:51 +00:00
Nuno Lopes
ba8461c0a0 MFB 2007-09-13 19:58:53 +00:00
Antony Dovgal
a2d6d5fbb2 detect endianness in compile time when using Apple's GCC (fixes universal binary build) 2007-09-04 18:46:08 +00:00
Derick Rethans
14df6eb975 - Ugh, fix this properly. 2007-09-03 12:12:51 +00:00
Derick Rethans
cf0e879870 - Fixed DateTimeZone::getTransitions(). 2007-09-03 12:03:46 +00:00
Jani Taskinen
5c0df4eb38 - Fix warnings 2007-07-20 23:53:29 +00:00
Derick Rethans
56828aba9a - Let's always use the macro as llabs() requires c99. 2007-07-13 17:49:18 +00:00
Dmitry Stogov
e76b7240a1 Unicode support 2007-07-13 15:22:34 +00:00
Rob Richards
982967b637 use macro - llabs not always available on win32 2007-07-13 12:48:47 +00:00
Derick Rethans
b49f733c6a - Commit generated file. 2007-07-12 18:59:35 +00:00
Derick Rethans
d43b79f12b - Missing file in commit. 2007-07-12 18:58:48 +00:00
Derick Rethans
1e096be0b3 - Fixed bug #41964 (strtotime returns a timestamp for non-time string of
pattern '(A|a) .+').
- Fixed bug #41844 (Format returns incorrect number of digits for negative
  years -0001 to -0999).
- Fixed bug #41842 (Cannot create years < 0100 & negative years with
  date_create or new DateTime).
- Fixed bug #41709 (strtotime() does not handle 00.00.0000).
- Fixed bug #41523 (strtotime('0000-00-00 00:00:00') is parsed as 1999-11-30).
2007-07-12 18:56:42 +00:00
Dmitry Stogov
be7c087da5 Fixed test 2007-07-10 07:29:06 +00:00
Derick Rethans
ee6242887c - Updated to 2007f. 2007-07-05 13:48:23 +00:00
Ilia Alshanetsky
254827fbb7 MFB: Final shot at the date issue 2007-06-07 23:16:41 +00:00
Antony Dovgal
a9f6f71460 check return value of *time_r() functions for NULL
more checks will follow
2007-06-07 08:46:32 +00:00
Ilia Alshanetsky
26255ddf1a Fixed typo 2007-06-07 02:21:55 +00:00
Ilia Alshanetsky
2d13cd37be MFB: Adjust previous patch to work on all compilers 2007-06-06 23:16:45 +00:00
Ilia Alshanetsky
da635f2b98 MFB: Optimize out a loop 2007-06-06 22:58:53 +00:00