if (zend_u_hash_find(dbh->cls_methods[PDO_DBH_DRIVER_METHOD_KIND_DBH],
ztype, lc_method_name, method_len+1, (void**)&fbc) == FAILURE) {
- if (std_object_handlers.get_method) {
- fbc = std_object_handlers.get_method(object_pp, lc_method_name, method_len TSRMLS_CC);
- }
+
if (!fbc) {
fbc = NULL;
}
}
out:
+ if (std_object_handlers.get_method) {
+ fbc = std_object_handlers.get_method(object_pp, lc_method_name, method_len TSRMLS_CC);
+ }
+
pdo_zstr_efree(lc_method_name);
return fbc;
}
}
public function __call($method, $args) {
- print "__call()";
+ print "__call(".var_export($method,true).", ".var_export($args, true).")\n";
// $this->protocol();
}
$db->exec('DROP TABLE IF EXISTS test');
print "done!\n";
?>
---XFAIL--
-PDO doesn't like __call()
--EXPECTF--
__construct('%s', '%s', '%s')
exec('DROP TABLE IF EXISTS test')