Return to bug50728.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / pdo_sqlite / tests |
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)