note 42100 modified in function.ocierror by sixd
| From: | sixd@php.net | Date: | Mon, 05 Oct 2009 02:08:46 +0000 |
| Subject: | note 42100 modified in function.ocierror by sixd | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-161331@lists.php.net to get a copy of this message | ||
It seems in 4.3 (and probably other versions), if you call OCIError twice it will fail on the second
time (with an empty array). This used to work on previous versions but no longer.
So my prior example of doing if (OCIError won't work and you have to do it like the other
contributed example:
$r = @OCIExecute($selectw,OCI_DEFAULT);
if (!$r)
{
$erra=OCIError($selectw);
print "Error: ${erra['code']} ${erra['message']}";
}
--was--
It seems in 4.3 (and probably other versions), if you call OCIError twice it will fail on the second
time (with an empty array). This used to work on previous versions but no longer.
So my prior example of doing if (OCIError won't work and you have to do it like the other
contributed example:
$r = @OCIExecute($selectw,OCI_DEFAULT);
if (!$r)
{
$erra=OCIError($selectw);
print "Error: ${erra['code']} ${erra['message']}";
}
http://php.net/manual/en/function.ocierror.php