Annotation of embedaddon/php/ext/pdo_sqlite/tests/bug50728.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #50728 (All PDOExceptions hardcode 'code' property to 0)
! 3: --SKIPIF--
! 4: <?php
! 5: if (!extension_loaded('pdo_sqlite')) print 'skip not loaded';
! 6: ?>
! 7: --FILE--
! 8: <?php
! 9: try {
! 10: $a = new PDO("sqlite:/this/path/should/not/exist.db");
! 11: } catch (PDOException $e) {
! 12: var_dump($e->getCode());
! 13: }
! 14: ?>
! 15: --EXPECTF--
! 16: int(14)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>