From: azsd at hotmail dot com Operating system: Windows2003 PHP version: 4.3.4 PHP Bug Type: Win32API related Bug description: w32api_register_function missed in newer version php?
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 bug report at http://bugs.php.net/?id=27474&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27474&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27474&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27474&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27474&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27474&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27474&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27474&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27474&r=support Expected behavior: http://bugs.php.net/fix.php?id=27474&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27474&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27474&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27474&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27474&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27474&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27474&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27474&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27474&r=float