summaryrefslogtreecommitdiff
path: root/ext/date/tests
Commit message (Collapse)AuthorAgeFilesLines
* make sure the tests always uses same tzAnatol Belski2016-02-151-0/+2
|
* Fix bug #71525Sean DuBois2016-02-151-0/+18
| | | | | timelib_time->timelib_rel_time is mutated by date_modify, and because it is never zero'ed out it latters causes other date operations to fail (like date_date_set)
* Merge branch 'PHP-5.6' into PHP-7.0Derick Rethans2016-01-292-0/+38
|\
| * Test + support for negative timestamps with microtimeWillem-Jan2016-01-291-0/+19
| |
| * Also test against equalityWillem-Jan2016-01-291-0/+3
| |
| * Added test for comparing dates with microsecondsWillem-Jan2016-01-291-0/+16
| |
* | Merge branch 'PHP-5.6' into PHP-7.0Julien Pauli2015-12-241-0/+82
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.6: Fixed and improved tests test to function socket_getopt(); test to function socket_clear_error();; test to function socket_shutdown(); test to function socket_send(); test to function gethostname ( void ); test to function DateTimeZone::getLocation(); test to function stream_get_transports(); test to function stream_get_wrappers(); test to function stream_socket_enable_crypto(); test to function stream_socket_get_name(); Create stream_socket_recvfrom.phpt test to stream function set_file_buffer.phpt(); test to function PDO_getAvaliableDrivers; test to misc. function connection_status(); test to function connection_aborted(); test to function memory_get_peak_usage();
| * test to function DateTimeZone::getLocation();marcosptf2015-12-241-0/+82
| |
* | Revert "Fixed bug #71053 (Type Hint about DateTime::diff does not match with ↵Xinchen Hui2015-12-091-13/+0
| | | | | | | | | | | | | | | | | | | | | | informed)" THis is bc break, which will break $date1->diff($date2 , 1), which is common used please do not do bc break without a asking This reverts commit 943b23dcf6666a708c2ad4470cad5db36d47683a.
* | Fixed bug #71053 (Type Hint about DateTime::diff does not match with informed)Reeze Xia2015-12-091-0/+13
| |
* | Merge branch 'PHP-5.6' into PHP-7.0Derick Rethans2015-09-222-15/+2
|\ \ | |/
| * Fixed test cases due to changes in rulesDerick Rethans2015-09-222-15/+2
| |
| * fix dir separator in testAnatol Belski2015-08-281-1/+1
| |
| * fix path separator in testAnatol Belski2015-08-281-1/+1
| |
* | fixed changed error message in testChristoph M. Becker2015-08-171-1/+1
| |
* | Merge branch 'PHP-5.6'Christoph M. Becker2015-08-171-0/+17
|\ \ | |/ | | | | | | | | | | | | * PHP-5.6: Fix #70277: new DateTimeZone($foo) is ignoring text after null byte Resolved conflicts: ext/date/php_date.c
| * Fix #70277: new DateTimeZone($foo) is ignoring text after null byteChristoph M. Becker2015-08-171-0/+17
| | | | | | | | | | | | The DateTimeZone constructors are not binary safe. They're parsing the timezone as string, but discard the length when calling timezone_initialize(). This patch adds a tz_len parameter and a respective check to timezone_initialize().
* | Merge branch 'PHP-5.6'Christoph M. Becker2015-08-141-0/+8
|\ \ | |/ | | | | | | * PHP-5.6: Fix #70266 (DateInterval::__construct.interval_spec is not supposed to be optional)
| * Fix #70266 (DateInterval::__construct.interval_spec is not supposed to be ↵Christoph M. Becker2015-08-141-0/+8
| | | | | | | | | | | | optional) The required_num_args argument of ZEND_BEGIN_ARG_INFO_EX() has to be 1.
* | Fix #70245: strtotime does not emit warning when 2nd parameter is object or ↵Christoph M. Becker2015-08-121-0/+10
| | | | | | | | | | | | | | | | string Caused by a refactoring strtotime() called zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ...) instead of zend_parse_parameters().
* | fix 32-bit testStanislav Malyshev2015-08-051-6/+6
| |
* | fix mergeStanislav Malyshev2015-08-041-6/+6
| |
* | Merge branch 'PHP-5.6'Stanislav Malyshev2015-08-042-12/+12
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.6: update NEWS fix test update NEWS Fix bug #70019 - limit extracted files to given directory Do not do convert_to_* on unserialize, it messes up references Fix #69793 - limit what we accept when unserializing exception Fixed bug #70169 (Use After Free Vulnerability in unserialize() with SplDoublyLinkedList) Fixed bug #70166 - Use After Free Vulnerability in unserialize() with SPLArrayObject ignore signatures for packages too Fix bug #70168 - Use After Free Vulnerability in unserialize() with SplObjectStorage Fixed bug #69892 Fix bug #70014 - use RAND_bytes instead of deprecated RAND_pseudo_bytes Improved fix for Bug #69441 Fix bug #70068 (Dangling pointer in the unserialization of ArrayObject items) Fix bug #70121 (unserialize() could lead to unexpected methods execution / NULL pointer deref) Fix bug #70081: check types for SOAP variables Conflicts: Zend/zend_exceptions.c ext/date/php_date.c ext/openssl/openssl.c ext/phar/phar_internal.h ext/soap/php_http.c ext/spl/spl_array.c ext/spl/spl_dllist.c ext/spl/spl_observer.c ext/standard/tests/serialize/bug69152.phpt sapi/cli/tests/005.phpt
| * Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2015-08-042-12/+12
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: update NEWS fix test update NEWS Fix bug #70019 - limit extracted files to given directory Do not do convert_to_* on unserialize, it messes up references Fix #69793 - limit what we accept when unserializing exception Fixed bug #70169 (Use After Free Vulnerability in unserialize() with SplDoublyLinkedList) Fixed bug #70166 - Use After Free Vulnerability in unserialize() with SPLArrayObject ignore signatures for packages too Fix bug #70168 - Use After Free Vulnerability in unserialize() with SplObjectStorage Fixed bug #69892 Fix bug #70014 - use RAND_bytes instead of deprecated RAND_pseudo_bytes Improved fix for Bug #69441 Fix bug #70068 (Dangling pointer in the unserialization of ArrayObject items) Fix bug #70121 (unserialize() could lead to unexpected methods execution / NULL pointer deref) Fix bug #70081: check types for SOAP variables Conflicts: ext/soap/php_http.c ext/spl/spl_observer.c
| | * Merge branch 'PHP-5.4' into PHP-5.5Stanislav Malyshev2015-08-042-12/+12
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.4: Fix bug #70019 - limit extracted files to given directory Do not do convert_to_* on unserialize, it messes up references Fix #69793 - limit what we accept when unserializing exception Fixed bug #70169 (Use After Free Vulnerability in unserialize() with SplDoublyLinkedList) Fixed bug #70166 - Use After Free Vulnerability in unserialize() with SPLArrayObject ignore signatures for packages too Fix bug #70168 - Use After Free Vulnerability in unserialize() with SplObjectStorage Fixed bug #69892 Fix bug #70014 - use RAND_bytes instead of deprecated RAND_pseudo_bytes Improved fix for Bug #69441 Fix bug #70068 (Dangling pointer in the unserialization of ArrayObject items) Fix bug #70121 (unserialize() could lead to unexpected methods execution / NULL pointer deref) Fix bug #70081: check types for SOAP variables Conflicts: .gitignore ext/date/php_date.c ext/spl/spl_array.c ext/spl/spl_observer.c
| | | * Do not do convert_to_* on unserialize, it messes up referencesStanislav Malyshev2015-08-042-12/+12
| | | |
| | | * Fix bug #68942 (Use after free vulnerability in unserialize() with DateTimeZone)Stanislav Malyshev2015-02-171-0/+9
| | | | | | | | | | | | | | | | | | | | Conflicts: ext/date/php_date.c
| | * | fix test output (32bits)Remi Collet2015-05-141-1/+1
| | | |
* | | | removed another E_STRICT(with the approval of Derick), 3 more to goFerenc Kovacs2015-07-302-2/+2
| | | |
* | | | Merge branch 'PHP-5.6'Christoph M. Becker2015-07-071-1/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-5.6: fixed typo in test for bug #66985
| * | | fixed typo in test for bug #66985Christoph M. Becker2015-07-071-1/+1
| | | |
| * | | Merge branch 'PHP-5.5' into PHP-5.6Remi Collet2015-05-052-4/+4
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-5.5: Relax tests failing on i386 with new zic
| | * | Relax tests failing on i386 with new zicRemi Collet2015-05-052-4/+4
| | | |
| | * | relax tests with huge year (new zic)Remi Collet2015-04-283-9/+9
| | | |
| | * | ignore second value for huge timestamp test (new zic)Remi Collet2015-04-281-2/+2
| | | |
| | * | relax test for date < INT32_MIN (new zic)Remi Collet2015-04-281-11/+11
| | | |
| | * | relax bigbang content (new zic)Remi Collet2015-04-281-3/+3
| | | |
| | * | Make date transitions tests more flexibleRemi Collet2015-04-282-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | zic in recent glibc (2.20) introduce a new transitionn so use a range to avoid failure when total number of transitions is different (243/244)
* | | | Merge branch 'master' into throwable-interfaceAaron Piotrowski2015-06-1416-82/+94
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # Zend/zend_language_scanner.c # Zend/zend_language_scanner.l # ext/simplexml/tests/SimpleXMLElement_xpath.phpt
| * | | | Revert fix for bug #55407Anatol Belski2015-06-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | See 8e19705a93d785cd1ff8ba3a69699b00169fea47 and discussion on github. The suggestion is to target a proper solution in in 7.1.
| * | | | fix datetime tests with vc14Anatol Belski2015-05-2414-80/+84
| | | | | | | | | | | | | | | | | | | | | | | | | VC14 RC seems to support more format extensions, however some difrerences do still persist.
| * | | | make the test more reliableAnatol Belski2015-05-241-2/+8
| | | | |
* | | | | Update exception names in tests after formatting changes.Aaron Piotrowski2015-05-171-1/+1
| | | | |
* | | | | Merge branch 'master' into throwable-interfaceAaron Piotrowski2015-05-172-2/+6
|\ \ \ \ \ | |/ / / /
| * | | | Display TypeExceptions like normal exceptionsNikita Popov2015-05-171-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We currently don't show the argument at which the error actually occured in the trace - should probably either add it or don't display args on incomplete frames altogether, otherwise this'll probably be confusing.
| * | | | Tweak uncaught exception message displayNikita Popov2015-05-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This implements a reduced variant of #1226 with just the following change: -Fatal error: Uncaught exception 'EngineException' with message 'Call to private method foo::bar() from context ''' in %s:%d +Fatal error: Uncaught EngineException: Call to private method foo::bar() from context '' in %s:%d The '' wrapper around messages is very weird if the exception message itself contains ''. Futhermore having the message wrapped in '' doesn't work for the "and defined" suffix of TypeExceptions.
* | | | | Updated tests to reflect exception class changes.Aaron Piotrowski2015-05-168-17/+17
|/ / / /
* | | | Merge branch 'PHP-5.6'Remi Collet2015-04-183-9/+9
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-5.6: relax tests with huge year (new zic)
| * | | relax tests with huge year (new zic)Remi Collet2015-04-183-9/+9
| | | |
| * | | ignore second value for huge timestamp test (new zic)Remi Collet2015-04-181-2/+2
| | | |