#34048 [Opn->Fbk]: ora_bind can not use like ora_bind($this->CURSOR,"output",":out",5, 2);
| From: | sniper@php.net | Date: | Tue, 09 Aug 2005 11:12:13 +0000 |
| Subject: | #34048 [Opn->Fbk]: ora_bind can not use like ora_bind($this->CURSOR,"output",":out",5, 2); | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-83233@lists.php.net to get a copy of this message | ||
ID: 34048
Updated by: sniper@php.net
Reported By: swingcoder at msn dot com
-Status: Open
+Status: Feedback
-Bug Type: Oracle related
+Bug Type: OCI8 related
Operating System: Red Hat Enterprise Linux AS rele
PHP Version: 5.0.4
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2005-08-09 13:06:43] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34048&edit=1