From owner-freebsd-questions@freebsd.org Fri Feb 1 15:40:37 2019 Return-Path: Delivered-To: freebsd-questions@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 9F81C14B7927 for ; Fri, 1 Feb 2019 15:40:37 +0000 (UTC) (envelope-from freebsd@boosten.org) 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 0EBE76DDDE for ; Fri, 1 Feb 2019 15:40:37 +0000 (UTC) (envelope-from freebsd@boosten.org) Received: by mailman.ysv.freebsd.org (Postfix) id C049014B7924; Fri, 1 Feb 2019 15:40:36 +0000 (UTC) Delivered-To: questions@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 AE03A14B7922 for ; Fri, 1 Feb 2019 15:40:36 +0000 (UTC) (envelope-from freebsd@boosten.org) Received: from smtpq1.tb.mail.iss.as9143.net (smtpq1.tb.mail.iss.as9143.net [212.54.42.164]) (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 3EA7D6DDD6 for ; Fri, 1 Feb 2019 15:40:36 +0000 (UTC) (envelope-from freebsd@boosten.org) Received: from [212.54.42.133] (helo=smtp9.tb.mail.iss.as9143.net) by smtpq1.tb.mail.iss.as9143.net with esmtp (Exim 4.86_2) (envelope-from ) id 1gpava-00074m-Aa; Fri, 01 Feb 2019 16:40:26 +0100 Received: from 5419f71f.cm-5-2d.dynamic.ziggo.nl ([84.25.247.31] helo=ra.boosten.org) by smtp9.tb.mail.iss.as9143.net with esmtp (Exim 4.86_2) (envelope-from ) id 1gpava-00020c-90; Fri, 01 Feb 2019 16:40:26 +0100 Received: from anubis.boosten.org (anubis.boosten.org [192.168.13.33]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ra.boosten.org (Postfix) with ESMTPSA id B6E143432FD7; Fri, 1 Feb 2019 16:40:24 +0100 (CET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Problems with JSON and PHP From: freebsd@boosten.org In-Reply-To: Date: Fri, 1 Feb 2019 16:40:23 +0100 Cc: questions@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <690EDED5-A1ED-41A2-BEDE-6F3EEF752838@boosten.org> References: <843A5A40-1344-42C0-97D8-D316D89CCCB1@boosten.org> To: Mark Moellering X-Mailer: Apple Mail (2.3124) X-SourceIP: 84.25.247.31 X-Ziggo-spambar: / X-Ziggo-spamscore: 0.0 X-Ziggo-spamreport: CMAE Analysis: v=2.3 cv=ZIapZkzb c=1 sm=1 tr=0 a=JWBJsaPp29SgP5DpYRBqZw==:17 a=IkcTkHD0fZMA:10 a=CFTnQlWoA9kA:10 a=SGKrpmC4GepR05ViB1QA:9 a=QEXdDO2ut3YA:10 X-Ziggo-Spam-Status: No X-Spam-Status: No X-Spam-Flag: No X-Rspamd-Queue-Id: 3EA7D6DDD6 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.992,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] 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, 01 Feb 2019 15:40:37 -0000 >>> There you go, injecting logic. The only other thing I can think of = is >>> check the FPM php.ini file. What happens if you try a simple = json_encode >>> of a string? Try the simplest call first, then go on from there. >>> _______________________________________________ >>=20 >> The only thing I can think of is that his web server uses a different >> php.ini then the command line. >> The web server cannot find the json module. >>=20 >> Peter >>=20 >>=20 > Sorry, should have been more clear. Yes, the command line and web = server > uses different php.ini files. usually, the command line file is in a > folder marked cli and the web server file is in one marked fpm >=20 My mistake, didn=E2=80=99t read that good, apologies.=20 Digging through the php man page I found that the cli actually looks for = a php-cli.ini, if found it ignores the php.ini. OP could easily check this with =E2=80=98php =E2=80=94ini=E2=80=99 on = the cmd line. Peter=