We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
char * meminfo_escape_for_json(const char *s) { int new_str_len; char *s1; s1 = php_str_to_str(s, strlen(s), "\\", 1, "\\\\", 2, &new_str_len); return php_str_to_str(s1, strlen(s1), "\"", 1, "\\\"", 2, &new_str_len); }
php_str_to_str allocates a new char * in memory that doesn't clear after.
pls see my tests that determine this problem: #27
and my solution to it #28
Thanks.
The text was updated successfully, but these errors were encountered:
Thanks, your solution has been merged and applied at other places too ;)
Sorry, something went wrong.
No branches or pull requests
Hello,
php_str_to_str allocates a new char * in memory that doesn't clear after.
pls see my tests that determine this problem:
#27
and my solution to it
#28
Thanks.
The text was updated successfully, but these errors were encountered: