Skip to content

Fix return type of date_sun_info()#3207

Merged
Girgias merged 1 commit into
php:masterfrom
zonuexe:patch-1
May 30, 2024
Merged

Fix return type of date_sun_info()#3207
Girgias merged 1 commit into
php:masterfrom
zonuexe:patch-1

Conversation

@zonuexe

@zonuexe zonuexe commented Feb 28, 2024

Copy link
Copy Markdown
Contributor

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.

@Girgias Girgias left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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