Mantis - Quercus
Viewing Issue Advanced Details
3459 minor always 04-25-09 23:12 04-25-09 23:12
koreth  
 
normal  
new 4.0.0  
open  
none    
none  
0003459: is_resource() returns true for closed connections
<?php
$c = mysql_connect('dbname', 'username', 'password');
print 'after connect: ';
print is_resource($c) ? 'true' : 'false';
mysql_close($c);
print '
after close: ';
print is_resource($c) ? 'true' : 'false';

Regular PHP prints

after connect: true
after close: false

Quercus prints

after connect: true
after close: true

There are no notes attached to this issue.