--TEST-- Bug https://github.com/scoutapp/scout-apm-php-ext/issues/71 - only record arguments for prepare if it returns an object --SKIPIF-- --FILE-- setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING); $stmt = $dbh->prepare("SELECT nonexist FROM nonexist"); ?> --EXPECTF-- Warning: PDO::prepare(): SQLSTATE[HY000]: General error: 1 no such table: nonexist in %s