Skip to content

Commit a42f457

Browse files
committed
fix build error for pdo_mysql
1 parent ded5e0d commit a42f457

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/app-service/containers/tutorial-php-mysql-app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ Open _config/database.php_ and add the _sslmode_ and _options_ parameters to `co
265265
'mysql' => [
266266
...
267267
'sslmode' => env('DB_SSLMODE', 'prefer'),
268-
'options' => (env('MYSQL_SSL')) ? [
268+
'options' => (env('MYSQL_SSL') && extension_loaded('pdo_mysql')) ? [
269269
PDO::MYSQL_ATTR_SSL_KEY => '/ssl/BaltimoreCyberTrustRoot.crt.pem',
270270
] : []
271271
],

0 commit comments

Comments
 (0)