22 lines
691 B
PHP
22 lines
691 B
PHP
--TEST--
|
|
Bug #71573 (Segfault (core dumped) if paramno beyond bound)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('pdo') || !extension_loaded('pdo_pgsql')) die('skip not loaded');
|
|
require_once __DIR__ . '/../../../ext/pdo/tests/pdo_test.inc';
|
|
require_once __DIR__ . '/config.inc';
|
|
PDOTest::skip();
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
require_once __DIR__ . '/../../../ext/pdo/tests/pdo_test.inc';
|
|
require_once __DIR__ . '/config.inc';
|
|
$db = PDOTest::test_factory(__DIR__ . '/common.phpt');
|
|
|
|
$statement = $db->prepare('select ?');
|
|
$statement->execute([ 'test', 'test', 'test' ]);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number: parameter was not defined in %s on line %d
|