From owner-freebsd-stable@FreeBSD.ORG Wed Mar 11 19:25:47 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9CC10106564A for ; Wed, 11 Mar 2009 19:25:47 +0000 (UTC) (envelope-from jille@quis.cx) Received: from istud.quis.cx (ip83-113-174-82.adsl2.static.versatel.nl [82.174.113.83]) by mx1.freebsd.org (Postfix) with ESMTP id 546428FC1B for ; Wed, 11 Mar 2009 19:25:47 +0000 (UTC) (envelope-from jille@quis.cx) Received: from [192.168.1.4] (ille [192.168.1.4]) by istud.quis.cx (Postfix) with ESMTP id 75A555C1D; Wed, 11 Mar 2009 20:05:51 +0100 (CET) Message-ID: <49B80B8E.7000808@quis.cx> Date: Wed, 11 Mar 2009 20:05:50 +0100 From: Jille Timmermans User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Squirrel References: <4c0d89f999bb9950a373a470b8ea2292@mail.isot.com> In-Reply-To: <4c0d89f999bb9950a373a470b8ea2292@mail.isot.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD Stable Subject: Re: Site down after recompile Apache X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Mar 2009 19:25:47 -0000 Squirrel schreef: > I've made Apache 2.2.11 port yesterday: > ...# make clean > ...# make > ...# make deinstall > ...#make install > > And all went well and all my normal websites come up without a problem. But since then non of my Joomla 1.0.15 sites are coming up. The log shows: > > PHP Warning: Wrong parameter count for chr() in ..../includes/phpInputFilter/class.inputfilter.php(457) : regexp code on line 1 > PHP Parse error: syntax error, unexpected T_STRING in ..../includes/phpInputFilter/class.inputfilter.php(459) : regexp code on line 1 > PHP Fatal error: preg_replace(): Failed evaluating code: \nchr(0x) in ..../includes/phpInputFilter/class.inputfilter.php on line 459 > > It seems all of sudden after recompiling Apache, it developed a problem with chr(\\1) and chr(0x\\1). I didn't touch PHP or MySQL, just recompile of Apache, and it still has all same configurations and host info. By restarting apache you also reload mod_php, so if you have upgraded your PHP between your last apache restart and this one that might be it. and IIRC by restarting apache you also reload php.ini. Another thing is that php5-pcre is now part of php5, and not an extra extension. I don't know whether that is also for 5.1. The function below seems working on 5.2.8 and 5.3.0-beta1. -- Jille > > Below is the code that's causing it. > > function decode($source) > { > // url decode > $source = html_entity_decode($source, ENT_QUOTES, "ISO-8859-1"); > // convert decimal > $source = preg_replace('/&#(\d+);/me', "chr(\\1)", $source); // decimal notation > // convert hex > $source = preg_replace('/&#x([a-f0-9]+);/mei', "chr(0x\\1)", $source); // hex notation > return $source; > } > > I've googled and tried all suggestions but nothings helping. I'm using FreeBSD 6.2, Apache 2.2.11, PHP 5.1.6_3, MySQL 5.0.27. Should I missed a something during remake of Apache? > > Please help!!! > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"