Skip to content

json_last_error_msg - better message - error position near by #18866

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
comments in php_json_scanner.h
  • Loading branch information
juan-morales committed Jun 16, 2025
commit 0593c4773d9c9f40b461b18d316759f33d311be6
4 changes: 2 additions & 2 deletions ext/json/php_json_scanner.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ typedef struct _php_json_scanner {
php_json_ctype *marker; /* marker position for backtracking */
php_json_ctype *ctxmarker; /* marker position for context backtracking */
php_json_ctype *str_start; /* start position of the string */
php_json_ctype *input_start; /* start position of the string */
php_json_ctype *input_start; /* start position of the string */
php_json_ctype *pstr; /* string pointer for escapes conversion */
zval value; /* value */
int str_esc; /* number of extra characters for escaping */
int state; /* condition state */
int options; /* options */
php_json_error_code errcode; /* error type if there is an error */
size_t errpos;
size_t errpos; /* holds the aprox character number when an error occurs */
int utf8_invalid; /* whether utf8 is invalid */
int utf8_invalid_count; /* number of extra character for invalid utf8 */
} php_json_scanner;
Expand Down