Skip to content

Commit

Permalink
Fix for PHP 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Feb 27, 2014
1 parent aa1edff commit 829270d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/http/request.c
Original file line number Diff line number Diff line change
Expand Up @@ -883,9 +883,12 @@ PHP_METHOD(Phalcon_Http_Request, isSecureRequest){
PHP_METHOD(Phalcon_Http_Request, getRawBody){

zval *raw;

#if PHP_VERSION_ID < 50600
if (SG(request_info).raw_post_data) {
RETURN_STRINGL(SG(request_info).raw_post_data, SG(request_info).raw_post_data_length, 1);
}
#endif

raw = phalcon_fetch_nproperty_this(getThis(), SL("_rawBody"), PH_NOISY TSRMLS_CC);
if (Z_TYPE_P(raw) == IS_STRING) {
Expand Down

0 comments on commit 829270d

Please sign in to comment.