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
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: 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 00:01:29 2025 UTC