|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62551 oci_bind_by_name() : maxlength and memory usage
Submitted: 2012-07-13 12:54 UTC Modified: 2013-02-18 00:35 UTC
From: tbrillaud at meti dot fr Assigned: sixd (profile)
Status: No Feedback Package: OCI8 related
PHP Version: 5.3.14 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: tbrillaud at meti dot fr
New email:
PHP Version: OS:


 [2012-07-13 12:54 UTC] tbrillaud at meti dot fr
The variable maxlength has no effect in the memory usage for a bind variable OUT.

A bind variable OUT takes systematically 65536 bytes in memory.

Test script:
$curseur = oci_parse($connexion, $sql);
oci_bind_by_name($curseur,":OUT", $out, $size);

$ok = oci_execute($curseur);

Expected result:
Memory should be consistency with the maxlength parameter.

Actual result:
Playing with memory settings, we obtain :

PHP Fatal error:  Allowed memory size of 10752000 bytes exhausted (tried to allocate 65536 bytes) 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-10-03 02:37 UTC]
-Status: Open +Status: Feedback
 [2012-10-03 02:37 UTC]
Please give a complete testcase, including the DDL to create the procedure 
showing the datatype being using.
 [2012-11-05 00:15 UTC]
-Assigned To: +Assigned To: sixd
 [2013-02-18 00:35 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 15 13:01:32 2024 UTC