Dmitry Stogov
9e709e2fa0
Move constants into read-only data segment
2017-12-14 18:43:44 +03:00
Dmitry Stogov
1db8402208
Move zend_object_iterator_funcs structures into read-only data segment
2017-12-14 14:21:22 +03:00
Dmitry Stogov
6a9d2b2190
Cleanup type conversion
2017-12-07 19:24:55 +03:00
Nikita Popov
dcdd4abdb2
Make sure properties are initialized before cloning
...
Now that they are not memset, they need to be explicitly intialized,
as zend_objects_clone_members() destroys the old property values
first.
2017-11-25 22:51:37 +01:00
Nikita Popov
b72b1a4e4d
Add zend_object_alloc() API
...
Using ecalloc() to create objects is expensive, because the
dynamic-size memset() is unreasonably slow. Make sure we only
zero the main object structure with known size, as the properties
are intialized separately anyway.
Technically we do not need to zero the embedded zend_object
structure either, but as long as the memset argument is constant,
a couple more bytes don't really matter.
2017-11-25 17:12:37 +01:00
Anatol Belski
c57a2dccae
Use appropriate macro
2017-11-17 23:32:37 +01:00
Anatol Belski
95bfbeeea8
Remove useless condition
2017-11-17 23:32:03 +01:00
Dmitry Stogov
ccc12b82da
Avoid unnecessary reference-counting on strings.
2017-11-16 17:09:32 +03:00
Derick Rethans
0651886ab9
Merge branch 'PHP-7.2'
2017-11-07 14:52:26 +00:00
Derick Rethans
466a34d67c
Revert "date module, replacing abs call with the llabs's like one due to bigger type"
...
This reverts commit c189845951
.
2017-11-07 14:52:12 +00:00
Joe Watkins
c0b73c82af
Merge branch 'PHP-7.2'
...
* PHP-7.2:
date module, replacing abs call with the llabs's like one due to bigger type
2017-11-07 05:27:38 +00:00
David Carlier
c189845951
date module, replacing abs call with the llabs's like one due to bigger type
2017-11-07 05:27:27 +00:00
Sammy Kaye Powers
98d6d1189c
Remove decade-old commented-out code
2017-10-31 14:46:16 +00:00
Anatol Belski
65f610bd9f
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix array access on undeclared properties in DateInterval
2017-10-09 15:40:00 +02:00
Anatol Belski
611d117b24
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix array access on undeclared properties in DateInterval
2017-10-09 15:38:37 +02:00
Anatol Belski
d8881f4eb4
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fix array access on undeclared properties in DateInterval
2017-10-09 15:38:21 +02:00
Anatol Belski
f48abfa902
Fix array access on undeclared properties in DateInterval
2017-10-09 15:35:38 +02:00
Joe Watkins
a4da53a654
Merge branch 'PHP-7.2'
...
* PHP-7.2:
fix bug #75222 DateInterval microseconds property always 0
2017-09-27 06:24:46 +01:00
jhdxr
7deb561f75
fix bug #75222 DateInterval microseconds property always 0
2017-09-27 06:23:42 +01:00
Xinchen Hui
ff6f41c94e
Narrow typeinfos down for zend_parse_paramenters_none
2017-09-12 11:25:21 +08:00
Derick Rethans
db6510884c
Merge branch 'PHP-7.2'
2017-09-04 22:45:43 +01:00
Derick Rethans
c0383b5039
Upgrade timelib to 2017.05beta9
2017-09-04 22:45:34 +01:00
Michael Moravec
d9d13aba58
Added method DateTime::createFromImmutable()
2017-08-25 22:20:43 +02:00
Remi Collet
f4792750a5
timelib now have a function for this, use it
2017-08-22 12:55:13 +02:00
Derick Rethans
7121b8d0a2
Do the revert properly, and put back fraction support in 7.1
2017-08-16 15:59:56 +01:00
Derick Rethans
547f9fd389
Merge branch 'PHP-7.0' into PHP-7.1
2017-08-16 15:20:45 +01:00
Derick Rethans
60a6feed07
Revert "Upgrade timelib to 2017.05beta7"
...
This reverts commit bdd56f3107
.
2017-08-16 15:19:18 +01:00
Derick Rethans
e92a4891aa
Merge branch 'PHP-7.1' into PHP-7.2
2017-08-16 09:51:36 +01:00
Derick Rethans
4dc8f4f9d1
Merge branch 'PHP-7.0' into PHP-7.1
2017-08-16 09:51:28 +01:00
Derick Rethans
7829f9b1d2
Added timelib version to phpinfo()
2017-08-16 09:51:21 +01:00
Derick Rethans
a063d55395
Merge branch 'PHP-7.1' into PHP-7.2
2017-08-15 15:07:24 +01:00
Derick Rethans
584db6f38f
Merged PHP-7.0 by hand due to conflicts.
2017-08-15 15:06:18 +01:00
Derick Rethans
bdd56f3107
Upgrade timelib to 2017.05beta7
2017-08-15 14:10:23 +01:00
Anatol Belski
b4bce59fe9
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #75002 Null Pointer Dereference in timelib_time_clone
2017-08-02 16:42:20 +02:00
Anatol Belski
1fdc518971
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #75002 Null Pointer Dereference in timelib_time_clone
2017-08-02 16:41:48 +02:00
Derick Rethans
b112d09013
Fixed bug #75002 Null Pointer Dereference in timelib_time_clone
2017-08-02 16:40:48 +02:00
Joe Watkins
bad55a72ab
Merge branch 'PHP-7.1'
...
* PHP-7.1:
Fixed bug #74852 (property_exists returns true on unknown DateInterval property)
2017-07-10 06:54:24 +01:00
Joe Watkins
ccd0ff3ac4
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #74852 (property_exists returns true on unknown DateInterval property)
2017-07-10 06:53:59 +01:00
jhdxr
5cf54f6073
Fixed bug #74852 (property_exists returns true on unknown DateInterval property)
2017-07-10 06:53:22 +01:00
Michael Moravec
637714cdaa
Implemented FR #71520
...
Adding the DateTime constants to the DateTimeInterface interface.
2017-06-03 00:54:34 +02:00
Niklas Keller
f2e7cdb8b7
Fix bug #55407
...
This reverts commit b148c50f48
and
reintroduces the fix for bug #55407 .
With https://wiki.php.net/rfc/parameter-no-type-variance being
implemented now, it's no longer a BC break.
2017-06-03 00:11:03 +02:00
Joe Watkins
a6b9cf0250
Merge branch 'PHP-7.1'
...
* PHP-7.1:
Fixed #74639 - Added proper clone functionality for DatePeriod and DateInterval
2017-06-01 08:07:53 +01:00
andrewnester
48598a2302
Fixed #74639 - Added proper clone functionality for DatePeriod and DateInterval
2017-06-01 08:07:11 +01:00
Joe Watkins
54820aa8de
Merge branch 'PHP-7.1'
...
* PHP-7.1:
Fixed bug #74080 Add datetime constant for RFC7231
2017-04-17 08:09:55 +01:00
Joe Watkins
bc3c9a06e0
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #74080 Add datetime constant for RFC7231
2017-04-17 08:09:24 +01:00
Craig Duncan
618d97962a
Fixed bug #74080 Add datetime constant for RFC7231
2017-04-17 08:08:54 +01:00
Joe Watkins
67ef80d34b
Merge branch 'PHP-7.1'
...
* PHP-7.1:
Fixed bug #74404 (wrong reflection on DateTimeZone::getTransitions)
2017-04-10 12:50:13 +01:00
Joe Watkins
6a84762816
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #74404 (wrong reflection on DateTimeZone::getTransitions)
2017-04-10 12:49:44 +01:00
Joe Watkins
d9e2f80375
Fixed bug #74404 (wrong reflection on DateTimeZone::getTransitions)
2017-04-10 12:48:51 +01:00
Derick Rethans
7ba7a79039
Merge branch 'PHP-7.1'
2017-03-20 17:49:34 +00:00