Skip to content

PHP 8.5 compatibility#235

Merged
adamziel merged 4 commits intodevelopfrom
php-8.5
Nov 27, 2025
Merged

PHP 8.5 compatibility#235
adamziel merged 4 commits intodevelopfrom
php-8.5

Conversation

@JanJakes
Copy link
Copy Markdown
Member

@JanJakes JanJakes commented Sep 5, 2025

Adds PHP 8.5 unit tests and fixes PHP 8.5 deprecations:

  • Use PDO\SQLite in PHP >= 8.4
  • Use PDO\Sqlite::createFunction() instead of deprecated PDO::sqliteCreateFunction()
  • Fix ord(): Providing an empty string is deprecated with PHP 8.5

Fixes #234.

@JanJakes
Copy link
Copy Markdown
Member Author

So @akirk pointed me to shivammathur/setup-php#450, and I added error_reporting=E_ALL, but still no luck. I'll try it locally at some point.

@akirk
Copy link
Copy Markdown
Member

akirk commented Sep 12, 2025

@JanJakes
Copy link
Copy Markdown
Member Author

@akirk That doesn't seem to help either 🤔

@swissspidy
Copy link
Copy Markdown
Member

PHP 8.5 is released now. Is there any way I can help move this forward?

@JanJakes JanJakes marked this pull request as ready for review November 27, 2025 17:24
@JanJakes JanJakes requested a review from adamziel November 27, 2025 17:24
@JanJakes
Copy link
Copy Markdown
Member Author

@swissspidy Thanks for the reminder; this PR should be ready now! cc @adamziel

@adamziel adamziel merged commit f9d4e56 into develop Nov 27, 2025
16 checks passed
@swissspidy swissspidy deleted the php-8.5 branch November 27, 2025 17:56
@swissspidy
Copy link
Copy Markdown
Member

Awesome, thanks! Looking forward to the next release then :)

@JanJakes
Copy link
Copy Markdown
Member Author

@swissspidy Here you go https://github.com/WordPress/sqlite-database-integration/releases/tag/v2.2.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.

PHP 8.5 Compatibility

4 participants