1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 17:08:14 +02:00
Files
archived-php-src/ext/mysql/tests/skipif.inc
T
Hannes Magnusson aaa1d62614 MFH: fix/add SKIPIF
2006-06-27 00:09:43 +00:00

12 lines
224 B
PHP
Executable File

<?php
include 'connect.inc';
if (!extension_loaded("mysql")) {
die('skip mysql extension not available');
}
$link = @mysql_connect($host, $user, $passwd);
if (!$link) die('skip cannot connect');
mysql_close($link);
?>