]> granicus.if.org Git - php/commitdiff
Fix test regarding ZPP TypeErrors
authorChristoph M. Becker <cmbecker69@gmx.de>
Wed, 28 Aug 2019 14:43:43 +0000 (16:43 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Wed, 28 Aug 2019 14:45:05 +0000 (16:45 +0200)
We simply remove the second call to `odbc_data_source` since it is
testing standard ZPP behavior.

ext/odbc/tests/odbc_data_source_001.phpt

index 8f5767315adc269280c3fdb4d1552715d8cb29ef..fedbbc1b02b790feb75444daf0b67c62ed349ccc 100644 (file)
@@ -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
 }