com php-src: Fix test regarding ZPP TypeErrors: ext/odbc/tests/ odbc_data_source_001.phpt
| From: | Christoph Michael Becker | Date: | Wed, 28 Aug 2019 14:45:05 +0000 |
| Subject: | com php-src: Fix test regarding ZPP TypeErrors: ext/odbc/tests/ odbc_data_source_001.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-108109@lists.php.net to get a copy of this message | ||
Commit: afb69b6f2d4872d6b916c10d7d394ca304481865
Author: Christoph M. Becker <cmbecker69@gmx.de> Wed, 28 Aug 2019 16:43:43 +0200
Parents: 3f339ec15f5ea52c4bad62c209aff86c5de83b7e
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=afb69b6f2d4872d6b916c10d7d394ca304481865
Log:
Fix test regarding ZPP TypeErrors
We simply remove the second call to
odbc_data_source since it is
testing standard ZPP behavior.
Changed paths:
M ext/odbc/tests/odbc_data_source_001.phpt
Diff:
diff --git a/ext/odbc/tests/odbc_data_source_001.phpt b/ext/odbc/tests/odbc_data_source_001.phpt
index 8f57673..fedbbc1 100644
--- a/ext/odbc/tests/odbc_data_source_001.phpt
+++ b/ext/odbc/tests/odbc_data_source_001.phpt
@@ -15,16 +15,12 @@ include 'config.inc';
$conn = odbc_connect($dsn, $user, $pass);
var_dump(odbc_data_source($conn, NULL));
-var_dump(odbc_data_source($conn, ''));
var_dump(odbc_data_source($conn, SQL_FETCH_FIRST));
?>
--EXPECTF--
Warning: odbc_data_source(): Invalid fetch type (0) in %s on line %d
bool(false)
-
-Warning: odbc_data_source() expects parameter 2 to be int, string given in %s on line %d
-NULL
array(%d) {
%a
}