From owner-freebsd-questions@FreeBSD.ORG Fri Nov 4 14:03:10 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A1D1816A41F for ; Fri, 4 Nov 2005 14:03:10 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from mxout5.cac.washington.edu (mxout5.cac.washington.edu [140.142.32.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3BE3643D46 for ; Fri, 4 Nov 2005 14:03:10 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout5.cac.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id jA4E39ol016315 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 4 Nov 2005 06:03:09 -0800 X-Auth-Received: from [192.168.0.21] (c-24-18-246-211.hsd1.wa.comcast.net [24.18.246.211]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id jA4E39QF008893 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 4 Nov 2005 06:03:09 -0800 Message-ID: <436B6A18.8090804@u.washington.edu> Date: Fri, 04 Nov 2005 06:03:04 -0800 From: Garrett Cooper User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051020 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <200511041343.42437.m.belushkin@fz-juelich.de> In-Reply-To: <200511041343.42437.m.belushkin@fz-juelich.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: PHP 4.4.0->4.4.1 apache module include() problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2005 14:03:10 -0000 Max Belushkin wrote: > Dear all, > > I've just updated from PHP 4.4.0 to PHP 4.4.1 (on FreeBSD 5.1-RELEASE, >Apache 2.0.55). And now for a lot of scripts (the only common thing between >them is that they connect to mysql) I have the following strange behaviour: >after apache startup (prefork mode), everything works fine for 3-4 requests. >After that, the following error starts appearing at random, more and more >often as time goes by: >Cannot redeclare mmquery() (previously declared in /home/test/func_base.php:9) >in /home/test/func_base.php on line 9 > > At this point, mysql sockets start stacking as well, they do not get closed >(netstat -ta shows more and more with each above error message). > > Now, func_base.php is included with "include_once". I tried even changing it >to "if (!$inc_done) include_once("func_base.php");" and setting "$inc_done=1" >in func_base.php - the exact same behaviour persists. > > This was not the case with PHP 4.4.0 just 2 hours ago. > > I've searched google, have seen similar questions but related to older PHP >versions, but no reasonable solutions. > > I would be most grateful for any pointers... > > The web dev for our dept upgraded some software for a wiki to the latest version because of PHP version changes, so what you may need to do is change/upgrade any affected php software that accesses MySQL. -Garrett