Annotation of embedaddon/php/ext/pdo_pgsql/tests/bug36727.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #36727 (segfault in bindValue() when no parameters are defined)
! 3: --SKIPIF--
! 4: <?php
! 5: if (!extension_loaded('pdo') || !extension_loaded('pdo_pgsql')) die('skip not loaded');
! 6: require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
! 7: require dirname(__FILE__) . '/config.inc';
! 8: PDOTest::skip();
! 9: ?>
! 10: --FILE--
! 11: <?php
! 12: require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
! 13: require dirname(__FILE__) . '/config.inc';
! 14: $db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
! 15:
! 16: $stmt = $db->prepare('SELECT * FROM child');
! 17: var_dump($stmt->bindValue(':test', 1, PDO::PARAM_INT));
! 18:
! 19: echo "Done\n";
! 20: ?>
! 21: --EXPECTF--
! 22: Warning: PDOStatement::bindValue(): SQLSTATE[HY093]: Invalid parameter number: :test in %sbug36727.php on line %d
! 23: bool(false)
! 24: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>