php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3920 core on start (PHP Warning: Function registration failed - duplicate name)
Submitted: 2000-03-24 18:38 UTC Modified: 2000-07-30 12:19 UTC
From: carlos dot dias at emerging-trade dot pt Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0 Beta 4 Patch Level 1 OS: Linux RH
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: carlos dot dias at emerging-trade dot pt
New email:
PHP Version: OS:

 

 [2000-03-24 18:38 UTC] carlos dot dias at emerging-trade dot pt
Instalation of php4 looks fine with

./configure --with-apxs=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/apache --with-oracle=/oracle/8.1.5 --enable-trans-id --without-gd
--enable-versioning

AFter instalation, the httpd cores on start. the backtrace is:

#0  0x406a867f in sapi_apache_send_headers (sapi_headers=0x4072fd28) at mod_php4.c:227
#1  0x406824fb in sapi_send_headers () at SAPI.c:340
#2  0x406d58f9 in php_header () at head.c:86
#3  0x406ef6f1 in php_ub_body_write (str=0x406fad4a "", str_length=0) at output.c:348
#4  0x406ef370 in php_body_write (str=0x406fad4a "", str_length=0) at output.c:139
#5  0x4067bb75 in php_error (type=32, format=0x40701e00 "Function registration failed - duplicate name - %s") at main.c:395
#6  0x4069d8eb in zend_register_functions (functions=0x40226cc4, function_table=0x0) at zend_API.c:766
#7  0x4069d9e0 in zend_register_module (module=0x40227620) at zend_API.c:808
#8  0x4069d78a in zend_startup_module (module=0x40227620) at zend_API.c:706
#9  0x4067c2dc in php_startup_extensions (ptr=0x4071a258, count=23) at main.c:723
#10 0x4067cd1d in php_startup_internal_extensions () at internal_functions.c:98
#11 0x4067c541 in php_module_startup (sf=0x4071a8c0) at main.c:865
#12 0x406a8798 in php_apache_startup (sapi_module=0x4071a8c0) at mod_php4.c:266
#13 0x406a9089 in php_init_handler (s=0x80ad0e4, p=0x80ad0bc) at mod_php4.c:641
#14 0x8056229 in ap_init_modules ()
#15 0x806008d in main ()
#16 0x4007ecb3 in __libc_start_main (main=0x805fd6c <main>, argc=1, argv=0xbffffc94, init=0x804e884 <_init>, fini=0x8093d6c <_fini>,
    rtld_fini=0x4000a350 <_dl_fini>, stack_end=0xbffffc8c) at ../sysdeps/generic/libc-start.c:78

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-30 12:19 UTC] zak@php.net
Please try a recent release of PHP.  If the problem re-occurs, please submit a new bug report.  Thank you
 [2003-09-24 20:40 UTC] barryrs at yahoo dot com
Re: PHP Warning:  Function registration failed - duplicate name

I ran into this same problem while installing Horde, Imp and Pear. RedHat 9.0 Apache 2.? Here was my solution:

/etc/php.ini (carries the following lines)
;Linux world
;
;extension=imap.so
;extension=ldap.so
;extension=mysql.so
;extension=odbc.so
;extension=pgsql.so
;extension=snmp.so
;extension=dbg.so

/etc/php.d (essentially carries the same lines)

I simply commented out the lines from /etc/php.ini
and restarted the server. No more errors. 

Hope to have helped!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Sep 19 14:01:28 2024 UTC