From owner-freebsd-ports@freebsd.org Wed Mar 14 20:16:51 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 50994F42679 for ; Wed, 14 Mar 2018 20:16:51 +0000 (UTC) (envelope-from scratch65535@att.net) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id E0F8874DC8 for ; Wed, 14 Mar 2018 20:16:50 +0000 (UTC) (envelope-from scratch65535@att.net) Received: by mailman.ysv.freebsd.org (Postfix) id 9E891F42677; Wed, 14 Mar 2018 20:16:50 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7C303F42673 for ; Wed, 14 Mar 2018 20:16:50 +0000 (UTC) (envelope-from scratch65535@att.net) Received: from sonic313-23.consmr.mail.gq1.yahoo.com (sonic313-23.consmr.mail.gq1.yahoo.com [98.137.65.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0A85774DC6 for ; Wed, 14 Mar 2018 20:16:49 +0000 (UTC) (envelope-from scratch65535@att.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=att.net; s=s1024; t=1521058608; bh=WXNHro2BdjaNRR7HKeVdjEW7/0JcDxPVat8dqC44wLU=; h=From:To:Subject:Date:References:In-Reply-To:From:Subject; b=AjGX1FGO6ehff3I/QcSpHw7UQ5PtPZuWVoquEuYWVWODaFB39phKol81N/Cv0Gi77gZuIZr12vm4E5mK7EX2jilmSysEfzDfGMBUvy0YknnnI1v/GmkyrTpdmMHJKcBbzW6I1Blitm3AOTqmIOFJzP2b+nucZmCU0ec8nvHiwgs= X-YMail-OSG: 0Jg1b3YVM1mgnxItImEjhRdNx5SFhgl36m9UzM.ODZOsksclqE7MR7sw8THkpvW pvr_uANr8vrmpT6MZsBPU2Eoddkt.sWm2Wesjdi0wJcBopV3Rjv2mRuvXE0How_KyykiWbRke.uL Iu1iuArGHZpmsVURbpkD213cALpP9WORC_sq9M19bA75A4aViCwrwj7c8m._pTw0CyGUn3yv_5bm 5bkabvOIbd9U8.5LsJvSO7vm69SE0Z9iyXc75bXb_IK5DtPl32h92o4TjMDkx54_XZgqgT0fn0ih 5a.HN7FQI5XsS.GRZodOskWGDiYqDNUNi_GKbaCvN3Wd3cK_f82YX7.9OUGsd1gBV.y46674BsY6 OuQNWPJhKJsPjWul2w0w9a0QtvL3uoFR4zgFUU1E0Op.nCqzPSxGP_uRnxAE.AsHP_68dR4ITdp4 G.JnnNxHQXkndS.iyz2qbVQZSpfLEi5ugIGwGyEGIGQqznu0n1Ur3t8ixzGyoRQ6f58XS7ahmU3t Qne2xaW9v5MATBD65jx3aCXcxr9ouAvlMZP5rNcNzbUG1_lEUM8E- Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.gq1.yahoo.com with HTTP; Wed, 14 Mar 2018 20:16:48 +0000 Received: from pool-98-118-20-118.bstnma.east.verizon.net (EHLO Slowcat.local.lan) ([98.118.20.118]) by smtp404.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID ab09fe8974d82a8a9919be334f86d0a3 for ; Wed, 14 Mar 2018 19:46:23 +0000 (UTC) From: To: freebsd-ports Subject: Re: 11.1R, PHP7.2.3: mysqli not loading. What am I missing? Date: Wed, 14 Mar 2018 15:46:25 -0400 Message-ID: References: <1i6iad177s9bsij147a3qmrsu641dnsvt9@4ax.com> In-Reply-To: <1i6iad177s9bsij147a3qmrsu641dnsvt9@4ax.com> X-Mailer: Forte Agent 4.2/32.1118 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2018 20:16:51 -0000 What's happening is that, although I built both apache24 and php72 without any optional flavoring, apache is looking in the thread-safe subtree (-zts) for php modules when it shouldn't be, since it's loading the prefork module,. I've looked, but can't see a switch to turn that off. And php defaults to non-thread-safe, and doesn't appear to have a wayto build for threads other than "force zend thread-safe" when building extensions, which doesn't really seem to take care of the problem, so never the twain shall meet. If there's a switch I'm missing seeing, I hope someone will tell me where to find it, because I'm not seeing it! [Default] On Wed, 14 Mar 2018 08:51:10 -0400, wrote: >from pkg info -x php72: > >=================== >mod_php72-7.2.3 >php72-7.2.3 >php72-ctype-7.2.3 >php72-dom-7.2.3 >php72-extensions-1.0 >php72-filter-7.2.3 >php72-gd-7.2.3 >php72-hash-7.2.3 >php72-iconv-7.2.3 >php72-json-7.2.3 >php72-mbstring-7.2.3 >php72-mysqli-7.2.3 >php72-opcache-7.2.3 >php72-openssl-7.2.3 >php72-pdo-7.2.3 >php72-pdo_sqlite-7.2.3 >php72-phar-7.2.3 >php72-posix-7.2.3 >php72-session-7.2.3 >php72-simplexml-7.2.3 >php72-sockets-7.2.3 >php72-sodium-7.2.3 >php72-sqlite3-7.2.3 >php72-tokenizer-7.2.3 >php72-xml-7.2.3 >php72-xmlreader-7.2.3 >php72-xmlwriter-7.2.3 >===================== > > >from /usr/local/etc/php.ini: >===================== >;extension=bz2 >;extension=curl >;extension=fileinfo >;extension=gd2 >;extension=gettext >;extension=gmp >;extension=intl >;extension=imap >;extension=interbase >;extension=ldap >;extension=mbstring >;extension=exif ; Must be after mbstring as it depends on it > >extension=mysqli > >;extension=oci8_12c ; Use with Oracle Database 12c InstantClient > >extension=openssl > >;extension=pdo_firebird >;extension=pdo_mysql >;extension=pdo_oci >;extension=pdo_odbc >;extension=pdo_pgsql >;extension=pdo_sqlite >;extension=pgsql >;extension=shmop >====================== > >Should work, right? > >but from phpinfo: >============ >libxml ... >mysqlnd ... >============ > >and when I run a test job > >============================================ >Fatal error: Uncaught Error: Call to undefined function >mysqli_connect() >================== > >Am I forgetting something? >_______________________________________________ >freebsd-ports@freebsd.org mailing list >https://lists.freebsd.org/mailman/listinfo/freebsd-ports >To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"