Re: PHP 4.0 Bug #5897: include_once returns false on second use
| From: | Fraser MacKenzie | Date: | Tue, 01 Aug 2000 13:32:34 +0000 |
| Subject: | Re: PHP 4.0 Bug #5897: include_once returns false on second use | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-27237@lists.php.net to get a copy of this message | ||
In looking at the logs from apache (the error log specifically) and this
is what I see:
[Tue Aug 1 09:22:59 2000] [notice] caught SIGTERM, shutting down
PHP Warning: Function registration failed - duplicate name - define in
Unknown on line 0
PHP Warning: Function registration failed - duplicate name - defined in
Unknown on line 0
PHP Warning: Function registration failed - duplicate name - each in
Unknown on line 0
PHP Warning: Function registration failed - duplicate name - strlen in
Unknown on line 0
PHP Warning: Function registration failed - duplicate name - strcmp in
Unknown on line 0
PHP Warning: Function registration failed - duplicate name - strcasecmp
in Unknown on line 0
PHP Warning: Function registration failed - duplicate name -
error_reporting in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - leak in
Unknown on line 0
PHP Warning: Function registration failed - duplicate name -
function_exists in Unknown on line 0
PHP Warning: Basic Functions: Unable to register functions, unable to
load in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - define in
Unknown on line 0
PHP Warning: Function registration failed - duplicate name - defined in
Unknown on line 0
PHP Warning: Function registration failed - duplicate name - each in
Unknown on line 0
PHP Warning: Function registration failed - duplicate name - strlen in
Unknown on line 0
PHP Warning: Function registration failed - duplicate name - strcmp in
Unknown on line 0
PHP Warning: Function registration failed - duplicate name - strcasecmp
in Unknown on line 0
PHP Warning: Function registration failed - duplicate name -
error_reporting in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - leak in
Unknown on line 0
PHP Warning: Function registration failed - duplicate name -
function_exists in Unknown on line 0
PHP Warning: Basic Functions: Unable to register functions, unable to
load in Unknown on line 0
From what i can tell, both php3 and php4 are trying to register the same
function names (which of course makes sense), and apache is bombing (so I
cannot even start it up now that I have them both setup. In order to
start it up, I have to comment out all references to php4....
--
Fraser MacKenzie (fraserm@rondaksportal.com)
---------------- (ICQ: 15389075 RPGA: 805219)
Rondak's Portal (http://www.rondaksportal.com/)
What do you want to play today?
On Tue, 1 Aug 2000, Fraser MacKenzie wrote:
> Is is possible to install both php3 and php 4 with the same
> webserver. Specifically, I am using apache 1.3.11 and currently am using
> php3 with part of my site. I would like to upgrade to php 4, but don't
> want any of the functionality of my site to be down as I test php4 on the
> scripts, etc. I would like to install them both, but when I do, it seems
> that none of the PHP commands inside the <? ?> are actually executued
> (they show up as text in the document). Has anyone tried this?
>
> I have them both installed as DSOs. They compile and install correctly
> and my httpd.conf file seems to be configured correctly.
>
> Here are the appropriate lines in the httpd.conf file:
>
> LoadModule php3_module libexec/libphp3.so
> LoadModule php4_module libexec/libphp4.so
>
> AddModule mod_php3.c
> AddModule mod_php4.c
>
> DirectoryIndex index.php3 index.php4 index.html index.htm index.shtml index.cgi Default.htm
default.htm
>
> AddType application/x-httpd-php3 .php3
> AddType application/x-httpd-php3-source .phps
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php4 .php4
>
> Thanks for your time.
>
>