#18517 [Opn->Csd]: PicoSQL access module
| From: | andrey@php.net | Date: | Sat, 10 Jan 2004 14:42:25 +0000 |
| Subject: | #18517 [Opn->Csd]: PicoSQL access module | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-53053@lists.php.net to get a copy of this message | ||
ID: 18517
Updated by: andrey@php.net
Reported By: bilo at mit dot it
-Status: Open
+Status: Closed
Bug Type: Feature/Change Request
Operating System: Linux, Windows NT, AIX
PHP Version: 4.2.2
New Comment:
Currently there is a picoSql wrapper in PECL :
http://cvs.php.net/cvs.php/pecl/picosql
Previous Comments:
------------------------------------------------------------------------
[2003-04-12 09:20:03] imajes@php.net
samjam's email doesn't work, so removing the assigned flag.
------------------------------------------------------------------------
[2002-08-13 22:03:14] kalowsky@php.net
marking as assigned.
------------------------------------------------------------------------
[2002-07-26 04:33:26] derick@php.net
I think you should make it a PECL package, as this is not really a
mainstream database.
Derick
------------------------------------------------------------------------
[2002-07-26 04:29:31] samjam@php.net
I though't I'd add a note on how easy this is with swig-cvs:
# make work directory
mkdir picosql-php
cd picosql-php
# make interface file to depend on picosql .h files
# we could craft our own .i file if we wanted
cat > picosql.i <<END
%module picosql
%{
#include <odbcsql.h>
%}
%include win4unix.h
%include odbcsql.h
END
# generate php module - very easy, need cvs version of swig
swig -php4 -c++ -shadow -phpfull -I/usr/include -withincs odbcsql.h -o
picosql_wrap.cpp picosql.i
# compile!
phpize
./configure --with-picosql=/usr
make
make install
# then test the module loading
php php_picosql.php
------------------------------------------------------------------------
[2002-07-26 04:28:11] samjam@php.net
Well, I've done it, if there's no objection I'll add it to CVS.
Someone else (bilo@mit.it ?) will need to write the documentation and
see how usable it actually is.
Sam
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/18517
--
Edit this bug report at http://bugs.php.net/?id=18517&edit=1