mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
24 lines
632 B
PHP
24 lines
632 B
PHP
--TEST--
|
|
Bug #71573 (Segfault (core dumped) if paramno beyond bound)
|
|
--EXTENSIONS--
|
|
pdo
|
|
pdo_pgsql
|
|
--SKIPIF--
|
|
<?php
|
|
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
|