Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Apr 2008 11:52:56 +0100
From:      Mike Clarke <jmc-freebsd@milibyte.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Apache - warnings in httpd-error.log about duplicate definitions
Message-ID:  <200804111152.57058.jmc-freebsd@milibyte.co.uk>

next in thread | raw e-mail | index | archive | help
Every time I start up Apache (1.3.41) on my 6.3 system I get lots of 
warnings in httpd-error.log about duplicate definitions of constants 
and functions. The timestamps suggest that this only started happening 
after I ran portupgrade on 23rd March. I can run portupgrade again 
tonight to see if that fixes it but I don't expect it'll have much 
effect since all the apache and php ports are up to date.:

kestrel:/root# portversion -v | egrep 'php|apache'
apache-1.3.41               =  up-to-date with port
php4-4.4.8                  =  up-to-date with port
php4-bz2-4.4.8              =  up-to-date with port
php4-ctype-4.4.8            =  up-to-date with port
php4-curl-4.4.8             =  up-to-date with port
php4-gd-4.4.8               =  up-to-date with port
php4-mbstring-4.4.8         =  up-to-date with port
php4-mcrypt-4.4.8           =  up-to-date with port
php4-mysql-4.4.8            =  up-to-date with port
php4-openssl-4.4.8          =  up-to-date with port
php4-overload-4.4.8         =  up-to-date with port
php4-pcre-4.4.8             =  up-to-date with port
php4-posix-4.4.8            =  up-to-date with port
php4-session-4.4.8          =  up-to-date with port
php4-tokenizer-4.4.8        =  up-to-date with port
php4-xml-4.4.8              =  up-to-date with port
php4-zlib-4.4.8             =  up-to-date with port
php5-5.2.5_1                =  up-to-date with port
php5-gd-5.2.5_1             =  up-to-date with port
php5-pcre-5.2.5_1           =  up-to-date with port
php5-xml-5.2.5_1            =  up-to-date with port
phpMyAdmin-2.11.5           =  up-to-date with port
php_doc-en-20080318         =  up-to-date with port

Apart from the warnings Apache seems to be behaving correctly, I only 
noticed the warnings because I needed to check the error log after I 
made some additions to httpd.conf this morning. I'd appreciate any 
advice on what might be the cause of this, and if I should worry about 
it or not. 

Here's an extract from httpd-error.log with some repetitive lines edited 
out to keep the size down:

[Fri Apr 11 11:22:42 2008] [notice] SIGHUP received.  Attempting to 
restart
PHP Notice:  Constant XML_ERROR_NONE already defined in Unknown on line 
0
PHP Notice:  Constant XML_ERROR_NO_MEMORY already defined in Unknown on 
line 0
PHP Notice:  Constant XML_ERROR_SYNTAX already defined in Unknown on 
line 0
PHP Notice:  Constant XML_ERROR_NO_ELEMENTS already defined in Unknown 
on line 0
PHP Notice:  Constant XML_ERROR_INVALID_TOKEN already defined in Unknown 
on line 0
PHP Notice:  Constant XML_ERROR_UNCLOSED_TOKEN already defined in 
Unknown on line 0
PHP Notice:  Constant XML_ERROR_PARTIAL_CHAR already defined in Unknown 
on line 0
PHP Notice:  Constant XML_ERROR_TAG_MISMATCH already defined in Unknown 
on line 0
PHP Notice:  Constant XML_ERROR_DUPLICATE_ATTRIBUTE already defined in 
Unknown on line 0
PHP Notice:  Constant XML_ERROR_JUNK_AFTER_DOC_ELEMENT already defined 
in Unknown on line 0
PHP Notice:  Constant XML_ERROR_PARAM_ENTITY_REF already defined in 
Unknown on line 0
PHP Notice:  Constant XML_ERROR_UNDEFINED_ENTITY already defined in 
Unknown on line 0
PHP Notice:  Constant XML_ERROR_RECURSIVE_ENTITY_REF already defined in 
Unknown on line 0
PHP Notice:  Constant XML_ERROR_ASYNC_ENTITY already defined in Unknown 
on line 0
PHP Notice:  Constant XML_ERROR_BAD_CHAR_REF already defined in Unknown 
on line 0
PHP Notice:  Constant XML_ERROR_BINARY_ENTITY_REF already defined in 
Unknown on line 0
PHP Notice:  Constant XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF already 
defined in Unknown on line 0
PHP Notice:  Constant XML_ERROR_MISPLACED_XML_PI already defined in 
Unknown on line 0
PHP Notice:  Constant XML_ERROR_UNKNOWN_ENCODING already defined in 
Unknown on line 0
PHP Notice:  Constant XML_ERROR_INCORRECT_ENCODING already defined in 
Unknown on line 0
PHP Notice:  Constant XML_ERROR_UNCLOSED_CDATA_SECTION already defined 
in Unknown on line 0
PHP Notice:  Constant XML_ERROR_EXTERNAL_ENTITY_HANDLING already defined 
in Unknown on line 0
PHP Notice:  Constant XML_OPTION_CASE_FOLDING already defined in Unknown 
on line 0
PHP Notice:  Constant XML_OPTION_TARGET_ENCODING already defined in 
Unknown on line 0
PHP Notice:  Constant XML_OPTION_SKIP_TAGSTART already defined in 
Unknown on line 0
PHP Notice:  Constant XML_OPTION_SKIP_WHITE already defined in Unknown 
on line 0
PHP Warning:  Function registration failed - duplicate name - 
xml_parser_create in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - 
xml_parser_create_ns in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - 
xml_set_object in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - 
xml_set_element_handler in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - 
xml_set_character_data_handler in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - 
xml_set_processing_instruction_handler in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - 
xml_set_default_handler in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - 
xml_set_unparsed_entity_decl_handler in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - 
xml_set_notation_decl_handler in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - 
xml_set_external_entity_ref_handler in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - 
xml_set_start_namespace_decl_handler in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - 
xml_set_end_namespace_decl_handler in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - xml_parse 
in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - 
xml_parse_into_struct in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - 
xml_get_error_code in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - 
xml_error_string in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - 
xml_get_current_line_number in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - 
xml_get_current_column_number in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - 
xml_get_current_byte_index in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - 
xml_parser_free in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - 
xml_parser_set_option in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - 
xml_parser_get_option in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - 
utf8_encode in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - 
utf8_decode in Unknown on line 0
PHP Warning:  xml:  Unable to register functions, unable to load in 
Unknown on line 0

[snip more similar warnings about constants and functions]

PHP Warning:  pcre:  Unable to register functions, unable to load in 
Unknown on line 0

[snip more similar warnings about constants and functions]

PHP Warning:  gd:  Unable to register functions, unable to load in 
Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic 
library '/usr/local/lib/php/20020429/pdf.so' - Cannot open 
&quot;/usr/local/lib/php/20020429/pdf.so&quot; in Unknown on line 0
[Fri Apr 11 11:22:43 2008] [notice] Apache/1.3.41 (Unix) PHP/4.4.8 with 
Suhosin-Patch configured -- resuming normal operations
[Fri Apr 11 11:22:43 2008] [notice] Accept mutex: flock (Default: flock)

-- 
Mike Clarke



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804111152.57058.jmc-freebsd>