Bug #81382 [Opn->Dup]: OUT-Variables result in ORA-03131
Edit report at https://bugs.php.net/bug.php?id=81382&edit=1
ID: 81382
Updated by: cmb@php.net
Reported by: php-oci8 dot pkoch at dfgh dot net
Summary: OUT-Variables result in ORA-03131
-Status: Open
+Status: Duplicate
Type: Bug
Package: OCI8 related
Operating System: Solaris 11.4 SPARC 64 bigendian
PHP Version: 7.4.22
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
> Bug https://bugs.php.net/bug.php?id=73002
> from 2019 seems to
> deal with the same problem [â¦]
Then this is a duplicate of bug #73002.
> and provides patches.
Consider to provide pull requests[1] instead for better visibility.
[1] <https://github.com/php/php-src/pulls>
Previous Comments:
------------------------------------------------------------------------
[2021-08-25 14:38:09] php-oci8 dot pkoch at dfgh dot net
Description:
------------
Using Out-Variables results in
ORA-03131: an invalid buffer was provided for the next piece
when oci_execute() is called with PHP-7.4.22 under Solaris 11.4 64bit SPARC
Bug https://bugs.php.net/bug.php?id=73002 from
2019 seems to deal with the same problem and provides patches.
Test-Script runs fine with PHP-5.6.37 (both under Solaris 64bit and Linux 32/64bit). It also has no
problems with PHP-7.4.22 under Linux 64bit.
Test script:
---------------
$conn=oci_new_connect("scott","tiger","ORCL");
$stat=oci_parse($conn, "begin :out:='Hello World'; end;");
oci_bind_by_name($stat, ":out", $result, 100);
oci_execute($stat);
print "result=$result\n";
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=81382&edit=1
Thread (6 messages)