SP set Cursor null, how can know?


$conn = Helper::createOciConnect();

$cur = oci_new_cursor($conn);

$statement = oci_parse($conn,$sql);

oci_bind_by_name($statement,'CR',$cur,-1,OCI_B_CURSOR);

oci_execute($statement);

oci_execute($cur); // if SP set CR null, this line will take error

in the SP,

cr:=null;

how can i do?