|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-02-03 06:18 UTC] tony2001 at phpclub dot net
[2006-02-03 06:23 UTC] robertg2 at hope dot ac dot uk
[2006-02-03 06:28 UTC] tony2001 at phpclub dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 10:00:02 2025 UTC |
Description: ------------ The code below, within a foreach loop inserting a number of rows into a table using clob fields, succeeds in 1.1.1 but fails from cvs downloaded today. The CLOB values being written are very small (maximum 30 characters in length). It seems that the first loop through works okay but the second one fails. Reproduce code: --------------- foreach ($_POST as $strKey => $strValue) { if ($strKey != 'QUESTIONNUMBER' && $strKey != 'MANDATORY') { if (trim($strValue) != "") { $booFound = true; $s2 = oci_parse($conn, $strSql2); $clob = oci_new_descriptor($conn, OCI_D_LOB); $strOraclePartname = trim($strKey); oci_bind_by_name($s2, ":P_PARTNAME", $strOraclePartname); oci_bind_by_name($s2, ":P_ANSWER", $clob, -1, OCI_B_CLOB); oci_execute($s2, OCI_DEFAULT); $clob->save(trim($strValue)); oci_commit($conn); oci_free_statement($s2); $clob->free(); } } } Expected result: ---------------- Errors in the apache log take the form of this: [Fri Feb 03 10:36:27 2006] [notice] child pid 4211 exit signal Segmentation fault (11)