diff options
Diffstat (limited to 'ext/pdo/tests/bug_34687.phpt')
-rw-r--r-- | ext/pdo/tests/bug_34687.phpt | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/ext/pdo/tests/bug_34687.phpt b/ext/pdo/tests/bug_34687.phpt deleted file mode 100644 index 3ab78189d6..0000000000 --- a/ext/pdo/tests/bug_34687.phpt +++ /dev/null @@ -1,32 +0,0 @@ ---TEST-- -PDO Common: PHP Bug #34687: query doesn't return error information ---SKIPIF-- -<?php # vim:ft=php -if (!extension_loaded('pdo')) die('skip'); -$dir = getenv('REDIR_TEST_DIR'); -if (false == $dir) die('skip no driver'); -require_once $dir . 'pdo_test.inc'; -PDOTest::skip(); -?> ---FILE-- -<?php -if (getenv('REDIR_TEST_DIR') === false) putenv('REDIR_TEST_DIR='.dirname(__FILE__) . '/../../pdo/tests/'); -require getenv('REDIR_TEST_DIR') . 'pdo_test.inc'; -$db = PDOTest::factory(); - -$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT); -$x = $db->query("UPDATE non_existent_pdo_test_table set foo = 'bar'"); - -var_dump($x); -$code = $db->errorCode(); -if ($code !== '00000' && strlen($code)) { - echo "OK: $code\n"; -} else { - echo "ERR: $code\n"; - print_r($db->errorInfo()); -} - -?> ---EXPECTF-- -bool(false) -OK: %s |