Mantis - Quercus
Viewing Issue Advanced Details
2911 minor always 09-05-08 20:21 09-05-08 22:06
koreth  
nam  
normal  
closed 3.2.1  
fixed  
none    
none 3.2.1  
0002911: Calling mysql_close() twice results in NPE
The following buggy PHP code causes an NPE instead of a warning message as in vanilla PHP:

<?php
$conn = mysql_connect('1.2.3.4', 'user', 'pass');
mysql_close($conn);
mysql_close($conn);
Tested with connection pooling turned off. Might not be a problem with pooling turned on. This is low priority -- obviously calling close() twice like this is an application bug.

Notes
(0003403)
nam   
09-05-08 22:06   
php/143h