Mantis - Quercus
Viewing Issue Advanced Details
3242 minor always 01-13-09 03:43 01-15-09 15:40
haplo  
ferg  
normal  
closed  
fixed  
none    
none 4.0.0  
0003242: instanceof does not work with java classes
$pdo = new PDO("mysql:dbname=test;host=localhost", "root", "");
echo '$pdo instanceof PDO is : ' . ( $pdo instanceof PDO ? "true" : "false");



Result on quercus:
$pdo instanceof PDO is : false

Result on apache:
$pdo instanceof PDO is : true

This works on quercus as expected:

$pdo = new PDO("mysql:dbname=test;host=localhost", "root", "");
echo '$pdo instanceof PDO is : ' . ( is_a($pdo,"com.caucho.quercus.lib.db.PDO") ? "true" : "false");

Notes
(0003740)
ferg   
01-15-09 15:40   
php/03p4