-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/src/php/ext/pdo_sqlite/tests/
File Upload :
Current File : //usr/src/php/ext/pdo_sqlite/tests/bug50728.phpt

--TEST--
Bug #50728 (All PDOExceptions hardcode 'code' property to 0)
--SKIPIF--
<?php
if (!extension_loaded('pdo_sqlite')) print 'skip not loaded';
?>
--FILE--
<?php
try {
	$a = new PDO("sqlite:/this/path/should/not/exist.db");
} catch (PDOException $e) {
	var_dump($e->getCode());
}
?>
--EXPECTF--
int(14)

Copyright © 2017 || Recoded By Mr.Bumblebee