|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34048 ora_bind can not use like ora_bind($this->CURSOR,"output",":out",5, 2);
Submitted: 2005-08-09 13:06 UTC Modified: 2005-08-09 13:18 UTC
From: swingcoder at msn dot com Assigned:
Status: Wont fix Package: Oracle related
PHP Version: 5.0.4 OS: Red Hat Enterprise Linux AS rele
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: swingcoder at msn dot com
New email:
PHP Version: OS:


 [2005-08-09 13:06 UTC] swingcoder at msn dot com
ora_bind can not use $this-> reference in a class. only support local variable.

Haven't you get a volonteer now yet?it is really a bug,if you not work for ora_* functions,then why not delete all of it!!

Reproduce code:
ora_parse($this->CURSOR, $sql) or die($this->ERROR($this->ORACLE_FLAG));

ora_bind($this->CURSOR,"output",":out",5, 2);

ora_exec($this->CURSOR) or die($this->ERROR($this->ORACLE_FLAG));
$this->output = $output;

Expected result:
[client] PHP Fatal error:  ora_bind() [<a href='function.ora-bind'>function.ora-bind</a>]: Could not make parameter placeholder in /usr/local/apache/htdocs/lib/class.db.php on line 130, referer:

Actual result:
$this->output should get the correct value.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-09 13:12 UTC]
Please try using this CVS snapshot:
For Windows:

And instead of using --with-oracle, use --with-oci8

 [2005-08-09 13:18 UTC]
ora_* functions are deprecated.
Use oci8* instead.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Jan 19 14:03:17 2022 UTC