ID: 27474
Updated by: [EMAIL PROTECTED]
Reported By: azsd at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: Win32API related
Operating System: Windows2003
PHP Version: 4.3.4
New Comment:
The php_w32api.dll extension must be loaded in php.ini:
extension=php_w32api.dll
(check that extension_dir is correct)
or using dl('php_w32api.dll')
Previous Comments:
------------------------------------------------------------------------
[2004-03-02 23:04:17] azsd at hotmail dot com
by the way,I downloaded new CVS version Built On: Mar 03, 2004 01:30
GMT,It always has same error results.
------------------------------------------------------------------------
[2004-03-02 22:45:02] azsd at hotmail dot com
Description:
------------
Dear developers:
When I try to use w32api_register_function in my php test scripts comes
from orginal phpmanel like this:
<?php
w32api_register_function("User32.dll",
"MessageBoxA",
"long");
MessageBoxA(NULL,
"Hello World!",
"PHP MessageBox",
0);
?>
It reports a fetal error like this:
Fatal error: Call to undefined function: w32api_register_function() in
E:\My Webs\xxxx\apitest.php on line 2
I am using 4.3.4 stable version of PHP.
in php.ini set
extension=php_w32api.dll
and phpinfo() shows
Win32 API
Win32 API Support enabled
other extension like gdlib works fine.
My web server is IIS6,Windows 2003,Use ISAPI mode of PHP.
some other guys using these version occoured same errors.
somebody told me this win32api functions only works in older php
version like php4.0.0,is that ture?
or how can i get the functions back in PHP Version 4.3.4?
thanks.
Reproduce code:
---------------
<?php
w32api_register_function("User32.dll",
"MessageBoxA",
"long");
MessageBoxA(NULL,
"Hello World!",
"PHP MessageBox",
0);
?>
Expected result:
----------------
popup a message box with title:Hello world
Actual result:
--------------
Fatal error: Call to undefined function: w32api_register_function() in
E:\My Webs\xxxx\apitest.php on line 2
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27474&edit=1