#40703 [NEW]: PHP 5.2.1 - MySQL 5.2.3 - Internal Function Conflict in base64.h

Ask a Question related to PHP Bugs, Design and Development.

  1. #1

    Default #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

  2. Similar Questions and Discussions

    1. #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: ...
    2. 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...
    3. 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...
    4. 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. ...
    5. 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...
  3. #2

    Default #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

  4. #3

    Default #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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139