Skip to content

Conversation

@zonuexe
Copy link
Contributor

@zonuexe zonuexe commented Feb 28, 2024

This function no longer returns false since PHP 8.

Also, "success" for this function means calling the function with three arguments of the correct type.

Therefore, only array was consistently written in the return value of the prototype.

This function no longer returns false since PHP 8.

Also, "success" for this function means calling the function with three arguments of the correct type.

- https://github.com/php/php-src/blob/php-7.0.0/ext/date/php_date.c#L4725-L4737
- https://github.com/php/php-src/blob/php-7.4.0/ext/date/php_date.c#L5077-L5094

Therefore, only `array` was consistently written in the return value of the prototype.
Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

Was the false return due to ZPP failures?

@kocsismate
Copy link
Member

Was the false return due to ZPP failures?

Yes: php/php-src@647b1c7

@Girgias Girgias merged commit 03b6583 into php:master May 30, 2024
@zonuexe zonuexe deleted the patch-1 branch May 31, 2024 04:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants