【发布时间】:2014-02-02 13:50:11
【问题描述】:
我正在尝试从 Oracle 包中调用一个函数,但出现此错误:
PHP致命错误:只能通过引用传递变量
这是我的代码:
$connection = $this->getConnection();
if (!$connection){
return null;
}
$s = oci_parse($connection, "begin my_package.my_function(
:param1
); end;");
//getting the error in this following line:
oci_bind_by_name($s, ":param1", "13")
if($result = oci_execute($s)){
....
}
...
我一直在查看具有完全相同错误的其他帖子,但似乎都与此问题无关。
我在 Windows 7 机器上使用 PHP 版本 5.5.6 而不是 IIS 7.5。
这是我包装中的函数定义:
FUNCTION my_function(param1 IN VARCHAR2) RETURN CLOB IS
BEGIN
-- etc...
-- etc...
END;
【问题讨论】:
标签: php oracle11g iis-7.5 oracle-call-interface