Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old January 26th, 2006, 09:45 PM
Boris
Guest
 
Posts: n/a
Default Is W32api dead?

The PHP documentation at http://www.php.net/manual/en/ref.w32api.php says
that W32api has been moved to the PECL repository and is no longer bundled
with PHP as of PHP 5.1.0. After I finally found out that W32api is now
called or replaced by ffi (why isn't that mentioned in the documentation?) I
downloaded php_ffi.dll directly from
http://pecl4win.php.net/ext.php/php_ffi.dll. When you try to load this
extension in PHP 5.1.2 though you get a warning:

PHP Startup: Unable to initialize module
Module compiled with module API=20041030, debug=0, thread-safety=1
PHP compiled with module API=20050922, debug=0, thread-safety=1
These options need to match

From what I understand the source code of ffi is simply too old. Even though
it is automatically compiled every day it seems to be based on a module API
from 2004. Does this mean that W32api is dead? It also seems like that ffi
isn't updated any more - according to http://pecl.php.net/package/ffi the
last version was released in January 2004. Is there somewhere a ready-to-use
PHP extension for PHP 5.1.2 to call functions in a Windows DLL?

Boris


  #2  
Old January 27th, 2006, 01:25 AM
Chung Leong
Guest
 
Posts: n/a
Default Re: Is W32api dead?


Boris wrote:[color=blue]
> The PHP documentation at http://www.php.net/manual/en/ref.w32api.php says
> that W32api has been moved to the PECL repository and is no longer bundled
> with PHP as of PHP 5.1.0. After I finally found out that W32api is now
> called or replaced by ffi (why isn't that mentioned in the documentation?) I
> downloaded php_ffi.dll directly from
> http://pecl4win.php.net/ext.php/php_ffi.dll. When you try to load this
> extension in PHP 5.1.2 though you get a warning:
>
> PHP Startup: Unable to initialize module
> Module compiled with module API=20041030, debug=0, thread-safety=1
> PHP compiled with module API=20050922, debug=0, thread-safety=1
> These options need to match
>
> From what I understand the source code of ffi is simply too old. Even though
> it is automatically compiled every day it seems to be based on a module API
> from 2004. Does this mean that W32api is dead? It also seems like that ffi
> isn't updated any more - according to http://pecl.php.net/package/ffi the
> last version was released in January 2004. Is there somewhere a ready-to-use
> PHP extension for PHP 5.1.2 to call functions in a Windows DLL?
>
> Boris[/color]

Was it ever alive? I don't think it ever made it out of the
experimental stage.

  #3  
Old January 27th, 2006, 12:15 PM
Boris
Guest
 
Posts: n/a
Default Re: Is W32api dead?


"Chung Leong" <chernyshevsky@hotmail.com>,
news:1138324544.623561.61790@z14g2000cwz.googlegro ups.com...[color=blue]
>
> Boris wrote:[color=green]
>> The PHP documentation at http://www.php.net/manual/en/ref.w32api.php says
>> that W32api has been moved to the PECL repository and is no longer
>> bundled
>> with PHP as of PHP 5.1.0. After I finally found out that W32api is now
>> called or replaced by ffi (why isn't that mentioned in the
>> documentation?) I
>> downloaded php_ffi.dll directly from
>> http://pecl4win.php.net/ext.php/php_ffi.dll. When you try to load this
>> extension in PHP 5.1.2 though you get a warning:
>>
>> PHP Startup: Unable to initialize module
>> Module compiled with module API=20041030, debug=0, thread-safety=1
>> PHP compiled with module API=20050922, debug=0, thread-safety=1
>> These options need to match
>>
>> From what I understand the source code of ffi is simply too old. Even
>> though
>> it is automatically compiled every day it seems to be based on a module
>> API
>> from 2004. Does this mean that W32api is dead? It also seems like that
>> ffi
>> isn't updated any more - according to http://pecl.php.net/package/ffi the
>> last version was released in January 2004. Is there somewhere a
>> ready-to-use
>> PHP extension for PHP 5.1.2 to call functions in a Windows DLL?
>>
>> Boris[/color]
>
> Was it ever alive? I don't think it ever made it out of the
> experimental stage.[/color]

But even though it was experimental you could at least try your luck. Right
now you can't even load the extension.

Boris


  #4  
Old January 27th, 2006, 04:15 PM
Chung Leong
Guest
 
Posts: n/a
Default Re: Is W32api dead?

Boris wrote:[color=blue]
> "Chung Leong" <chernyshevsky@hotmail.com>,
> news:1138324544.623561.61790@z14g2000cwz.googlegro ups.com...[color=green]
> >
> > Boris wrote:[color=darkred]
> >> The PHP documentation at http://www.php.net/manual/en/ref.w32api.php says
> >> that W32api has been moved to the PECL repository and is no longer
> >> bundled
> >> with PHP as of PHP 5.1.0. After I finally found out that W32api is now
> >> called or replaced by ffi (why isn't that mentioned in the
> >> documentation?) I
> >> downloaded php_ffi.dll directly from
> >> http://pecl4win.php.net/ext.php/php_ffi.dll. When you try to load this
> >> extension in PHP 5.1.2 though you get a warning:
> >>
> >> PHP Startup: Unable to initialize module
> >> Module compiled with module API=20041030, debug=0, thread-safety=1
> >> PHP compiled with module API=20050922, debug=0, thread-safety=1
> >> These options need to match
> >>
> >> From what I understand the source code of ffi is simply too old. Even
> >> though
> >> it is automatically compiled every day it seems to be based on a module
> >> API
> >> from 2004. Does this mean that W32api is dead? It also seems like that
> >> ffi
> >> isn't updated any more - according to http://pecl.php.net/package/ffi the
> >> last version was released in January 2004. Is there somewhere a
> >> ready-to-use
> >> PHP extension for PHP 5.1.2 to call functions in a Windows DLL?
> >>
> >> Boris[/color]
> >
> > Was it ever alive? I don't think it ever made it out of the
> > experimental stage.[/color]
>
> But even though it was experimental you could at least try your luck. Right
> now you can't even load the extension.
>
> Boris[/color]

In my experience the extension was highly unstable.

  #5  
Old January 27th, 2006, 09:45 PM
Jonathan
Guest
 
Posts: n/a
Default Re: Is W32api dead?

Boris wrote:[color=blue]
> The PHP documentation at http://www.php.net/manual/en/ref.w32api.php says
> that W32api has been moved to the PECL repository and is no longer bundled
> with PHP as of PHP 5.1.0. After I finally found out that W32api is now
> called or replaced by ffi (why isn't that mentioned in the documentation?) I
> downloaded php_ffi.dll directly from
> http://pecl4win.php.net/ext.php/php_ffi.dll. When you try to load this
> extension in PHP 5.1.2 though you get a warning:
>
> PHP Startup: Unable to initialize module
> Module compiled with module API=20041030, debug=0, thread-safety=1
> PHP compiled with module API=20050922, debug=0, thread-safety=1
> These options need to match
>
> From what I understand the source code of ffi is simply too old. Even though
> it is automatically compiled every day it seems to be based on a module API
> from 2004. Does this mean that W32api is dead? It also seems like that ffi
> isn't updated any more - according to http://pecl.php.net/package/ffi the
> last version was released in January 2004. Is there somewhere a ready-to-use
> PHP extension for PHP 5.1.2 to call functions in a Windows DLL?
>
> Boris
>
>[/color]
It probably only works with older versions of PHP, probably far before
PHP 5. Have seen this message a few times when I tried to load of a
custom imagick dll in a new PHP version as there was now new imagick
version. Downgrading (for the time being) to a lower PHP version solved
my problem back then.

Jonathan
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles