[php-src] PR #25409: ext/pgsql: fix the wrong names in the pg_lo_write() and pg_lo_read() errors
| From: | lacatoire | Date: | Thu, 12 Nov 2026 08:05:59 +0000 |
| Subject: | [php-src] PR #25409: ext/pgsql: fix the wrong names in the pg_lo_write() and pg_lo_read() errors | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40566@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25409
Author: lacatoire
-
pg_lo_write() referred to a nonexistent $buf parameter; it is
$data.
- pg_lo_read() is the only check worded "greater or equal than"; use
"greater than or equal to" like the rest of the file.
Before:
```
pg_lo_write(): Argument #3 ($length) must be less than or equal to the length of argument #2 ($buf)
pg_lo_read(): Argument #2 ($length) must be greater or equal than 0
```
After:
```
pg_lo_write(): Argument #3 ($length) must be less than or equal to the length of argument #2 ($data)
pg_lo_read(): Argument #2 ($length) must be greater than or equal to 0
```