#32511 [NEW]: ap_php_snprintf breaks under C++ extensions
| From: | lobbin at localhost dot nu | Date: | Thu, 31 Mar 2005 06:46:13 +0000 |
| Subject: | #32511 [NEW]: ap_php_snprintf breaks under C++ extensions | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-76101@lists.php.net to get a copy of this message | ||
From: lobbin at localhost dot nu
Operating system: Linux
PHP version: 4.3.10
PHP Bug Type: *Compile Issues
Bug description: ap_php_snprintf breaks under C++ extensions
Description:
------------
Compiling a C++ extension under 4.3.10 gives my errors when using the
extension.
A patch fixing the problem by adding extern c can be found here:
http://robin.vill.ha.kuddkrig.nu/patches/php-snprintf.diff
As far as I can see it needs to be applied to all branches.
Expected result:
----------------
A working extension :)
Actual result:
--------------
undefined symbol: ap_php_snprintf__FPcUiPCce
--
Edit bug report at http://bugs.php.net/?id=32511&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32511&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32511&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32511&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32511&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32511&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32511&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32511&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32511&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32511&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32511&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32511&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32511&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32511&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32511&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32511&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32511&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32511&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32511&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32511&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32511&r=mysqlcfg