From owner-freebsd-questions@freebsd.org Fri Jan 3 17:34:43 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9FE611F6276 for ; Fri, 3 Jan 2020 17:34:43 +0000 (UTC) (envelope-from ml-ktk@netlabs.org) Received: from r2-d2.netlabs.org (r2-d2.netlabs.org [213.238.45.90]) (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 47qBqQ2wRmz45KZ for ; Fri, 3 Jan 2020 17:34:41 +0000 (UTC) (envelope-from ml-ktk@netlabs.org) Received: (qmail 57888 invoked by uid 89); 3 Jan 2020 17:34:40 -0000 Received: by simscan 1.4.0 ppid: 57884, pid: 57886, t: 0.0323s scanners:none Received: from unknown (HELO whiteroom.metropolis.netlabs.org) (ml-ktk@netlabs.org@213.144.156.18) by 0 with ESMTPA; 3 Jan 2020 17:34:40 -0000 To: freebsd-questions@freebsd.org From: Adrian Gschwend Subject: phpMyAdmin can't find hash() in Apache 2.4 with PHP 7.4 Message-ID: <5363c3c4-6374-b15e-cd1b-b84469724d20@netlabs.org> Date: Fri, 3 Jan 2020 18:34:39 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47qBqQ2wRmz45KZ X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of ml-ktk@netlabs.org has no SPF policy when checking 213.238.45.90) smtp.mailfrom=ml-ktk@netlabs.org X-Spamd-Result: default: False [4.58 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[netlabs.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(0.94)[0.940,0]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_LONG(1.00)[0.999,0]; RCVD_IN_DNSWL_NONE(0.00)[90.45.238.213.list.dnswl.org : 127.0.10.0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:9211, ipnet:213.238.32.0/20, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(1.74)[ipnet: 213.238.32.0/20(4.87), asn: 9211(3.83), country: DE(-0.02)]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jan 2020 17:34:43 -0000 Hi group, I'm preparing a new server to migrate an old FBSD box running an old Apache version (I'm a bit late to the Apache 2.4 party...). I thought I will start with PHP 7.4, which seems to be the latest stable release. Unfortunately that does not seem to work with the latest 5.0 port of phpMyAdmin, I get this error: PHP Fatal error: Uncaught Error: Cal l to undefined function Symfony\\Component\\DependencyInjection\\hash() in /usr/local/www/phpMyAdmin/vendor/symfony/dependenc y-injection/ContainerBuilder.php:1573\nStack trace:\n#0 /usr/local/www/phpMyAdmin/vendor/symfony/dependency-injection/Loader/ YamlFileLoader.php(150): Symfony\\Component\\DependencyInjection\\ContainerBuilder::hash('/usr/local/www/...')\n#1 /usr/local /www/phpMyAdmin/libraries/common.inc.php(94): Symfony\\Component\\DependencyInjection\\Loader\\YamlFileLoader->load('../servi ces.yml')\n#2 /usr/local/www/phpMyAdmin/index.php(23): require_once('/usr/local/www/...')\n#3 {main}\n thrown in /usr/local/ www/phpMyAdmin/vendor/symfony/dependency-injection/ContainerBuilder.php on line 1573 On that line it is using the hash() function from php. I've installed the apache php module & the necessary php extensions. According to the php 7.4 release notes, hash() is now part of core. I can run this simple test on cli with php binary: And I get a hash as expected. However, if I run the same file from Apache 2.4, I get "undefined function" as well, same like the phpMyAdmin error message above. I'm a bit lost here, how come that the version executed in Apache behaves differently than the cli binary? FYI I built all the ports myself using `synth` as I need a lot more modules in Apache. Thanks Adrian