note 105777 added to ref.pdo-firebird
| From: | confik at gmail dot com | Date: | Wed, 14 Sep 2011 08:01:21 +0000 |
| Subject: | note 105777 added to ref.pdo-firebird | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-183164@lists.php.net to get a copy of this message | ||
Here's the quick guide how to compile pdo_firebird and run tests for the ubuntu:
1) setup firebird superclassic:
$ sudo apt-get install firebird2.5-superclassic firebird2.5-dev
firebird2.5-examples
superclassic is the server itself (if in doubt, read this: http://www.firebirdsql.org/file/documentation/reference_manuals/user_manuals/html/qsg25-classic-or-super.html),
dev package contains headers to
compile pdo stuff, examples contains example db, i used it to run
tests in it.
Set up credentials for the server (see the link lower).
Get employee.fdb as written here
http://www.firebirdsql.org/manual/ubusetup.html
to a some known and
writable path by your user (which tests will be run on).
2) make sure to compile php with following flags, you'll need interbase too (some
tests in pdo_firebird/tests need it)
./configure --enable-pdo --with-pdo-firebird --with-interbase
make
3) Run tests with environment variables that can be found in
ext/pdo_firebird/tests/common.phpt, I ran it like this:
$ PDO_FIREBIRD_TEST_DSN='firebird:dbname=/var/lib/firebird/2.5/data/employee.fdb'
PDO_FIREBIRD_TEST_USER='SYSDBA' PDO_FIREBIRD_TEST_PASS='masterkey'
TEST_PHP_EXECUTABLE=auto php -n ./run-tests.php ext/pdo_firebird
You're done!
----
Server IP: 69.147.83.197
Probable Submitter: 81.95.238.82
----
Manual Page -- http://www.php.net/manual/en/ref.pdo-firebird.php
Edit -- https://master.php.net/note/edit/105777
Del: integrated -- https://master.php.net/note/delete/105777/integrated
Del: useless -- https://master.php.net/note/delete/105777/useless
Del: bad code -- https://master.php.net/note/delete/105777/bad+code
Del: spam -- https://master.php.net/note/delete/105777/spam
Del: non-english -- https://master.php.net/note/delete/105777/non-english
Del: in docs -- https://master.php.net/note/delete/105777/in+docs
Del: other reasons-- https://master.php.net/note/delete/105777
Reject -- https://master.php.net/note/reject/105777
Search -- https://master.php.net/manage/user-notes.php