Bug 206885 - [NEW PORT] devel/pecl-json_post: JSON POST handler in PHP
Summary: [NEW PORT] devel/pecl-json_post: JSON POST handler in PHP
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Vanilla I. Shu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-03 16:39 UTC by Gasol Wu
Modified: 2016-02-06 04:54 UTC (History)
1 user (show)

See Also:


Attachments
shell archive (1.66 KB, text/plain)
2016-02-03 16:39 UTC, Gasol Wu
no flags Details
shell archive (1.68 KB, text/plain)
2016-02-05 17:08 UTC, Gasol Wu
no flags Details
test on 10.2 (20.64 KB, text/plain)
2016-02-05 17:08 UTC, Gasol Wu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gasol Wu 2016-02-03 16:39:06 UTC
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
Comment 1 Vanilla I. Shu freebsd_committer freebsd_triage 2016-02-05 15:48:09 UTC
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
Comment 2 Gasol Wu 2016-02-05 17:08:14 UTC
Created attachment 166621 [details]
shell archive

Fix build by USE_PHP_BUILD=yes
Comment 3 Gasol Wu 2016-02-05 17:08:38 UTC
Created attachment 166622 [details]
test on 10.2
Comment 4 Gasol Wu 2016-02-05 17:12:41 UTC
@vanilla

Sorry for my mistake, It will fail w/o USE_PHP_BUILD=yes, even set USE_PHP=json.
Comment 5 commit-hook freebsd_committer freebsd_triage 2016-02-06 04:54:02 UTC
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