ID: 37162 Updated by: [EMAIL PROTECTED] Reported By: jdolecek at NetBSD dot org -Status: Open +Status: Closed Bug Type: WDDX related Operating System: NetBSD PHP Version: 5.1.2 New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2006-04-22 10:39:01] jdolecek at NetBSD dot org Description: ------------ When WDDX module is compiled separately from main PHP build, the module contents are not actually compiled due to #ifdef HAVE_WDDX. Since config.h is not included,HAVE_WDDX is not defined in this case and empty .o file is produced. This problem also affects PHP 4.4.2. Fix is to include config.h on top: --- ext/wddx/wddx.c.orig 2006-04-22 12:18:32.000000000 +0200 +++ ext/wddx/wddx.c @@ -20,2 +20,6 @@ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "php.h" Reproduce code: --------------- Build as separate module (i.e. not compiled into php) and load via extension=wddx.so Expected result: ---------------- Module loads Actual result: -------------- php prints warning when loading the extension: PHP Warning: Unknown(): Invalid library (maybe not a PHP library) 'wddx.so' in Unknown on line 0 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37162&edit=1