Re: A Windows extension
| From: | Wez Furlong | Date: | Fri, 07 Nov 2003 13:56:21 +0000 |
| Subject: | Re: A Windows extension | ||
| References: | 1 2 3 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-190@lists.php.net to get a copy of this message | ||
> > I don't think it is wise to wrap every win32 API known to man;
> > using something like ffi for those is probably better, unless
> > there is significant demand for having a PHP native version.
> For exemple the process to have a simple working "File Open" dialog box
> using the Win32 API (not MFC) is a half an hour work i let you imagine
what
> it can take using ffi.
Ack :-)
Those dialog boxes can be really nasty.
> And i want it to be usefull too for people that don't have access to the
> MSDN library (it's not cheap ;).
http://msdn.microsoft.com/library is free.
> >> - PHP thread support (already working - but need improvements)
>
> > I think that this is a losing battle (PHP just isn't designed
> > to work that way). However, it would be cool if you can get
> > something working. It would be better to have that effort
> > put into the existing PECL threads package rather than a win32
> > extension
>
> I got something working !
> For now it work with a call to a script file, it will be better if it can
> take a copy of a PHP user level function and i think it could be possible
> by using a process similar to those that are used in caches extension.
This sounds very much like pecl/threads. Take a look :)
--Wez.