--TEST-- PDO Common: Bug #50458 (PDO::FETCH_FUNC fails with Closures) --EXTENSIONS-- pdo --SKIPIF-- --FILE-- exec("CREATE TABLE test50458 (a VARCHAR(10))"); $db->exec("INSERT INTO test50458 (a) VALUES ('xyz')"); $res = $db->query("SELECT a FROM test50458"); var_dump($res->fetchAll(PDO::FETCH_FUNC, function($a) { return strtoupper($a); })); ?> --CLEAN-- --EXPECT-- array(1) { [0]=> string(3) "XYZ" }