php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14308 mysql functions load twice (duplicate name)
Submitted: 2001-11-30 23:49 UTC Modified: 2001-12-11 15:37 UTC
From: php at allone dot com Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0.6 OS: RH 7.2
Private report: No CVE-ID: None
 [2001-11-30 23:49 UTC] php at allone dot com
Humm, ? Operator error ? RH 7.2 SMP

PHP config:
./configure  --with-apache=../apache_1.x --with-mysql=/usr/local/ --enable-memory-limit=yes --enable-debug=no

Mysql config:
 ./configure  --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static

Apache:
./configure \
"--with-layout=Apache" \
"--prefix=/etc/httpd" \
"--activate-module=src/modules/php4/libphp4.a" \
"--enable-module=php4" \

When httpd is started, get large list of mysql duplicate names such as:

"PHP Warning:  Function registration failed - duplicate name - mysql_listfields in Unknown on line 0"

mysql continues to work, but other errors are not added to log file. It looks like this is because an identical set of warnings are printed out twice... which may have set the logging to be disabled??

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-01 07:13 UTC] derick@php.net
YOu probably have this in php.ini:

extension=mysql.so

AFAIK, RH installs PHP modules as shared object.

Please reopen if this is not the case.

Derick
 [2001-12-11 15:37 UTC] php at allone dot com
Having extension=mysql.so was the problem. Sorry for taking your time, and THANKS MUCH!!!!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 22:01:31 2024 UTC