diff options
| author | Georg Richter <georg@php.net> | 2005-01-07 14:59:59 +0000 |
|---|---|---|
| committer | Georg Richter <georg@php.net> | 2005-01-07 14:59:59 +0000 |
| commit | 0b4c108bd78fff03e49b0be3934dd3c926fed589 (patch) | |
| tree | 88ad589275108626383326a4151166524044f366 /ext/mysqli/tests/connect.inc | |
| parent | 05adbd51b47b90ebfcfeab7d97f4c2b4d28e4065 (diff) | |
| download | php-git-0b4c108bd78fff03e49b0be3934dd3c926fed589.tar.gz | |
Added new classes:
mysqli_driver
mysqli_warning
mysqli_exception
mysqli_sql_exception
Improved embedded server support
changed testsuite to work also with embedded server
Made statement and resultset classes extendable
minor fixes
Diffstat (limited to 'ext/mysqli/tests/connect.inc')
| -rw-r--r-- | ext/mysqli/tests/connect.inc | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/ext/mysqli/tests/connect.inc b/ext/mysqli/tests/connect.inc index aa1d30a17e..decdd87d51 100644 --- a/ext/mysqli/tests/connect.inc +++ b/ext/mysqli/tests/connect.inc @@ -3,8 +3,24 @@ /* default values are localhost, root and empty password Change the values if you use another configuration */ - $host = "localhost"; - $user = "root"; - $passwd = ""; + $driver = new mysqli_driver; + + if (!$driver->embedded) { + $host = "localhost"; + $user = "root"; + $passwd = ""; + + $driver->embedded_server_start(FALSE, NULL, NULL); + } else { + $path = realpath('./ext/mysqli/tests'); + $host = $user = $passwd = NULL; + $args = array( + "--datadir=$path", + "--innodb_data_home_dir=$path", + "--innodb_data_file_path=ibdata1:10M:autoextend", + "--log-error=$path/testrun.log" + ); + $driver->embedded_server_start(TRUE, $args, NULL); + } ?> |
