OCI8 problem
| From: | php at home dot uh dot nu | Date: | Wed, 02 Feb 2000 22:06:28 +0000 |
| Subject: | OCI8 problem | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-9702@lists.php.net to get a copy of this message | ||
Howdy,
I have recently started using the cvs tree for the php4 beta, and am
now experiencing a new problem with oci8, which didn't happen with the same
exact php code in the Beta3 release.
The following code lives in a object method that I wrote to log a user in.
This exact code used to work in the php4B3 release. I last updated my cvs tree
yesterday evening.
$res = -1;
$query = "BEGIN login_user2(:username, :password, :ipaddr, :usertime, :row, :userId,
:res);END;";
$stmt = OCIParse($conn, $query);
OCIError();
OCIBindByName($stmt, ":username", &$userName, 21);
OCIBindByName($stmt, ":password", &$password, 21);
OCIBindByName($stmt, ":ipaddr", &$ipAddr, 51);
OCIBindByName($stmt, ":usertime", &$loginDateTime, 21);
OCIBindByName($stmt, ":row", &$this->rowid, 19);
OCIBindByName($stmt, ":userId", &$this->id, 32);
OCIBindByName($stmt, ":res", &$res, 32);
OCIExecute($stmt);
OCIFreeStatement($stmt);
When I call this I get a php error now.
Warning: OCIStmtExecute: ORA-24343: user defined callback error in myclass.php on
line 196
line 196 is the OCIExecute($stmt); call.
Thanks
Walt