From: minh dot huynh at bowker dot com
Operating system: win32
PHP version: 5.1.2
PHP Bug Type: Oracle related
Bug description: oci_bind_by_name resulted with "Only variables can be passed
by reference"
Description:
------------
I run php5.1.2, Apache2, using IIS Win32.
It gives "Only variables can be passed by reference" when I try
oci_bind_by_name.
Reproduce code:
---------------
<?php
$conn = oci_connect("userid","password","ora1");
$sSQL = "select * from rcl.rcl_item where rcl_item_uid = :myid";
$Statement = oci_parse($conn, $sSQL);
oci_bind_by_name($Statement, ':myid', 10,8);
oci_execute($Statement);
oci_free_statement($Statement);
oci_close($conn);
?>
Expected result:
----------------
nothing, but I got fatal error: Only variables can be passed by reference
Actual result:
--------------
When I didn't use oci_bind_by_name it worked. I was able to print out
column names and values. I think it's a bug.
--
Edit bug report at http://bugs.php.net/?id=37136&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=37136&r=trysnapshot44
Try a CVS snapshot (PHP 5.1):
http://bugs.php.net/fix.php?id=37136&r=trysnapshot51
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=37136&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37136&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=37136&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37136&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37136&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37136&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37136&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37136&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=37136&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=37136&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37136&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37136&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37136&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37136&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37136&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37136&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37136&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37136&r=mysqlcfg