Ask a Question related to PHP Bugs, Design and Development.
-
sietse at wizdom dot nu #1
#40703 [NEW]: PHP 5.2.1 - MySQL 5.2.3 - Internal Function Conflict in base64.h
From: sietse at wizdom dot nu
Operating system: All
PHP version: 5.2.1
PHP Bug Type: XMLRPC-EPI related
Bug description: PHP 5.2.1 - MySQL 5.2.3 - Internal Function Conflict in base64.h
Description:
------------
Hi, I was compiling php 5.2.1 against mysql 5.2.3 with embedded mysqli
support.
I came across a conflict when linking libphp5.so.
Seems that both MySQL's NDB (include/base64.h) and PHP's XMLRPC
(ext/xmlrpc/libxmlrpc/base64.h) both define internal base64_encode() and
base64_decode() functions.
I think gcc4.x will be able to fix this, as you have the ability to set
visibility of internal functions. But good practice is always to name your
internal functions as explicitely and descriptively as possible.
I have opened the same bug @ MySQL. They should name there internal
functions more explicitely too.
To quickly patch, add:
#define base64_encode base64_encode_bla
#define base64_decode base64_decode_bla
to either MySQL's include/base64.h OR PHP's ext/xmlrpc/libxmlrpc/base64.h
Reproduce code:
---------------
Compile php5.2.1 with mysqli-embedded support against Mysql 5.2.3 with ndb
plugin.
Expected result:
----------------
succesful compile and linking
Actual result:
--------------
linker error message, conflicting symbols.
--
Edit bug report at [url]http://bugs.php.net/?id=40703&edit=1[/url]
--
Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40703&r=trysnapshot44[/url]
Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40703&r=trysnapshot52[/url]
Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40703&r=trysnapshot60[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40703&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=40703&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=40703&r=needtrace[/url]
Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40703&r=needscript[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=40703&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=40703&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=40703&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=40703&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=40703&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=40703&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40703&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=40703&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=40703&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40703&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=40703&r=float[/url]
No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40703&r=nozend[/url]
MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40703&r=mysqlcfg[/url]
sietse at wizdom dot nu Guest
-
#40207 [NEW]: Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL ser
From: arif at peshawaronline dot com Operating system: PHP version: 4.4.4 PHP Bug Type: Compile Warning Bug description: ... -
Insert statement for MySQL conflict
This works for MS SQL but not for MySql. can anyone tell me why and how it can be fixed? <cfquery ...> INSERT INTO ShippingRegions... -
Parameter 1 of function toBinary which is now '<data>' must be a base64-encoded string?
Hi All, I have some file upload/download code that used to be working, but suddenly stopped working with the error 'Parameter 1 of function... -
conflict types mysql and PostgreSQL
Hello, I started work on "light" version dblink for mysql. I have problems: I can't use header files mysql and postgresql together. ... -
HElp urgent ! connection conflict in the UPdate function
<html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta... -
sietse at wizdom dot nu #2
#40703 [Opn]: PHP 5.2.1 - MySQL 5.2.3 - Internal Function Conflict in base64.h
ID: 40703
User updated by: sietse at wizdom dot nu
Reported By: sietse at wizdom dot nu
Status: Open
Bug Type: XMLRPC-EPI related
Operating System: All
PHP Version: 5.2.1
New Comment:
MySQl Bug #26818
Previous Comments:
------------------------------------------------------------------------
[2007-03-03 09:18:23] sietse at wizdom dot nu
Description:
------------
Hi, I was compiling php 5.2.1 against mysql 5.2.3 with embedded mysqli
support.
I came across a conflict when linking libphp5.so.
Seems that both MySQL's NDB (include/base64.h) and PHP's XMLRPC
(ext/xmlrpc/libxmlrpc/base64.h) both define internal base64_encode()
and base64_decode() functions.
I think gcc4.x will be able to fix this, as you have the ability to set
visibility of internal functions. But good practice is always to name
your internal functions as explicitely and descriptively as possible.
I have opened the same bug @ MySQL. They should name there internal
functions more explicitely too.
To quickly patch, add:
#define base64_encode base64_encode_bla
#define base64_decode base64_decode_bla
to either MySQL's include/base64.h OR PHP's
ext/xmlrpc/libxmlrpc/base64.h
Reproduce code:
---------------
Compile php5.2.1 with mysqli-embedded support against Mysql 5.2.3 with
ndb plugin.
Expected result:
----------------
succesful compile and linking
Actual result:
--------------
linker error message, conflicting symbols.
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=40703&edit=1[/url]
sietse at wizdom dot nu Guest
-
iliaa@php.net #3
#40703 [Opn->Csd]: PHP 5.2.1 - MySQL 5.2.3 - Internal Function Conflict in base64.h
ID: 40703
Updated by: [email]iliaa@php.net[/email]
Reported By: sietse at wizdom dot nu
-Status: Open
+Status: Closed
Bug Type: XMLRPC-EPI related
Operating System: All
PHP Version: 5.2.1
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
[url]http://snaps.php.net/[/url].
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2007-03-03 12:12:56] sietse at wizdom dot nu
MySQl Bug #26818
------------------------------------------------------------------------
[2007-03-03 09:18:23] sietse at wizdom dot nu
Description:
------------
Hi, I was compiling php 5.2.1 against mysql 5.2.3 with embedded mysqli
support.
I came across a conflict when linking libphp5.so.
Seems that both MySQL's NDB (include/base64.h) and PHP's XMLRPC
(ext/xmlrpc/libxmlrpc/base64.h) both define internal base64_encode()
and base64_decode() functions.
I think gcc4.x will be able to fix this, as you have the ability to set
visibility of internal functions. But good practice is always to name
your internal functions as explicitely and descriptively as possible.
I have opened the same bug @ MySQL. They should name there internal
functions more explicitely too.
To quickly patch, add:
#define base64_encode base64_encode_bla
#define base64_decode base64_decode_bla
to either MySQL's include/base64.h OR PHP's
ext/xmlrpc/libxmlrpc/base64.h
Reproduce code:
---------------
Compile php5.2.1 with mysqli-embedded support against Mysql 5.2.3 with
ndb plugin.
Expected result:
----------------
succesful compile and linking
Actual result:
--------------
linker error message, conflicting symbols.
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=40703&edit=1[/url]
iliaa@php.net Guest



Reply With Quote

