Skip to content

URL2: Fix implicit null declaration #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 7, 2024
Merged

URL2: Fix implicit null declaration #14

merged 1 commit into from
Dec 7, 2024

Conversation

reedy
Copy link
Contributor

@reedy reedy commented Nov 25, 2024

@reedy
Copy link
Contributor Author

reedy commented Nov 25, 2024

This probably does require a newer version of PHP than 5.1.6 as per https://github.com/pear/Net_URL2/blob/master/composer.json#L34...

But when CI seemingly isn't working etc... :)

Started fixing that in #15

@reedy
Copy link
Contributor Author

reedy commented Nov 25, 2024

This probably does require a newer version of PHP than 5.1.6 as per https://github.com/pear/Net_URL2/blob/master/composer.json#L34...

7.1.0 it would seem - https://3v4l.org/F0lJH

Screenshot 2024-11-25 at 18 34 12

Which therefore requires bumping the minimum required version

7.1 was released 1 December 2016, EOL 1 December 2019...

@reedy reedy mentioned this pull request Nov 25, 2024
Copy link
Contributor

@hakre hakre left a comment

Choose a reason for hiding this comment

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

Thanks for reporting this, please use the opportunity to touch this for PHP 9.0 forwards compatibility and make the parameter non-optional.

This not only improves the code but also retains backwards compatibility.

@reedy
Copy link
Contributor Author

reedy commented Nov 25, 2024

This not only improves the code but also retains backwards compatibility.

At some point, supporting such old PHP versions doesn't make a lot of sense... Though, I guess when we can do it without breaking backwards compatability...

I guess I should update #15 to not change the required PHP version then too?

@hakre
Copy link
Contributor

hakre commented Nov 25, 2024

This not only improves the code but also retains backwards compatibility.

At some point, supporting such old PHP versions doesn't make a lot of sense... Though, I guess when we can do it without breaking backwards compatability...

Yes, and thinking: this supports PHP 9.0 which is the opposite of old.

I guess I should update #15 to not change the required PHP version then too?

Ah #15, yes, please update.

@reedy
Copy link
Contributor Author

reedy commented Nov 25, 2024

This not only improves the code but also retains backwards compatibility.

At some point, supporting such old PHP versions doesn't make a lot of sense... Though, I guess when we can do it without breaking backwards compatability...

Yes, and thinking: this supports PHP 9.0 which is the opposite of old.

Well, I was more meaning 5.6 (and 5.1 as per composer.json currently)

I guess I should update #15 to not change the required PHP version then too?

Ah #15, yes, please update.

Already done! :)

@hakre
Copy link
Contributor

hakre commented Nov 25, 2024

Well, I was more meaning 5.6 (and 5.1 as per composer.json currently)

There is no need to change composer.json now, so that is not an issue. But if, then I'm totally with you that one needs to take many more things into consideration including which PHP versions are supported.

For the deprecation message btw., I've found it helpful in some more projects already to highlight some places for smaller refactorings that untangle needless null defaults and even default values at all. The analysis of existing code presented in the RFC only scratches the surface IMHO.

@ashnazg ashnazg self-assigned this Dec 7, 2024
@ashnazg ashnazg merged commit 716695c into pear:master Dec 7, 2024
@reedy reedy deleted the php84 branch December 13, 2024 22:24
@reedy reedy mentioned this pull request Mar 9, 2025
ktomk added a commit to ktomk/Net_URL2 that referenced this pull request Mar 12, 2025
Resolves: https://pear.php.net/bugs/bug.php?id=29032 "Request #29032: Release with PHP 8.4 support (Sam Reed, 2025-03-07)"
Resolves: pear#20 "MSGH Pear Net_URL2 pear#20: URL2.php remove executable bit (Sam Reed, 2025-02-28)"
Resolves: pear#18 "MSGH Pear Net_URL2 pear#18: Restore Phpunit Tests (Tom Klingenberg, 2025-02-12)"
Resolves: pear#17 "MSGH Pear Net_URL2 pear#17: Fix _encodeData regexp (Andreas Kurth, 2025-02-09)"
Resolves: https://pear.php.net/bugs/bug.php?id=28662 "Request #28662: Minimum supported PHP version? (Sam Reed, 2024-11-25)"
Resolves: pear#15 "MSGH Pear Net_URL2 pear#15: Update CI to GitHub Actions (Sam Reed, 2024-11-25)"
Resolves: pear#14 "MSGH Pear Net_URL2 pear#14: URL2: Fix implicit null declaration (Sam Reed, 2024-11-25)"
Resolves: https://pear.php.net/bugs/bug.php?id=28649 "Bug #28649: PHP 8.4 compatybility bug" (Aleksander Machniak, 2024-08-30)
Resolves: pear#13 "MSGH Pear Net_URL2 pear#13: Add .gitattributes to exclude dev files from Composer package (Timo Tijhof, 2020-02-15)"
ktomk added a commit to ktomk/Net_URL2 that referenced this pull request Mar 12, 2025
Resolves: https://pear.php.net/bugs/bug.php?id=29032 "Request #29032: Release with PHP 8.4 support (Sam Reed, 2025-03-07)"
Resolves: pear#20 "MSGH Pear Net_URL2 pear#20: URL2.php remove executable bit (Sam Reed, 2025-02-28)"
Resolves: pear#18 "MSGH Pear Net_URL2 pear#18: Restore Phpunit Tests (Tom Klingenberg, 2025-02-12)"
Resolves: pear#17 "MSGH Pear Net_URL2 pear#17: Fix _encodeData regexp (Andreas Kurth, 2025-02-09)"
Resolves: https://pear.php.net/bugs/bug.php?id=28662 "Request #28662: Minimum supported PHP version? (Sam Reed, 2024-11-25)"
Resolves: pear#15 "MSGH Pear Net_URL2 pear#15: Update CI to GitHub Actions (Sam Reed, 2024-11-25)"
Resolves: pear#14 "MSGH Pear Net_URL2 pear#14: URL2: Fix implicit null declaration (Sam Reed, 2024-11-25)"
Resolves: https://pear.php.net/bugs/bug.php?id=28649 "Bug #28649: PHP 8.4 compatybility bug" (Aleksander Machniak, 2024-08-30)
Resolves: pear#13 "MSGH Pear Net_URL2 pear#13: Add .gitattributes to exclude dev files from Composer package (Timo Tijhof, 2020-02-15)"
ktomk added a commit to ktomk/Net_URL2 that referenced this pull request Mar 24, 2025
Resolves: https://pear.php.net/bugs/bug.php?id=29032 "Request #29032: Release with PHP 8.4 support (Sam Reed, 2025-03-07)"
Resolves: pear#20 "MSGH Pear Net_URL2 pear#20: URL2.php remove executable bit (Sam Reed, 2025-02-28)"
Resolves: pear#18 "MSGH Pear Net_URL2 pear#18: Restore Phpunit Tests (Tom Klingenberg, 2025-02-12)"
Resolves: pear#17 "MSGH Pear Net_URL2 pear#17: Fix _encodeData regexp (Andreas Kurth, 2025-02-09)"
Resolves: https://pear.php.net/bugs/bug.php?id=28662 "Request #28662: Minimum supported PHP version? (Sam Reed, 2024-11-25)"
Resolves: pear#15 "MSGH Pear Net_URL2 pear#15: Update CI to GitHub Actions (Sam Reed, 2024-11-25)"
Resolves: pear#14 "MSGH Pear Net_URL2 pear#14: URL2: Fix implicit null declaration (Sam Reed, 2024-11-25)"
Resolves: https://pear.php.net/bugs/bug.php?id=28649 "Bug #28649: PHP 8.4 compatybility bug" (Aleksander Machniak, 2024-08-30)
Resolves: pear#13 "MSGH Pear Net_URL2 pear#13: Add .gitattributes to exclude dev files from Composer package (Timo Tijhof, 2020-02-15)"
ktomk added a commit to ktomk/Net_URL2 that referenced this pull request Mar 24, 2025
Resolves: https://pear.php.net/bugs/bug.php?id=29032 "Request #29032: Release with PHP 8.4 support (Sam Reed, 2025-03-07)"
Resolves: pear#20 "MSGH Pear Net_URL2 pear#20: URL2.php remove executable bit (Sam Reed, 2025-02-28)"
Resolves: pear#18 "MSGH Pear Net_URL2 pear#18: Restore Phpunit Tests (Tom Klingenberg, 2025-02-12)"
Resolves: pear#17 "MSGH Pear Net_URL2 pear#17: Fix _encodeData regexp (Andreas Kurth, 2025-02-09)"
Resolves: https://pear.php.net/bugs/bug.php?id=28662 "Request #28662: Minimum supported PHP version? (Sam Reed, 2024-11-25)"
Resolves: pear#15 "MSGH Pear Net_URL2 pear#15: Update CI to GitHub Actions (Sam Reed, 2024-11-25)"
Resolves: pear#14 "MSGH Pear Net_URL2 pear#14: URL2: Fix implicit null declaration (Sam Reed, 2024-11-25)"
Resolves: https://pear.php.net/bugs/bug.php?id=28649 "Bug #28649: PHP 8.4 compatybility bug" (Aleksander Machniak, 2024-08-30)
Resolves: pear#13 "MSGH Pear Net_URL2 pear#13: Add .gitattributes to exclude dev files from Composer package (Timo Tijhof, 2020-02-15)"
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