Comments (4)
@AlexKR --^
from kafka-php.
@Crim thanks for issue. looking very strangely, i will try investigate more about it and will commit correct way for error detecting
from kafka-php.
For reference this is running on a x64 machine against kafka 0.8.2.1. Also I didn't test the other code path that has the same change, so not sure if that has issues or not.
from kafka-php.
So I took a stab at this. Looking at PHP Docs for pack here: http://php.net/manual/en/function.pack.php
We were using 'n' to unpack this which says: unsigned short (always 16 bit, big endian byte order)
It got swapped to 's' which says: signed short (always 16 bit, machine byte order)
I'm guessing that your system @AlexKR is big endian, where as mine is little endian, which is why I assume this works for you, but not me.
I opened this PR which attempts to detect the endianess of the system the code is running on, and flips the endianess after unpacking to match and be consistent on either platform.
We/I should probably write a test or two to cover this before it gets merged in tho.
from kafka-php.
Related Issues (20)
- nmred/kafka-php": "0.1.* 这个版本的消费者demo,用着失败了
- Uncaught Kafka\Exception: Not has broker can connection `metadataBrokerList`
- Consumer not reading messages after restart HOT 4
- change auto commit value
- Is there a way to pass header along with message?
- 异步方式下连续多次写消息,消息会重复和丢失 HOT 1
- Asynchronous mode fail! HOT 1
- 最新版本,启动一个消费者后,再开启另一个后报错
- log版本限制
- Latest Master Branch Code With Autoloader
- 除了composer方式,还有其他安装的方式吗
- Consumer Offset HOT 1
- Is still have any maintenace or update? HOT 1
- 消费者会重复消费怎么办? HOT 1
- 是否支持自动创建topic
- Can this extension work with a cluster?
- 消费者支持主动poll 吗
- How can I create topic with kafka-php programming library?
- Bulk processing
- timestamp = -1 producer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kafka-php.