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
Votes:3
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
15 + 6 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 09:01:31 2024 UTC