From owner-freebsd-questions@FreeBSD.ORG Fri Nov 4 12:44:11 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 D270E16A41F for ; Fri, 4 Nov 2005 12:44:11 +0000 (GMT) (envelope-from m.belushkin@fz-juelich.de) Received: from nemesis.itkp.uni-bonn.de (nemesis.itkp.uni-bonn.de [131.220.226.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C85543D46 for ; Fri, 4 Nov 2005 12:44:10 +0000 (GMT) (envelope-from m.belushkin@fz-juelich.de) Received: from [131.220.226.200] (unknown [131.220.226.200]) by nemesis.itkp.uni-bonn.de (Postfix) with ESMTP id AE440C786 for ; Fri, 4 Nov 2005 13:44:07 +0100 (CET) From: Max Belushkin To: freebsd-questions@freebsd.org Date: Fri, 4 Nov 2005 13:43:42 +0100 User-Agent: KMail/1.8.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511041343.42437.m.belushkin@fz-juelich.de> Subject: 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 12:44:12 -0000 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...