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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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" <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 |
|
|||
|
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 |