Skip to content

Commit 5d41b87

Browse files
author
Martin Köditz
authored
Added README file
Added readme file. Description how to compile interbase extension.
1 parent 05049db commit 5d41b87

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# PHP Firebird extension
2+
3+
## Building the driver
4+
5+
### Build the driver on Linux
6+
First of all, we have to meet some requirements. This means we need to install the `phpize` command. The `phpize` command is used to prepare the build environment for a PHP extension.
7+
Install the `phpize` command. This is usually done by installing the `php7-devel` package using the system's package manager.
8+
For OpenSuse use
9+
```
10+
$ zypper in php7-devel
11+
```
12+
13+
Now make sure you provide the fbclient.so and the header files (ibase.h). These are needed to compile. You can specify the include path for the ibase.h file with CPPFLAGS as you can see in the following listing.
14+
```
15+
$ git clone https://github.com/MartinKoeditz/php_firebird.git php-firebird
16+
$ cd php-firebird
17+
$ phpize
18+
$ CPPFLAGS=-I/usr/include/firebird ./configure
19+
$ make
20+
```
21+
If the configure process passes you will get following message:
22+
```
23+
$ Build complete.
24+
$ Don't forget to run 'make test'.
25+
```
26+
You can find the `interbase.so` file in directory `php-firebird/modules`. Copy the file to your php extension dir and restart your webserver.

0 commit comments

Comments
 (0)