Re: Trivial DB (tdb) extension proposal
| From: | Antony Dovgal | Date: | Tue, 31 Jul 2007 15:04:28 +0000 |
| Subject: | Re: Trivial DB (tdb) extension proposal | ||
| References: | 1 2 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-4832@lists.php.net to get a copy of this message | ||
On 31.07.2007 18:50, Alexey Zakhlestin wrote:
a) I didn't manage to compile tdb-library on macos-x, so couldn't test your extension alsoIt's non-trivial on Linux either, so not surprising you didn't manage to do it on MacOS, where everything is so much complicated. To build it on Linux I had to: 1) run Samba's main ./configure 2) run autogen.sh and ./configure in tdb/ dir 3) tweak Makefile manually in order to move "-I../include" to the beginning of CPPFLAGS. After that make succeeded, but libtdb.a was not installed by make install, so I had to put it in place manually.
b) that global static var looks scary. no thread-safety here?Global static var? The resource id? Yes, it's safe as it must be per-process. Check out other extensions using resources. -- Wbr, Antony Dovgal