]> granicus.if.org Git - php/commitdiff
Use proper skipif section
authorChristoph M. Becker <cmbecker69@gmx.de>
Thu, 24 Sep 2020 15:10:09 +0000 (17:10 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Thu, 24 Sep 2020 15:12:18 +0000 (17:12 +0200)
The ODBC tests have to be skipped if no connection to the server can be
established.

ext/odbc/tests/bug78470.phpt

index 6910f9bbd10e39ab58922ce7d7373af671c560ba..d905b956679064cb61b94c70d18322092c7a9ec0 100644 (file)
@@ -1,9 +1,7 @@
 --TEST--
 Bug #78470 (odbc_specialcolumns() no longer accepts $nullable)
 --SKIPIF--
-<?php
-if (!extension_loaded('odbc')) die('skip odbc extension not available');
-?>
+<?php include 'skipif.inc'; ?>
 --FILE--
 <?php
 include 'config.inc';