|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-04-19 14:25 UTC] tony2001@php.net
[2006-04-19 14:55 UTC] minh dot huynh at bowker dot com
[2006-04-19 15:03 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 23:00:02 2025 UTC |
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.