Created attachment 166505 [details] shell archive This extension provides a PHP content type handler for "application/json" and "text/json" to PHP's form data parser. If the `Content-Type` of an incoming request is `text/json`, the JSON contents of the request body will by parsed into `$_POST`. WWW: https://pecl.php.net/package/json_post
I got some errors, maybe it should depends on json module? -- cc -I. -I/wrkdirs/usr/ports/devel/pecl-json_post/work/json_post-1.0.1 -DPHP_ATOM_INC -I/wrkdirs/usr/ports/devel/pecl-j son_post/work/json_post-1.0.1/include -I/wrkdirs/usr/ports/devel/pecl-json_post/work/json_post-1.0.1/main -I/wrkdirs/us r/ports/devel/pecl-json_post/work/json_post-1.0.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/i nclude/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -O2 -pipe -fstack-protector -fno-strict-aliasing -c /wrkdirs/usr/ports/devel/pecl-json_post/work/json_post-1. 0.1/php_json_post.c -fPIC -DPIC -o .libs/php_json_post.o /wrkdirs/usr/ports/devel/pecl-json_post/work/json_post-1.0.1/php_json_post.c:21:10: fatal error: 'ext/json/php_json.h' file not found #include "ext/json/php_json.h" ^ 1 error generated. *** [php_json_post.lo] Error code 1 make[1]: stopped in /wrkdirs/usr/ports/devel/pecl-json_post/work/json_post-1.0.1
Created attachment 166621 [details] shell archive Fix build by USE_PHP_BUILD=yes
Created attachment 166622 [details] test on 10.2
@vanilla Sorry for my mistake, It will fail w/o USE_PHP_BUILD=yes, even set USE_PHP=json.
A commit references this bug: Author: vanilla Date: Sat Feb 6 04:53:38 UTC 2016 New revision: 408283 URL: https://svnweb.freebsd.org/changeset/ports/408283 Log: Add pecl-json_post 1.0.1, JSON POST handler in PHP. PR: 206885 Submitted by: Gasol Wu <gasol.wu@gmail.com> Changes: head/devel/Makefile head/devel/pecl-json_post/ head/devel/pecl-json_post/Makefile head/devel/pecl-json_post/distinfo head/devel/pecl-json_post/pkg-descr