Re: [PHP-DEV] how to make nasty code less nasty (obtaining sqlite db handle)

2005-02-04 Thread l0t3k
i found this http://www.zend.com/lists/php-dev/200204/msg01083.html "Wez Furlong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The extension deps framework (that orders the initialization done in > internal_functions.c) is already in HEAD; I was talking about the > extension "

Re: [PHP-DEV] how to make nasty code less nasty (obtaining sqlite db handle)

2005-02-04 Thread Wez Furlong
The extension deps framework (that orders the initialization done in internal_functions.c) is already in HEAD; I was talking about the extension "interfaces" idea I proposed a fairly long time ago now (long enough that I can't remember how long ago). I remember you showing interest in that at that

Re: [PHP-DEV] how to make nasty code less nasty (obtaining sqlite db handle)

2005-02-04 Thread Rasmus Lerdorf
Andrei Zmievski wrote: On Thu, 03 Feb 2005, Wez Furlong wrote: Some time back, I proposed a framework (and even a patch IIRC) that allowed this kind of thing at run-time; despite "we the extension developers" liking the idea, there was some negative feedback from andi/zeev so it never went further.

Re: [PHP-DEV] how to make nasty code less nasty (obtaining sqlite db handle)

2005-02-04 Thread Andrei Zmievski
On Thu, 03 Feb 2005, Wez Furlong wrote: > Some time back, I proposed a framework (and even a patch IIRC) that > allowed this kind of thing at run-time; despite "we the extension > developers" liking the idea, there was some negative feedback from > andi/zeev so it never went further. Search the ph

Re: [PHP-DEV] how to make nasty code less nasty (obtaining sqlite db handle)

2005-02-03 Thread Derrell . Lipman
Wez Furlong <[EMAIL PROTECTED]> writes: > There is no official way to do this kind of thing between arbitrary > extensions. When extensions that are written to share this information, > they typically export an XXX_API function that you can link against to fetch > the data. > > What you've done w

Re: [PHP-DEV] how to make nasty code less nasty (obtaining sqlite db handle)

2005-02-03 Thread Wez Furlong
There is no official way to do this kind of thing between arbitrary extensions. When extensions that are written to share this information, they typically export an XXX_API function that you can link against to fetch the data. What you've done works, so that's fine, although there is a risk of cra

[PHP-DEV] how to make nasty code less nasty (obtaining sqlite db handle)

2005-02-03 Thread Derrell . Lipman
I've written an extension which needs to accept a Resource which is an SQLite database handle, and call a C function which will be using that db handle to issue queries. What I've done works, but is kinda nasty because there doesn't appear to be a clean way to obtain that database handle nor, from