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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: alvaro at demogracia dot com
New email:
PHP Version: OS:

 

 [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 12:00:02 2026 UTC