From owner-freebsd-ports@freebsd.org Sun Jan 15 11:26:47 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A3007CB005A for ; Sun, 15 Jan 2017 11:26:47 +0000 (UTC) (envelope-from timon@timon.net.nz) Received: from flare.plasmahost.ru (static.155.109.4.46.clients.your-server.de [46.4.109.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 613BC1858 for ; Sun, 15 Jan 2017 11:26:46 +0000 (UTC) (envelope-from timon@timon.net.nz) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=timon.net.nz; s=dkim; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=gfiHgpHbs7kDwufqbFtPktK8171k4Z0Dv2FgEWuQvhg=; b=RWa54leGHJ7E9iOYPfRQTwEXZu ykrocJG0jDgucUhS8VWy9BSza6hF0U/H4H/LlKY5ogoivfHCCDu8JBS+Vdt704U2TL87fXl7SBSwz knyHfRUlaTkXv8DU4QQlp11VSTuA/q6oMPYQGvyRIA5nHq+ukDCEl9cIUkgfYGcnhjgI=; Received: from [193.41.76.135] (helo=tim.timon.net.nz) by flare.plasmahost.ru with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1cSiwC-0009Ww-QS for freebsd-ports@freebsd.org; Sun, 15 Jan 2017 11:25:28 +0000 Subject: Re: PHP56 and php56-filter To: freebsd-ports@freebsd.org References: From: Aleksandr Matveev Message-ID: <369ed632-3c17-a6d7-bf51-ff4513d1776e@timon.net.nz> Date: Sun, 15 Jan 2017 14:25:27 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jan 2017 11:26:47 -0000 On 12/01/2017 06:10, @lbutlr wrote: > I am getting errors in php pages saying > > Call to undefined function filter_var() > > But php56-filter-5.6.29 is installed and filter is listed in php -m > > I reinstalled all of php this morning, but still getting the same error. ext-20-filter.ini exists in /usr/local/etc/php/ and filter.so exists at /usr/local/lib/php/20131226/filter.so with a timestamp from this morning (along with all the other .so files). There is also a file "/usr/local/libexec/apache24/mod_filter.so” with a slightly earlier timestamp (probably from when I recompiled apache24 this am). > > (FreeBSD 10.3-RELEASE) > > Not sure what else to check, but a simple > > filter_var('true', FILTER_VALIDATE_BOOLEAN); > > in an otherwise empty .php file fails: > > PHP Fatal error: Call to undefined function filter_var() in /usr/local/www/root/filter.php on line 2 > I don't see any errors on my 10.3 system: $ uname -pro FreeBSD 10.3-RELEASE-p7 amd64 $ cat test.php $ php test.php $ Try to create phpinfo.php: $ cat phpinfo.php Open it in your web-browser and check for "filter" section presence. -- Aleksandr Matveev