From bc710e890d99f522d4adb0fa9bff5b0504a5a036 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Mon, 28 Aug 2017 10:33:48 +0000 Subject: [PATCH] Fixes for PHP 7.0 compatibility --- test.php | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/test.php b/test.php index c84bbcc..815f15f 100644 --- a/test.php +++ b/test.php @@ -32,8 +32,15 @@ <tr> <th class="head" colspan="2">Baza danych</th> </tr> <tr> <th>Ustawienia bazy<br />(/includes/config.php)</th> <td><?php echo NT; ?></td> </tr> -<tr> <th>Rozszerzenie MySQL</th> <td><?php -if(!extension_loaded('mysql')) { +<tr> <th>Rozszerzenie PDO</th> <td><?php +if(!extension_loaded('pdo')) { + echo FAIL; + $mysql = FALSE; +} +else echo OK; +?></td> </tr> +<tr> <th>Rozszerzenie PDO MySQL</th> <td><?php +if(!extension_loaded('pdo_mysql')) { echo FAIL; $mysql = FALSE; } -- Gitblit v1.9.1