We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code:
<?php $pdo = new PDO('pgsql:host=127.0.0.1;dbname=test', 'root', 'root'); $pdo->beginTransaction(); $oid = $pdo->pgsqlLOBCreate(); var_dump($lob = $pdo->pgsqlLOBOpen($oid, 'wb')); fwrite($lob, 'test'); $pdo->commit(); $pdo->beginTransaction(); var_dump($lob = $pdo->pgsqlLOBOpen($oid, 'wb')); var_dump(fgets($lob));
Resulted in this output:
resource(4) of type (stream) resource(5) of type (stream) bool(false)
But I expected this output instead:
resource(4) of type (stream) resource(5) of type (stream) string(4) "test"
PHP 8.0.21
Ubuntu 20.04
The text was updated successfully, but these errors were encountered:
Indeed, the first LOB stream is only closed after the second transaction has been started.
Sorry, something went wrong.
Merge branch 'PHP-8.0' into PHP-8.1
b5cad50
* PHP-8.0: Fix GH-9411: PgSQL large object resource is incorrectly closed
6ac3f7c
Merge branch 'PHP-8.1' into PHP-8.2
15405c6
* PHP-8.1: Fix GH-9411: PgSQL large object resource is incorrectly closed
Merge branch 'PHP-8.2'
669312d
* PHP-8.2: Fix GH-9411: PgSQL large object resource is incorrectly closed
Successfully merging a pull request may close this issue.
Description
The following code:
Resulted in this output:
But I expected this output instead:
PHP Version
PHP 8.0.21
Operating System
Ubuntu 20.04
The text was updated successfully, but these errors were encountered: