Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix headers, specify length #338

Merged
merged 5 commits into from Jan 9, 2020
Merged

fix headers, specify length #338

merged 5 commits into from Jan 9, 2020

Conversation

nick-zh
Copy link
Collaborator

@nick-zh nick-zh commented Jan 8, 2020

message.c Outdated
add_assoc_stringl(&headers_array, header_name, (const char*)header_value, header_size);
#else
add_assoc_stringl(&headers_array, header_name, (const char*)header_value, header_size, 1);
#endif
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could define rdkafka_add_assoc_stringl() in php_rdkafka_priv.h, like we did for rdkafka_add_assoc_string()

@arnaud-lb arnaud-lb merged commit 8313d12 into master Jan 9, 2020
@arnaud-lb
Copy link
Owner

Thanks

@nick-zh nick-zh deleted the fix-headers branch January 9, 2020 13:17
tony2001 added a commit to tony2001/php-rdkafka that referenced this pull request Oct 1, 2020
* tag '4.0.3': (127 commits)
  4.0.3
  fix topic deconstruct for high level (arnaud-lb#333)
  remove examples from repo (arnaud-lb#341)
  Cast LOG_DEBUG to string in sample (arnaud-lb#340)
  Use auto.offset.reset earliest instead of smallest (arnaud-lb#339)
  fix headers, specify length (arnaud-lb#338)
  add partition check
  Update README.md
  Back to dev
  4.0.2
  Update .editorconfig
  Revert "dont set partition to zero if null (arnaud-lb#321)"
  fix consume mem leak
  use zend_long for zend_parse_parameters arg
  Fix [-Wformat-extra-args]
  fix [-Wunused-variable]
  fix [-Wformat=] warning
  Back to dev
  4.0.1
  Run integration tests in CI (arnaud-lb#223)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants