1--TEST-- 2Bug #71573 (Segfault (core dumped) if paramno beyond bound) 3--SKIPIF-- 4<?php 5if (!extension_loaded('pdo') || !extension_loaded('pdo_pgsql')) die('skip not loaded'); 6require_once __DIR__ . '/../../../ext/pdo/tests/pdo_test.inc'; 7require_once __DIR__ . '/config.inc'; 8PDOTest::skip(); 9?> 10--FILE-- 11<?php 12require_once __DIR__ . '/../../../ext/pdo/tests/pdo_test.inc'; 13require_once __DIR__ . '/config.inc'; 14$db = PDOTest::test_factory(__DIR__ . '/common.phpt'); 15 16$statement = $db->prepare('select ?'); 17$statement->execute([ 'test', 'test', 'test' ]); 18 19?> 20--EXPECTF-- 21Warning: PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number: parameter was not defined in %sbug71573.php on line %d 22