From: tbrillaud at meti dot fr Operating system: Linux PHP version: 5.3.14 Package: OCI8 related Bug Type: Bug Bug description:oci_bind_by_name() : maxlength and memory usage
Description: ------------ 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: --------------- $sql = "CALL TEST.PROC_OUT(:OUT)"; $curseur = oci_parse($connexion, $sql); $out="1"; $size=10; oci_bind_by_name($curseur,":OUT", $out, $size); var_dump(memory_get_usage()); $ok = oci_execute($curseur); oci_free_statement($curseur); var_dump(memory_get_usage()); 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) -- Edit bug report at https://bugs.php.net/bug.php?id=62551&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62551&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62551&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62551&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=62551&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62551&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=62551&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=62551&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=62551&r=needscript Try newer version: https://bugs.php.net/fix.php?id=62551&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=62551&r=support Expected behavior: https://bugs.php.net/fix.php?id=62551&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=62551&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=62551&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=62551&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62551&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=62551&r=dst IIS Stability: https://bugs.php.net/fix.php?id=62551&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=62551&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=62551&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=62551&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=62551&r=mysqlcfg