mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

As we don't register the resource, the resource dtor is not called and will not decrement the refcount.
16 lines
298 B
PHP
16 lines
298 B
PHP
--TEST--
|
|
Failure when creating persistent connection
|
|
--EXTENSIONS--
|
|
pdo_mysql
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
$pdo = new PDO('mysql:host=localhost', 'invalid_user', 'invalid_password', [
|
|
PDO::ATTR_PERSISTENT => true,
|
|
]);
|
|
} catch (PDOException $e) {
|
|
echo "Caught\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
Caught
|