php.net |  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: swingcoder at msn dot com
New email:
PHP Version: OS:

 

 [2005-08-09 13:06 UTC] swingcoder at msn dot com
Description:
------------
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 192.168.100.227] 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: http://192.168.100.42/admin/index.php


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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-09 13:12 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

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

 [2005-08-09 13:18 UTC] tony2001@php.net
ora_* functions are deprecated.
Use oci8* instead.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Dec 05 18:03:37 2021 UTC