php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #46628 oci_bind_by_name(): some type constants do not exist
Submitted: 2008-11-20 09:05 UTC Modified: 2009-11-20 11:58 UTC
From: alvaro at demogracia dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2008-11-20 09:05 UTC] 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;
	}
}
?>



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-20 11:58 UTC] vrana@php.net
Fixed by bug #49865.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Jun 16 11:00:01 2026 UTC