Files
archived-pecl-database-mysql/tests/setupdefault.inc
Adam Harvey 28152de85a Initial copy of ext/mysql from php-src.
Further history before this can be found in the php-src repository: the
PRE_PHP7_EREG_MYSQL_REMOVALS tag indicates the last commit before this
extension was removed.
2015-03-05 01:05:03 +00:00

11 lines
333 B
PHP

<?php
// copy variables from connect.inc into mysql default connection ini settings, so that implicit mysql_connect() behaviour can be tested where needed
// must be loaded AFTER connect.inc
ini_set('mysql.default_host', $host . ":" . $port);
ini_set('mysql.default_user', $user);
ini_set('mysql.default_password', $passwd);
?>