php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #3783 versioning + mysql impossible !
Submitted: 2000-03-09 08:45 UTC Modified: 2002-06-08 10:45 UTC
From: sdomas at ens-lyon dot fr Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0 OS: linux redaht 6.1 kernel 2.2.12-2
Private report: No CVE-ID: None
 [2000-03-09 08:45 UTC] sdomas at ens-lyon dot fr
I've compiled php3.0.15 without any pb, config file :
./configure \
        --with-apxs=/usr/local/apache/bin/apxs \
        --with-xml \
        --with-config-file-path=/usr/local/apache/conf \
        --enable-versioning \   #versioning enabled
        --enable-track-vars

  
I've also compiled the mysql part into a mysql.so module and well configured my php3.ini

BUT, when I try a mysql_connect(), the following error message appear :
Fatal error: Call to unsupported or undefined function mysql_connect() in /home/sdomas/public_html/testdb.php3 on line 9

The standard capabilities are working but it seems that I can't load a separate module.

Let's compile it again without versioning flag and then IT WORKS !
Nothing's really wrong but I can't use PHP3 and PHP4 together !

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-25 22:07 UTC] sas at cvs dot php dot net
Yes, dynamic loading does not work with versioning currently.

We probably would need to export a few other symbols from the php library.
 [2001-02-10 14:12 UTC] jimw@php.net
refiling against 4.0.
 [2001-02-10 14:21 UTC] hholzgra@php.net
works for linux but fails on solaris
 [2001-03-16 14:23 UTC] hholzgra@php.net
by the way: its usually sufficient to compile
only php3 with versioning to get bot php3 and 4
modules loaded
 [2001-05-02 21:10 UTC] sniper@php.net
To PHP-developers: Is anybody doing anything about this?

--Jani

 [2001-05-09 11:16 UTC] sniper@php.net
As I didn't get any answer maybe setting this to critical
will get someone's attention..

--Jani

 [2001-05-09 11:35 UTC] hholzgra@php.net
strange, i thought i had already written something here ...

anyway, compiling both php 3 and 4 with versioning
works fine on x86-gnu-linux but fails on sparc-sun-solaris

from my experience and theoretical understanding 
i say that the instructions on versioning are wrong
when they tell that you have to have both php 
versions compiled with versioning to make it work

we had no problems with sparc-sun-solaris when
compiling php 3 only with versioning
php 3 still can not use dynamic extensions then,
but as this wasn't in wide use in php 3 anyway
it doesn't hurt to much
 [2001-05-09 11:42 UTC] sniper@php.net
reclassified as documentation problem.

--Jani

 [2002-06-08 10:45 UTC] mfischer@php.net
Well, we've this one here http://www.php.net/manual/en/migration4.php4.with.php3.php

Let's close it. Face it, no one cares about it nowadays.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 23:01:28 2024 UTC