1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 11:13:36 +02:00
Files
archived-php-src/ext/mysql/tests/001.phpt
T
Antony Dovgal 45353a5c39 fix test
2008-01-18 12:41:24 +00:00

26 lines
444 B
PHP
Executable File

--TEST--
mysql connect
--SKIPIF--
<?php include 'skipif.inc'; ?>
--FILE--
<?php
include 'connect.inc';
$test = '';
/*** test mysql_connect localhost ***/
$db = mysql_connect($host, $user, $passwd);
$test .= ($db) ? '1' : '0';
mysql_close($db);
/*** test mysql_connect localhost:port ***/
$db = mysql_connect("{$host}:3306", $user, $passwd, true);
$test .= ($db) ? '1' : '0';
mysql_close($db);
var_dump($test);
?>
--EXPECT--
string(2) "11"