Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124547 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 3DFB51A00B7 for ; Mon, 22 Jul 2024 12:13:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1721650505; bh=z7w4giB67zpnAYjvU21DYxUVhcBuFkTdBBCYccfdxlk=; h=References:In-Reply-To:From:Date:Subject:To:From; b=lF/gCn34YS3C9h4+doalev/3j60fOIeaREwvsWCl4u+VLRVHRqieXjsAK1rgAxfFt qmIm/n03kO/u34pmKwCaBAbzhO/a0sFmuvx6tsIOdvT2Zo0zFPBkDG7eSJWhJrgyQW chyYz5qiC9y3f28H9xtMR2WcfHT2q2PSLSs5lgHhsrra8JitRHrtWoNPBgtdL8Kq7w v325VrSDQFC1puJ1/2C3tlrem2KbctycLprjIQ7+8LBxYwyIqVb++W0uBvTnZKwAPx XYU7SFcpKUPGzpYuQB9NHS6cRkbr4Z4TK0f3w/AADxwCmjhphDjz/Pi4aN4hzg1Yu3 ZBcjfVkYcEVsA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 43C2E180039 for ; Mon, 22 Jul 2024 12:15:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-vs1-f43.google.com (mail-vs1-f43.google.com [209.85.217.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 22 Jul 2024 12:15:03 +0000 (UTC) Received: by mail-vs1-f43.google.com with SMTP id ada2fe7eead31-492a09d4c42so285410137.0 for ; Mon, 22 Jul 2024 05:13:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721650410; x=1722255210; darn=lists.php.net; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=z7w4giB67zpnAYjvU21DYxUVhcBuFkTdBBCYccfdxlk=; b=lWC7RNK6lJpJLhaK1EloQniLMFOE/niOR6DYAZQnT8eCw7O/iNz2EQTESqolD7eqdP S+jKHCgXGkHHEQiwfQdi3oAgjLc/bJF5jX6cVSqUSmsAee3YXEPyf/oEE2WsIsG5L6i3 JY1wVyyS58BgCR0EYphXpg6qjAnXEUQnN/D7n9plN7asR/r49F1WvtQwScC78+HN1/s5 8TSAHaGpwr+tSNaoqaZ9NUSIHZlrHG1+aNbGIbEp1MB2eueIYU/oNtyRgGo3BemPNVut 7zPhTZC5xDDBzIydipO77qQa0mp4NYifDax4P04z39drnPplYWu20b782VikiQU7bOeb r44w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721650410; x=1722255210; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=z7w4giB67zpnAYjvU21DYxUVhcBuFkTdBBCYccfdxlk=; b=L1K6UowbVnS8W0CaGB2vJHvWcW95gZ5kBY7MlT5AWaYhbHmn1oscKUh7dKCBs7SICj 8/8y3P1kDs398a9v2HE/zkPT8lCj9C6meXndUYO1PowJ8wgi5BuEEIywS/xPfaPFKgo1 CbzgFrW0h7kCvPOK755w0hjy8FaBOv1ZVA2wL2TyDb4J0b5qz1A8yQLAxCxbHWUihX4s Y3eCwQNAD8Omn8LQN3Lkg185BhWIkWAzHrpFV7bz22e6URwSn9RuCgqYQMrnsuTJtlf0 JzY6g2r0R9uKgSZ9qOMChvOO9PZqW7vpFr6qq4Eso88ln7Mof04u89kedp919qXNTyrb dBsg== X-Gm-Message-State: AOJu0Yx/Dp3O1xDTIDs3ezFIqAhIeg67nRnRQ8UkZkuPdmmY8QBpUatH 2DCQc5vL2nie+teK/25JFugQWZidbr8pySvGcTJbTRVTw0FZ2IcM0ffRSbqybOWSa8CbFQFg0jj KugcB5NkrAY6TwL71JvcCzw0JtZOSAw== X-Google-Smtp-Source: AGHT+IGGUNfjzA4hWbx/M+mT7gkzy9tPkKUktGF1cVqhMj/E5dgXX4ZIaX7Brwilme/d+6bEMCbu9VasuD2GWR5MZtc= X-Received: by 2002:a05:6102:5249:b0:48f:3e67:78d2 with SMTP id ada2fe7eead31-49283f5fd92mr6798137137.26.1721650409768; Mon, 22 Jul 2024 05:13:29 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 22 Jul 2024 09:13:19 -0300 Message-ID: Subject: [PHP-DEV] Re: Json error - better message To: PHP Internals List Content-Type: multipart/alternative; boundary="0000000000001a0e3c061dd4f90a" From: dev.juan.morales@gmail.com (juan carlos morales) --0000000000001a0e3c061dd4f90a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable El El mar, 16 jul 2024 a la(s) 1:51=E2=80=AFp. m., juan carlos morales < dev.juan.morales@gmail.com> escribi=C3=B3: > Hello Internals again: > > I created this pull request: > > https://github.com/php/php-src/pull/14672 > > To have better error messages when decoding a JSON in php using the > json_last_error_msg() function. > > With this change I pretend to have a message like: > > "Syntax error, at character 0 near content: blah" > > I would like to heard your comments about it and if you have comments > about implementation please write your comments in the PR. > > I hope we can get this done soon. > > thanks in advance. > > Juan > Hello internals, I kindly ask for help, as the PR is getting some comments. Whoever can participate is welcome. Hopefully we can get this small but (in my opini=C3=B3n) useful change quickly. Thanks in advance --0000000000001a0e3c061dd4f90a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


El El mar, 16 jul 2024 a la(s) 1:51=E2=80=AFp.=C2=A0m., jua= n carlos morales <dev.juan= .morales@gmail.com> escribi=C3=B3:
Hello Internals again:

I created this pull request:

https://github.com/php/php-src/pull/14672

To have better error messages when decoding a JSON in php using the
json_last_error_msg() function.

With this change I pretend to have a message like:

"Syntax error, at character 0 near content: blah"

I would like to heard your comments about it and if you have comments
about implementation please write your comments in the PR.

I hope we can get this done soon.

thanks in advance.

Juan


Hell= o internals, I kindly ask for help, as the PR is getting some comments. Who= ever can participate is welcome. Hopefully we can get this small but (in my= opini=C3=B3n) useful change quickly.


Thanks in advance
--0000000000001a0e3c061dd4f90a--