note 83102 deleted from function.oci-bind-by-name by sixd

From: Date: Sat, 14 Nov 2009 00:59:16 +0000
Subject: note 83102 deleted from function.oci-bind-by-name by sixd
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-162893@lists.php.net to get a copy of this message
Note Submitter: sixd at php dot net ---- For IN string binds (i.e. INSERT or passing a value into a PL/SQL procedure) where the length is not known when binding, use a length that is longer than the longest possible string. If you don't know what this is in advance, then re-call oci_bind_by_name() with the actual size prior to each oci_execute() call. For OUT binds, always specify a length so that PHP allocates enough memory to hold the returned value. The cardinal rule for binding is that the memory address used in the bind call must continue to exist and be usable when the oci_execute occurs. This is the common problem with 'foreach' loops.

« previous php.notes (#162893) next »