|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2019-07-24 13:40 UTC] fi at facelift-bbt dot com
Description:
------------
When producing an encoded JSON object that contains an integer field, the consumer always receives the field as string.
Producer: {"id":1639}
Consumer: {"id":"1639"}
Test script:
---------------
$message = '{"id":1639}';
$producer = new RdKafka\Producer();
$topic = $producer->newTopic('myTopic');
$topic->produce(RD_KAFKA_PARTITION_UA, 0, $message);
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 10:00:01 2025 UTC |
Test script: --------------- <?php $message = '{"id":1639}'; $producer = new RdKafka\Producer(); $topic = $producer->newTopic('myTopic'); $topic->produce(RD_KAFKA_PARTITION_UA, 0, $message); ?>