#46628 [Opn->Csd]: oci_bind_by_name(): some type constants do not exist
| From: | vrana@php.net | Date: | Fri, 20 Nov 2009 11:58:29 +0000 |
| Subject: | #46628 [Opn->Csd]: oci_bind_by_name(): some type constants do not exist | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-3282@lists.php.net to get a copy of this message | ||
ID: 46628
Updated by: vrana@php.net
Reported By: alvaro at demogracia dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:
Fixed by bug #49865.
Previous Comments:
------------------------------------------------------------------------
[2008-11-20 09:05:33] alvaro at demogracia dot com
Description:
------------
Some of the constants for $type do not exist:
http://es.php.net/manual/en/function.oci-bind-by-name.php
SQLT_FILE :-?
SQLT_CFILE :-?
According to a user comment some constant names have changed. If so,
constants should have a note about the range of versions in which
they're valid.
Also, the aforementioned page does not fully match the Predefined
Constants section:
http://es.php.net/manual/en/oci8.constants.php
E.g., SQLT_INT is mentioned as used by oci_bind_array_by_name() but not
oci_bind_by_name()
Reproduce code:
---------------
<?php
// Print OCI8's SQLT_* constants
$constants = get_defined_constants(true);
foreach($constants['oci8'] as $name => $value){
if( strpos($name, 'SQLT_')!==false ){
echo $name . PHP_EOL;
}
}
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46628&edit=1