Skip to content

Stop the PHP 8.5 deprecation warning for the MySQL SSL option - #298

Merged
PhilReinking merged 1 commit into
mainfrom
fix/bits-386-mysql-ssl-deprecation
Oct 22, 2026
Merged

PhilReinking merged 1 commit into
mainfrom
fix/bits-386-mysql-ssl-deprecation

Conversation

@PhilReinking

@PhilReinking PhilReinking commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Part of BITS-386

What changed
The MySQL SSL option in config/database.php now uses Pdo\Mysql::ATTR_SSL_CA on PHP 8.5 and PDO::MYSQL_ATTR_SSL_CA before. PHP 8.5 deprecates the old name, so every container start printed "PHP Deprecated". No other PDO::MYSQL_ATTR_ uses are in config/.

Tested

Built the image (PHP 8.5.12): artisan optimize:clear prints no "Deprecated".

With MYSQL_ATTR_SSL_CA=/x, the mysql options hold the CA on PHP 8.5.12 (key 1008) and on PHP 8.3.35 in sail-8.3/app (key 1009).

Not tested

A real TLS connection to a MySQL server.

After merge
Nothing to do.

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@PhilReinking
PhilReinking marked this pull request as ready for review October 22, 2026 12:58

@PhilReinking PhilReinking left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

OK at bdbc7ca (CI: the PM checks it). config/database.php is the same blob (eee86f21) as deck9/input-hosted#22. Checked there on php:8.5-cli 8.5.12: [1008 => CA], no deprecation; on php:8.3-cli 8.3.36: [1009 => CA]. No other PDO::MYSQL_ATTR_ in config/ or app/. The changelog line is under [Unreleased] → Fixed with (#298). No security change.

@PhilReinking
PhilReinking merged commit afc50cb into main Oct 22, 2026
6 checks passed
@PhilReinking
PhilReinking deleted the fix/bits-386-mysql-ssl-deprecation branch October 22, 2026 13:56
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.

1 participant