1--TEST-- 2Bug #36727 (segfault in bindValue() when no parameters are defined) 3--EXTENSIONS-- 4pdo_pgsql 5--SKIPIF-- 6<?php 7require __DIR__ . '/../../../ext/pdo/tests/pdo_test.inc'; 8require __DIR__ . '/config.inc'; 9PDOTest::skip(); 10?> 11--FILE-- 12<?php 13require __DIR__ . '/../../../ext/pdo/tests/pdo_test.inc'; 14require __DIR__ . '/config.inc'; 15$db = PDOTest::test_factory(__DIR__ . '/common.phpt'); 16 17$stmt = $db->prepare('SELECT * FROM test36727'); 18var_dump($stmt->bindValue(':test', 1, PDO::PARAM_INT)); 19 20echo "Done\n"; 21?> 22--CLEAN-- 23<?php 24require __DIR__ . '/../../../ext/pdo/tests/pdo_test.inc'; 25$db = PDOTest::test_factory(__DIR__ . '/common.phpt'); 26$db->exec("DROP TABLE IF EXISTS test36727"); 27?> 28--EXPECTF-- 29Warning: PDOStatement::bindValue(): SQLSTATE[HY093]: Invalid parameter number: :test in %s on line %d 30bool(false) 31Done 32