When using the code below (such as in the example from http://php.net/manual/en/function.cubrid-unbuffered-query.php\)
{code}
?php
$conn = cubrid_connect(localhost, 33000, demodb, dba, );
$c = cubrid_unbuffered_query('SELECT * FROM athlete');
while ($r = cubrid_fetch($c)) {
echo After fetch...br /;
var_dump($r);
}
cubrid_disconnect($conn);
?
{code}
All the results are returned, but also the following error occurs after all the results are displayed correctly:
Warning: Error: CAS, -1006, Server handle not found in ... on line 4
It happens with any database and also with cubrid_fetch_array and cubrid_fetch_object. It does not happen with cubrid_query so it is related to cubrid_unbuffered_query.