--TEST-- Bug #61411 (PDO Segfaults with PERSISTENT == TRUE && EMULATE_PREPARES == FALSE) --EXTENSIONS-- pdo_mysql --SKIPIF-- --FILE-- prepare("SELECT 1"); $stmt->execute(); foreach ($stmt as $line) { var_dump($line); } print "done!"; ?> --EXPECT-- array(2) { [1]=> string(1) "1" [0]=> string(1) "1" } done!