468,247 Members | 1,307 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,247 developers. It's quick & easy.

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
Jan 26 '06 #1
4 4863

Boris wrote:
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


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

Jan 27 '06 #2

"Chung Leong" <ch***********@hotmail.com>,
news:11*********************@z14g2000cwz.googlegro ups.com...

Boris wrote:
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


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


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

Boris
Jan 27 '06 #3
Boris wrote:
"Chung Leong" <ch***********@hotmail.com>,
news:11*********************@z14g2000cwz.googlegro ups.com...

Boris wrote:
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


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


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

Boris


In my experience the extension was highly unstable.

Jan 27 '06 #4
Boris wrote:
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

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
Jan 27 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Christian Tismer | last post: by
reply views Thread by Cram TeXeD | last post: by
7 posts views Thread by Mark Johnson | last post: by
2 posts views Thread by mrambil | last post: by
35 posts views Thread by Geronimo W. Christ Esq | last post: by
19 posts views Thread by Lyle Fairfield | last post: by
2 posts views Thread by Andrew Burton | last post: by
3 posts views Thread by Sloan.Kohler | last post: by
4 posts views Thread by bukzor | last post: by
reply views Thread by kermitthefrogpy | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.