Skip to content

Conversation

@ndossche
Copy link
Member

@ndossche ndossche commented May 22, 2025

Destroy the old value first. We can't skip recreating the value because
the object may have been changed in between calls.

Destroy the old value first. We can't skip recreating the value because
the object may have been changed in between calls.
@ndossche ndossche force-pushed the date-iter-leak-1 branch from 36ee083 to f322f4a Compare May 23, 2025 16:42
Copy link
Member

@derickr derickr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ndossche ndossche closed this in ff2c7dc May 26, 2025
hakre added a commit to hakre/php-src that referenced this pull request Oct 1, 2025
As documented in [RunningTests], tests have to be written to be
independent of any php.ini file.

Without specifying the timezone, the var_dump() will make use of the
default timezone that may not be the expected "UTC" timezone.

This renders the test-cases flaky and will make them fail if the
`date.timezone` is different from the string "UTC".

Fix is to interpolate the timezone in the test fixture or to set
`date.timezone` to `UTC`.

[RunningTests]: docs/source/miscellaneous/running-tests.rst
fix-up-of: phpGH-18624
@hakre hakre mentioned this pull request Oct 2, 2025
hakre added a commit to hakre/php-src that referenced this pull request Nov 22, 2025
As documented in [RunningTests], tests have to be written to be
independent of any php.ini file.

Without specifying the timezone, the var_dump() will make use of the
default timezone that may not be the expected "UTC" timezone.

This renders the test-cases flaky and will make them fail if the
`date.timezone` is different from the string "UTC".

Fix is to interpolate the timezone in the test fixture or to set
`date.timezone` to `UTC`.

[RunningTests]: docs/source/miscellaneous/running-tests.rst
fix-up-of: phpGH-18624
hakre added a commit to hakre/php-src that referenced this pull request Dec 11, 2025
As documented in [RunningTests], tests have to be written to be
independent of any php.ini file.

Without specifying the timezone, the var_dump() will make use of the
default timezone that may not be the expected "UTC" timezone.

This renders the test-cases flaky and will make them fail if the
`date.timezone` is different from the string "UTC".

Fix is to interpolate the timezone in the test fixture or to set
`date.timezone` to `UTC`.

[RunningTests]: docs/source/miscellaneous/running-tests.rst
fix-up-of: phpGH-18624
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants