History log of /php-src/ext/date/php_date.c (Results 151 – 175 of 947)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# fb5bfcb7 31-Mar-2020 Nikita Popov

Add a ZEND_UNCOMPARABLE value

To explicitly indicate that objects are uncomparable. For now
this has no functional difference from the usual 1 return value,
but makes intent clearer.

# 6b6f0d63 30-Mar-2020 Christoph M. Becker

Merge branch 'PHP-7.4'

* PHP-7.4:
Fix #74940: DateTimeZone loose comparison always true


# a2f8c781 04-Mar-2020 Christoph M. Becker

Fix #74940: DateTimeZone loose comparison always true

Since `DateTimeZone` does not implement a `compare_objects` handler,
nor has any properties, two `DateTimeZone` instances always com

Fix #74940: DateTimeZone loose comparison always true

Since `DateTimeZone` does not implement a `compare_objects` handler,
nor has any properties, two `DateTimeZone` instances always compare as
being equal, even if they designate totally different timezones. Even
worse, after calling `var_dump()` on these objects, the actual
comparison may yield a correct result.

We therefore introduce a `compare_objects` handlers, which prevents
different behavior before/after `var_dump()`, and which allows us to
clearly define the intended semantics.

show more ...

# 8ea143a9 19-Mar-2020 Christoph M. Becker

Merge branch 'PHP-7.4'

* PHP-7.4:
Fix #79396: DateTime hour incorrect during DST jump forward


# 1d9e716a 19-Mar-2020 Christoph M. Becker

Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
Fix #79396: DateTime hour incorrect during DST jump forward


# d70058a1 18-Mar-2020 Nate Brunette

Fix #79396: DateTime hour incorrect during DST jump forward

When you attempt to set the time to a non-existent time occuring during
a DST jump forward, the hour does not move forward cor

Fix #79396: DateTime hour incorrect during DST jump forward

When you attempt to set the time to a non-existent time occuring during
a DST jump forward, the hour does not move forward correctly.

show more ...

Revision tags: php-7.4.3, php-7.2.28, php-7.3.15RC1, php-7.4.3RC1
# 58b17906 03-Feb-2020 Nikita Popov

Apply tidy formatting

Mostly reindent PHP scripts to spaces.

# a66e2267 30-Jan-2020 Nikita Popov

Merge branch 'PHP-7.4'

* PHP-7.4:
Fix DatePeriod property handling with indirect modification


# 01d30f88 30-Jan-2020 Nikita Popov

Fix DatePeriod property handling with indirect modification

We do need to implement get_property_ptr_ptr to make arrays work
correctly.

# 00787278 30-Jan-2020 Nikita Popov

Merge branch 'PHP-7.4'

* PHP-7.4:
Fix leak in DateTimeImmutable::modify()


# 187f3595 30-Jan-2020 Nikita Popov

Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
Fix leak in DateTimeImmutable::modify()


# 494615fc 30-Jan-2020 Nikita Popov

Fix leak in DateTimeImmutable::modify()

# 472fc3a2 30-Jan-2020 Nikita Popov

Fix leak in DatePeriod construction with invalid format

Same issue as I fixed in DateInterval construction before.

# 648f16c2 28-Jan-2020 Nikita Popov

Fix rel_date leak on DateInterval construction failure

Revision tags: php-7.3.15, php-7.2.27, php-7.4.2, php-7.3.14
# d1764ca3 15-Jan-2020 Máté Kocsis

Make error messages more consistent by fixing capitalization

Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable.

Revision tags: php-7.3.14RC1, php-7.4.2RC1, php-7.4.1, php-7.2.26, php-7.3.13
# 1658b5ba 16-Dec-2019 mike

Adding DateTime(Immutable)::createFromInterface()

These are like

DateTime::createFromImmutable()
DateTimeImmutable::createFromMutable()

but accept any DateTimeI

Adding DateTime(Immutable)::createFromInterface()

These are like

DateTime::createFromImmutable()
DateTimeImmutable::createFromMutable()

but accept any DateTimeInterface instead.

Closes GH-5016.

show more ...

# 1400f4ac 03-Jan-2020 Christoph M. Becker

Merge branch 'PHP-7.4'

* PHP-7.4:
Fix #79015: undefined-behavior in php_date.c


# 40b2f823 03-Jan-2020 Christoph M. Becker

Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
Fix #79015: undefined-behavior in php_date.c


# b48f2625 23-Dec-2019 Christoph M. Becker

Fix #79015: undefined-behavior in php_date.c

We check that the given microsecond fraction is in the valid range
[0, 1000000[, and otherwise mark it as invalid. We also drop the
usel

Fix #79015: undefined-behavior in php_date.c

We check that the given microsecond fraction is in the valid range
[0, 1000000[, and otherwise mark it as invalid. We also drop the
useless do loop; a plain block is sufficient here.

show more ...

# 1b93cfee 02-Jan-2020 Máté Kocsis

Use RETURN_THROWS() after zend_parse_method_parameters()

# 349a2864 01-Jan-2020 Máté Kocsis

Use RETURN_THROWS() after zend_throw_error()

# 2f7309b1 30-Dec-2019 Máté Kocsis

Use RETURN_THROWS() during ZPP in the date, dba and dom extensions

Revision tags: php-7.4.1RC1, php-7.3.13RC1, php-7.2.26RC1, php-7.4.0, php-7.2.25, php-7.3.12
# 0cec268d 15-Nov-2019 Nikita Popov

Support single class unions in gen stubs

# 468ecf29 15-Nov-2019 Nikita Popov

Fix DateTimeImmutable stubs

These were referencing the arginfo from the functions, instead of
the methods, which isn't right, as the functions have return types.

Revision tags: php-7.4.0RC6, php-7.3.12RC1, php-7.2.25RC1
# 2204dbde 31-Oct-2019 Máté Kocsis

Add missing ZPP checks

Closes GH-4878.

12345678910>>...38