Professional Web Applications Themes

#40418 [NEW]: PQfreemem does not exist prior to Postgresql 7.4 - PHP Bugs

From: wdierkes at 5dollarwhitebox dot org Operating system: Redhat EL 3 (i386 and x86_64) PHP version: 5.2.1 PHP Bug Type: PostgreSQL related Bug description: PQfreemem does not exist prior to Postgresql 7.4 Description: ------------ This is sortof related to a previous bug: [url]http://bugs.php.net/bug.php?id=33813[/url] However, in that bug report the compile fails due to the PQfreemem call. A patch was submitted to cvs that to check for PQfreemem, and if HAVE_PQFREEMEM = 0 use 'efree' instead. As of php-5.2.1 this change seems to have been reverted, and systems with Postgresql < 7.4 will fail to load php-pgsql with the following error ...

  1. #1

    Default #40418 [NEW]: PQfreemem does not exist prior to Postgresql 7.4

    From: wdierkes at 5dollarwhitebox dot org
    Operating system: Redhat EL 3 (i386 and x86_64)
    PHP version: 5.2.1
    PHP Bug Type: PostgreSQL related
    Bug description: PQfreemem does not exist prior to Postgresql 7.4

    Description:
    ------------
    This is sortof related to a previous bug:

    [url]http://bugs.php.net/bug.php?id=33813[/url]


    However, in that bug report the compile fails due to the
    PQfreemem call. A patch was submitted to cvs that to check
    for PQfreemem, and if HAVE_PQFREEMEM = 0 use 'efree'
    instead.

    As of php-5.2.1 this change seems to have been reverted, and
    systems with Postgresql < 7.4 will fail to load php-pgsql
    with the following error (or similar):

    PHP Warning: PHP Startup: Unable to load dynamic library '/
    usr/lib/php/modules/pdo_pgsql.so' - /usr/lib/php/modules/
    pdo_pgsql.so: undefined symbol: PQfreemem in Unknown on line
    0
    PHP Warning: PHP Startup: Unable to load dynamic library '/
    usr/lib/php/modules/pgsql.so' - /usr/lib/php/modules/
    pgsql.so: undefined symbol: PQfreemem in Unknown on line 0



    php-5.2.0 source used 'free' rather than PQfreemem.
    Therefore, the following is a proposed patch:

    [url]http://5dollarwhitebox.org/tmp/php-5.2.1-PQfreemem.patch[/url]





    Reproduce code:
    ---------------
    Build php-5.2.1 with '--with-pgsql', install, and run a simple test with
    'php -v' in order to load the pgsql.so.

    Expected result:
    ----------------
    No errors when loading pgsql.co.

    Actual result:
    --------------
    youlinuxbox ~/]# php -v

    PHP Warning: PHP Startup: Unable to load dynamic library '/
    usr/lib/php/modules/pdo_pgsql.so' - /usr/lib/php/modules/
    pdo_pgsql.so: undefined symbol: PQfreemem in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library '/
    usr/lib/php/modules/pgsql.so' - /usr/lib/php/modules/pgsql.so:
    undefined symbol: PQfreemem in Unknown on line 0
    PHP 5.2.1 (cli) (built: Feb 8 2007 21:37:29)
    Copyright (c) 1997-2007 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

    --
    Edit bug report at [url]http://bugs.php.net/?id=40418&edit=1[/url]
    --
    Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40418&r=trysnapshot44[/url]
    Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40418&r=trysnapshot52[/url]
    Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40418&r=trysnapshot60[/url]
    Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40418&r=fixedcvs[/url]
    Fixed in release: [url]http://bugs.php.net/fix.php?id=40418&r=alreadyfixed[/url]
    Need backtrace: [url]http://bugs.php.net/fix.php?id=40418&r=needtrace[/url]
    Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40418&r=needscript[/url]
    Try newer version: [url]http://bugs.php.net/fix.php?id=40418&r=oldversion[/url]
    Not developer issue: [url]http://bugs.php.net/fix.php?id=40418&r=support[/url]
    Expected behavior: [url]http://bugs.php.net/fix.php?id=40418&r=notwrong[/url]
    Not enough info: [url]http://bugs.php.net/fix.php?id=40418&r=notenoughinfo[/url]
    Submitted twice: [url]http://bugs.php.net/fix.php?id=40418&r=submittedtwice[/url]
    register_globals: [url]http://bugs.php.net/fix.php?id=40418&r=globals[/url]
    PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40418&r=php3[/url]
    Daylight Savings: [url]http://bugs.php.net/fix.php?id=40418&r=dst[/url]
    IIS Stability: [url]http://bugs.php.net/fix.php?id=40418&r=isapi[/url]
    Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40418&r=gnused[/url]
    Floating point limitations: [url]http://bugs.php.net/fix.php?id=40418&r=float[/url]
    No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40418&r=nozend[/url]
    MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40418&r=mysqlcfg[/url]
    wdierkes at 5dollarwhitebox dot org Guest

  2. #2

    Default #40418 [Opn->Asn]: PQfreemem does not exist prior to Postgresql 7.4

    ID: 40418
    Updated by: [email]tony2001php.net[/email]
    Reported By: wdierkes at 5dollarwhitebox dot org
    -Status: Open
    +Status: Assigned
    Bug Type: PostgreSQL related
    Operating System: Redhat EL 3 (i386 and x86_64)
    PHP Version: 5.2.1
    -Assigned To:
    +Assigned To: iliaa


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-02-09 17:04:25] wdierkes at 5dollarwhitebox dot org

    Description:
    ------------
    This is sortof related to a previous bug:

    [url]http://bugs.php.net/bug.php?id=33813[/url]


    However, in that bug report the compile fails due to the
    PQfreemem call. A patch was submitted to cvs that to check
    for PQfreemem, and if HAVE_PQFREEMEM = 0 use 'efree'
    instead.

    As of php-5.2.1 this change seems to have been reverted, and
    systems with Postgresql < 7.4 will fail to load php-pgsql
    with the following error (or similar):

    PHP Warning: PHP Startup: Unable to load dynamic library '/
    usr/lib/php/modules/pdo_pgsql.so' - /usr/lib/php/modules/
    pdo_pgsql.so: undefined symbol: PQfreemem in Unknown on line
    0
    PHP Warning: PHP Startup: Unable to load dynamic library '/
    usr/lib/php/modules/pgsql.so' - /usr/lib/php/modules/
    pgsql.so: undefined symbol: PQfreemem in Unknown on line 0



    php-5.2.0 source used 'free' rather than PQfreemem.
    Therefore, the following is a proposed patch:

    [url]http://5dollarwhitebox.org/tmp/php-5.2.1-PQfreemem.patch[/url]





    Reproduce code:
    ---------------
    Build php-5.2.1 with '--with-pgsql', install, and run a simple test
    with 'php -v' in order to load the pgsql.so.

    Expected result:
    ----------------
    No errors when loading pgsql.co.

    Actual result:
    --------------
    youlinuxbox ~/]# php -v

    PHP Warning: PHP Startup: Unable to load dynamic library '/
    usr/lib/php/modules/pdo_pgsql.so' - /usr/lib/php/modules/
    pdo_pgsql.so: undefined symbol: PQfreemem in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library '/
    usr/lib/php/modules/pgsql.so' - /usr/lib/php/modules/pgsql.so:
    undefined symbol: PQfreemem in Unknown on line 0
    PHP 5.2.1 (cli) (built: Feb 8 2007 21:37:29)
    Copyright (c) 1997-2007 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies


    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40418&edit=1[/url]
    tony2001@php.net Guest

  3. #3

    Default #40418 [Asn->Csd]: PQfreemem does not exist prior to Postgresql 7.4

    ID: 40418
    Updated by: [email]iliaaphp.net[/email]
    Reported By: wdierkes at 5dollarwhitebox dot org
    -Status: Assigned
    +Status: Closed
    Bug Type: PostgreSQL related
    Operating System: Redhat EL 3 (i386 and x86_64)
    PHP Version: 5.2.1
    Assigned To: iliaa
    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-02-09 17:04:25] wdierkes at 5dollarwhitebox dot org

    Description:
    ------------
    This is sortof related to a previous bug:

    [url]http://bugs.php.net/bug.php?id=33813[/url]


    However, in that bug report the compile fails due to the
    PQfreemem call. A patch was submitted to cvs that to check
    for PQfreemem, and if HAVE_PQFREEMEM = 0 use 'efree'
    instead.

    As of php-5.2.1 this change seems to have been reverted, and
    systems with Postgresql < 7.4 will fail to load php-pgsql
    with the following error (or similar):

    PHP Warning: PHP Startup: Unable to load dynamic library '/
    usr/lib/php/modules/pdo_pgsql.so' - /usr/lib/php/modules/
    pdo_pgsql.so: undefined symbol: PQfreemem in Unknown on line
    0
    PHP Warning: PHP Startup: Unable to load dynamic library '/
    usr/lib/php/modules/pgsql.so' - /usr/lib/php/modules/
    pgsql.so: undefined symbol: PQfreemem in Unknown on line 0



    php-5.2.0 source used 'free' rather than PQfreemem.
    Therefore, the following is a proposed patch:

    [url]http://5dollarwhitebox.org/tmp/php-5.2.1-PQfreemem.patch[/url]





    Reproduce code:
    ---------------
    Build php-5.2.1 with '--with-pgsql', install, and run a simple test
    with 'php -v' in order to load the pgsql.so.

    Expected result:
    ----------------
    No errors when loading pgsql.co.

    Actual result:
    --------------
    youlinuxbox ~/]# php -v

    PHP Warning: PHP Startup: Unable to load dynamic library '/
    usr/lib/php/modules/pdo_pgsql.so' - /usr/lib/php/modules/
    pdo_pgsql.so: undefined symbol: PQfreemem in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library '/
    usr/lib/php/modules/pgsql.so' - /usr/lib/php/modules/pgsql.so:
    undefined symbol: PQfreemem in Unknown on line 0
    PHP 5.2.1 (cli) (built: Feb 8 2007 21:37:29)
    Copyright (c) 1997-2007 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies


    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40418&edit=1[/url]
    iliaa@php.net Guest

Similar Threads

  1. Natural ordering in postgresql? Does it exist?
    By Clark Endrizzi in forum PostgreSQL / PGSQL
    Replies: 5
    Last Post: November 25th, 01:18 AM
  2. DB2 dates prior to 1950
    By WCrens01 in forum Coldfusion Database Access
    Replies: 0
    Last Post: June 2nd, 12:49 PM
  3. Retrieving the prior value from a combo box
    By Jim/Chris in forum Microsoft Access
    Replies: 2
    Last Post: July 31st, 06:45 PM
  4. Replies: 1
    Last Post: July 29th, 04:31 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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