Professional Web Applications Themes

mysql with php 4.3.4 - function not present?? - PHP Development

On a fresh build of 4.3.4, with --with-mysql=shared,/usr it compiles just fine. /usr/lib/mysql is present in ld.so.conf A /usr/lib/php4/mysql.so is generated. When someone tries to -use- the PHP mysql functionality, they're told that the function mysql_connect does not exist. PHP itself seems to function fine. Just the mysql part seems to refuse to work. I've even done a strings on /usr/bin/php and at least the main program contains all the mysql_* functions. I don't suppose anyone would care to tell me what might be wrong here? I've looked over what was available in the docs on the php.net site. I ...

  1. #1

    Default mysql with php 4.3.4 - function not present??

    On a fresh build of 4.3.4, with --with-mysql=shared,/usr it compiles just
    fine.

    /usr/lib/mysql is present in ld.so.conf

    A /usr/lib/php4/mysql.so is generated.

    When someone tries to -use- the PHP mysql functionality, they're told that
    the function mysql_connect does not exist. PHP itself seems to function
    fine. Just the mysql part seems to refuse to work.

    I've even done a strings on /usr/bin/php and at least the main program
    contains all the mysql_* functions.

    I don't suppose anyone would care to tell me what might be wrong here?
    I've looked over what was available in the docs on the php.net site. I
    don't need the new mysqli interface, as it's running a 3.23 version of
    mysql. Target platform is RH 7.2.

    It worked under the -same- configuration with 4.1.2 from Red Hat. I used
    their configuration from that version for building this one, actually.

    Interestingly, php -i shows that pgsql, for instance, is enabled (along
    with many other things), but nothing for mysql in a separate block like the
    rest. Yet the binary -does- contain the functions...I checked twice.

    --
    Vorxion - Member of The Vortexa Elite
    Vorxion Guest

  2. #2

    Default Re: mysql with php 4.3.4 - function not present??

    "Vorxion" <vorxion@knockingshopofthemind.com> ha scritto nel messaggio
    news:3fda20df$1_1@news.iglou.com...
    > On a fresh build of 4.3.4, with --with-mysql=shared,/usr it compiles just
    > fine.
    >
    > /usr/lib/mysql is present in ld.so.conf
    >
    > A /usr/lib/php4/mysql.so is generated.
    >
    > When someone tries to -use- the PHP mysql functionality, they're told that
    > the function mysql_connect does not exist. PHP itself seems to function
    > fine. Just the mysql part seems to refuse to work.
    >
    have you looked/enabled modules in php.ini?

    kain



    kain Guest

  3. #3

    Default Re: mysql with php 4.3.4 - function not present??

    In article <1ExCb.202704$hV.7743270@news2.tin.it>, kain wrote:
    >"Vorxion" <vorxion@knockingshopofthemind.com> ha scritto nel messaggio
    >news:3fda20df$1_1@news.iglou.com...
    >> On a fresh build of 4.3.4, with --with-mysql=shared,/usr it compiles just
    >> fine.
    >>
    >> /usr/lib/mysql is present in ld.so.conf
    >>
    >> A /usr/lib/php4/mysql.so is generated.
    >>
    >> When someone tries to -use- the PHP mysql functionality, they're told that
    >> the function mysql_connect does not exist. PHP itself seems to function
    >> fine. Just the mysql part seems to refuse to work.
    >>
    >
    >have you looked/enabled modules in php.ini?
    I solved this before you answered, but herein lies the problem:

    The distributed php.ini file is inaccurately commented.

    The comment in the distributed .ini file -specifically- states (and I
    quote):

    "Note that MySQL and ODBC support is now built in, so no dll is needed
    for it."

    This is inaccurate, or at best incomplete. The distribution builds the
    module mysql.so (the same as it builds snmp, imap, and the others), and it
    will not load if there is no extension line in place to load it. Perhaps
    if you enable it non-shared, the comment is accurate. However, the comment
    is -not- conditional.

    Here's one case where RTFM'ing was entirely counter-productive.

    --
    Vorxion - Member of The Vortexa Elite
    Vorxion Guest

Similar Threads

  1. Replies: 1
    Last Post: January 23rd, 12:06 PM
  2. printf-like function in mysql
    By Bart Friederichs in forum MySQL
    Replies: 4
    Last Post: January 9th, 12:52 PM
  3. mysql load_file() function
    By Ben-Nes Yonatan in forum PostgreSQL / PGSQL
    Replies: 12
    Last Post: February 8th, 01:09 PM
  4. Need hep with mysql function
    By Zlut Arch in forum PHP Development
    Replies: 1
    Last Post: July 11th, 01:45 AM

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