RETURN_FALSE;
}
- header = emalloc(sizeof(struct curl_slist));
- memset(header, 0, sizeof(struct curl_slist));
-
for (zend_hash_internal_pointer_reset(headers);
zend_hash_get_current_data(headers, (void **)¤t) == SUCCESS;
zend_hash_move_forward(headers)) {
RETURN_FALSE;
}
- commands = (struct curl_slist *) emalloc(sizeof(struct curl_slist));
- memset(commands, 0, sizeof(struct curl_slist));
-
for (zend_hash_internal_pointer_reset(php_commands);
zend_hash_get_current_data(php_commands, (void **)¤t) == SUCCESS;
zend_hash_move_forward(php_commands)) {
if (is_temp_file)
fclose(fp);
- RETURN_STRINGL(ret_data, stat_sb.st_size, 0);
+ RETURN_STRINGL(ret_data, stat_sb.st_size + 1, 0);
}