php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32511 ap_php_snprintf breaks under C++ extensions
Submitted: 2005-03-31 08:46 UTC Modified: 2005-03-31 09:41 UTC
From: lobbin at localhost dot nu Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.3.10 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: lobbin at localhost dot nu
New email:
PHP Version: OS:

 

 [2005-03-31 08:46 UTC] lobbin at localhost dot nu
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-31 09:41 UTC] sniper@php.net
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.

Unfortunately the fix didn't make it to PHP 4.3.11 or PHP 5.0.4..

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Nov 30 02:00:01 2025 UTC