#37162 [NEW]: WDDX module doesn't build non-bundled
From: jdolecek at NetBSD dot org
Operating system: NetBSD
PHP version: 5.1.2
PHP Bug Type: WDDX related
Bug description: WDDX module doesn't build non-bundled
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 bug report at http://bugs.php.net/?id=37162&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37162&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37162&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37162&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37162&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37162&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37162&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37162&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37162&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37162&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37162&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37162&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37162&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37162&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37162&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37162&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37162&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37162&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37162&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37162&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37162&r=mysqlcfg
Thread (2 messages)
- jdolecek at NetBSD dot org