m.yakunin
d2cde0bfd3
Fix #70153 \DateInterval incorrectly unserialized
...
Added a separate macro for reading 'days' property, so that bool(false)
is correctly converted to the proper internal representation.
2019-10-18 15:31:14 +02:00
Dmitry Stogov
b02b81299c
Comparison cleanup:
...
- introduce zend_compare() that returns -1,0,1 dirctly (without intermediate zval)
- remove compare_objects() object handler, and keep only compare() handler
2019-10-07 17:57:49 +03:00
Nikita Popov
647b1c7fcf
Remove most uses of ZEND_PARSE_PARAMETERS_END_EX()
...
As ZPP now throws, it makes no sense to specify an explicit return
value.
2019-10-07 10:02:18 +02:00
Gabriel Caruso
5d6e923d46
Remove mention of PHP major version in Copyright headers
...
Closes GH-4732.
2019-09-25 14:51:43 +02:00
Nikita Popov
962a9cd74e
Merge branch 'PHP-7.4'
2019-09-19 11:36:29 +02:00
Nikita Popov
22516b7d8a
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-19 11:36:19 +02:00
Nikita Popov
f53b8268d6
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-19 11:36:09 +02:00
CJDennis
e3255a4f49
Fix typo
...
`sizeof("data")-1` and `sizeof("date")-1` are both 4, so no change in behaviour
2019-09-19 11:36:00 +02:00
Craig Duncan
06aa2ae993
Update the date class arginfo the new format
2019-08-12 20:57:30 +01:00
Nikita Popov
3b2f2ce474
Make uninitialized DateTime an Error
...
This avoids many spurious false return values.
2019-08-09 14:51:25 +02:00
Nikita Popov
33886f710c
Generate arginfo from PHP stub files
...
Signature stubs for internal functions are specified in xyz.stub.php,
from which we generate actual arginfo structures in xyz_arginfo.h.
This file then needs to be included in the implementation appropriately.
Arginfo from stubs can be regenerated using scripts/dev/gen_stub.php.
However, this should also automatically happen when the stub file is
modified.
2019-08-09 14:51:25 +02:00
Nikita Popov
527dad600b
Merge branch 'PHP-7.4'
2019-08-08 09:56:10 +02:00
Nikita Popov
fc17bfaacf
Fixed bug #78383
2019-08-08 09:55:52 +02:00
Christoph M. Becker
7556600dfc
Fix #65547 : Default value for sunrise/sunset zenith still wrong
...
The value of the zenith angle to calculate sunrise and sunset times is
commonly defined as 90°50', and is "obtained by adding the average
apparent radius of the Sun (16') to the average amount of atmospheric
refraction at the horizon (34')", according to
http://aa.usno.navy.mil/faq/docs/RST_defs.php .
This value is also used for the Sunrise/Sunset Algorithm published in
the Almanac for Computers, 1990, see
https://web.archive.org/web/20161202180207/http://williams.best.vwh.net/sunrise_sunset_algorithm.htm .
2019-07-15 13:52:09 +02:00
Joe Watkins
264536877d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
export php_time
2019-06-19 12:40:23 +02:00
Joe Watkins
599b94ff14
export php_time
2019-06-19 12:39:51 +02:00
Joe Watkins
8cc26690b5
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Resolve discrepencies between second value yielded by gettimeofday and time, fixes #69044
2019-06-19 09:01:59 +02:00
Joe Watkins
fb95043acf
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Resolve discrepencies between second value yielded by gettimeofday and time, fixes #69044
2019-06-19 09:01:20 +02:00
Joe Watkins
025899e3b5
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Resolve discrepencies between second value yielded by gettimeofday and time, fixes #69044
2019-06-19 08:59:04 +02:00
Joe Watkins
65067dff01
Resolve discrepencies between second value yielded by gettimeofday and time, fixes #69044
2019-06-19 08:56:20 +02:00
Dmitry Stogov
457392fa64
Cheaper checks for exceptions thrown from __toString()
2019-06-06 01:47:22 +03:00
Nikita Popov
a31f46421d
Allow exceptions in __toString()
...
RFC: https://wiki.php.net/rfc/tostring_exceptions
And convert some object to string conversion related recoverable
fatal errors into Error exceptions.
Improve exception safety of internal code performing string
conversions.
2019-06-05 14:25:07 +02:00
Craig Duncan
facfbf3c9c
Update the DatePeriod read/write handlers
2019-05-30 19:16:31 +01:00
Craig Duncan
bc87424835
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Add a test for bug #65672
Ensure the internal properties cannot be overwritten
2019-05-30 19:15:58 +01:00
Craig Duncan
a08b3b6d19
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Add a test for bug #65672
Ensure the internal properties cannot be overwritten
2019-05-30 19:14:04 +01:00
Craig Duncan
370997fb5d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add a test for bug #65672
Ensure the internal properties cannot be overwritten
2019-05-30 18:55:55 +01:00
Craig Duncan
dc586bff36
Ensure the internal properties cannot be overwritten
2019-05-30 18:55:36 +01:00
Nikita Popov
cf610347a7
Merge branch 'PHP-7.4'
2019-05-29 09:52:43 +02:00
Nikita Popov
3bd5b83615
Specify get_property_ptr_ptr handler for DatePeriod
...
This handler is required on 7.4. Just return NULL from it to fall
back to read_property.
2019-05-29 09:51:15 +02:00
Dmitry Stogov
b2cdde0826
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Replace ZVAL_COPY() and ZVAL_COPY_VALUE() for IS_OBJECT by cheaper macros
2019-05-28 20:19:15 +03:00
Dmitry Stogov
83804519df
Replace ZVAL_COPY() and ZVAL_COPY_VALUE() for IS_OBJECT by cheaper macros
2019-05-28 20:10:02 +03:00
Nikita Popov
3a8304c35a
Merge branch 'PHP-7.4'
2019-04-23 13:15:09 +02:00
Nikita Popov
3cfbbf2956
Make DateInterval objects uncomparable
...
Arbitrary DateInterval objects don't have well-defined comparison
semantics. Throw a warning and treat the objects as uncomparable.
Support for comparing DateInterval objects returned by
DateTime::diff() may be added in the future.
2019-04-23 13:12:06 +02:00
Derick Rethans
b896819b99
Merge branch 'PHP-7.4'
2019-04-17 09:40:35 +01:00
Derick Rethans
4a3f64dfef
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-17 09:40:28 +01:00
Derick Rethans
6088713216
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-17 09:40:18 +01:00
Ignace Nyamagana Butera
7b1a4e2400
Fixed bug #77909 : DatePeriod::__construct() with invalid recurrence count value
...
Improve error message on invalid reccurence count
Adding test when reccurence is -1
2019-04-17 09:39:03 +01:00
Nikita Popov
890fe686bc
Merge branch 'PHP-7.4'
2019-04-08 09:44:41 +02:00
Nikita Popov
c708c4b404
Avoid time(NULL) call if explicit timestamp given
...
As suggested by Benjamin Coutu.
2019-04-08 09:43:47 +02:00
Nikita Popov
68d8880248
Merge branch 'PHP-7.4'
2019-03-18 10:14:19 +01:00
Nikita Popov
1b411c039f
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-18 10:14:03 +01:00
Nikita Popov
00cfa1a367
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-18 10:11:25 +01:00
Nikita Popov
a573c0e9ed
Fix unused variable warning
2019-03-18 10:11:00 +01:00
Derick Rethans
d209ccd4cc
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-17 14:55:53 -04:00
Derick Rethans
ab07bc1fff
Fixed 7.2 compat issue
2019-03-17 14:53:56 -04:00
Derick Rethans
ed2cbd49c8
Merge branch 'PHP-7.4'
2019-03-17 14:38:20 -04:00
Derick Rethans
0325e78f4f
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-17 14:38:11 -04:00
Derick Rethans
7e7ef44fab
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-17 14:38:04 -04:00
Ignace Nyamagana Butera
6eb83a63e1
Fixed bug #75113 : Added DatePeriod::getRecurrences() method.
2019-03-17 14:37:35 -04:00
Peter Kokot
4b3da12363
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Remove HAVE_STRFTIME
2019-03-14 19:43:45 +01:00