Skip to content

Conversation

@ramsey
Copy link
Member

@ramsey ramsey commented Apr 6, 2015

This commit applies @marcioAlmada's pull request (#53), additionally cleaning it up, as requested by @bjori in #53 (diff).

I believe this would also help take care of phpbrew/phpbrew#376

This closes #53

marcioAlmada and others added 5 commits April 6, 2015 10:17
…ustments

We usually warn PHP users to avoid unserialize remote or untrusted data but
at the same time php.net only offers a serialized endpoint for PHP
releases. This commit:

- adds a JSON endpoint that can be an option to avoid the serialized endpoint
- sets a proper Content-Type response header for both serialized - `text/plain` -
and json - `application/json` - endpoints
- simplifies URLs exchanging `&serialize=1` and `&json=1` for `&serialize` and
`&json` respectively
These variables were removed in 470fc09, since 5.3 is no longer an
active release.
@php-pulls php-pulls merged commit cd20519 into php:master Apr 6, 2015
bjori added a commit that referenced this pull request Apr 6, 2015
Add json endpoint to PHP releases list

* ramsey/releases-json:
  Change the paragraphs in the sidebar to a list.
  Adding clarity to the variable names for the JSON/serialized output
  Simplify code according to @bjori's comment
  Remove $PHP_5_3_* variables causing notices
  add json_encode()ded endpoint to PHP releases list + content type adjustments
@bjori
Copy link
Member

bjori commented Apr 6, 2015

Thanks!

@marcioAlmada
Copy link
Contributor

Don't know why, but I wasn't receiving any notifications from the other PR. Thanks @ramsey and @bjori!

@ramsey ramsey deleted the releases-json branch April 6, 2015 15:33
@c9s
Copy link

c9s commented Apr 6, 2015

@ramsey great! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants