X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_functions.c;h=7b58cf7fb502696965b65a322a2fa9d77816641f;hp=4527c25388f0f8b16a0d215513e7d52649a76a14;hb=d982551f5260407a6301c662604ac0b854fb7ba0;hpb=a3550dfdf5079087b74c28470cccaa59ed7712b4 diff --git a/http_functions.c b/http_functions.c index 4527c25..7b58cf7 100644 --- a/http_functions.c +++ b/http_functions.c @@ -256,7 +256,7 @@ PHP_FUNCTION(http_negotiate_content_type) Send HTTP status code. */ PHP_FUNCTION(http_send_status) { - int status = 0; + long status = 0; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &status) != SUCCESS) { RETURN_FALSE; @@ -856,7 +856,7 @@ PHP_FUNCTION(http_persistent_handles_ident) zval **bodyonly; \ \ /* check if only the body should be returned */ \ - if (options && (SUCCESS == zend_hash_find(Z_ARRVAL_P(options), "bodyonly", sizeof("bodyonly"), (void *) &bodyonly)) && zval_is_true(*bodyonly)) { \ + if (options && (SUCCESS == zend_hash_find(Z_ARRVAL_P(options), "bodyonly", sizeof("bodyonly"), (void *) &bodyonly)) && i_zend_is_true(*bodyonly)) { \ http_message *msg = http_message_parse(PHPSTR_VAL(&request.conv.response), PHPSTR_LEN(&request.conv.response)); \ \ if (msg) { \