mysql with php 4.3.4 - function not present??

This is a discussion on mysql with php 4.3.4 - function not present?? within the alt.comp.lang.php forums, part of the PHP Programming Forums category; On a fresh build of 4.3.4, with --with-mysql=shared,/usr it compiles just fine. /usr/lib/mysql ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-12-2003
Vorxion
 
Posts: n/a
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
Reply With Quote
  #2 (permalink)  
Old 12-13-2003
kain
 
Posts: n/a
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


Reply With Quote
  #3 (permalink)  
Old 12-13-2003
Vorxion
 
Posts: n/a
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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:47 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0