senthilking / apns-php

Automatically exported from code.google.com/p/apns-php
0 stars 0 forks source link

AutoAdjustLongPayload is not multi-byte safe #16

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.when i send message 
"一二三四五六七八九十一二三四五六七八九十一二三四五六�
��八"
2.i got 
"一二三四五六七八九十一二三四五六七八九十一二三四五六�
��"
3.

What is the expected output? What do you see instead?
“一二三四五六七八九十一二三四五六七八九十一二三四五��
�”

Please provide any additional information below.
ApnsPHP line 353 - 361
$this->_sText = substr($this->_sText, 0, $nTextLen - ($nJSONPayloadLen - 
self::PAYLOAD_MAXIMUM_SIZE));

Original issue reported on code.google.com by peng...@gmail.com on 2 Sep 2011 at 8:49

GoogleCodeExporter commented 8 years ago
Will be fixed soon.

Thanks,

Aldo

Original comment by aldo.arm...@gmail.com on 2 Sep 2011 at 8:58

GoogleCodeExporter commented 8 years ago
Fixed at revision 100, please send feedback. Thanks.

Original comment by aldo.arm...@gmail.com on 12 Sep 2011 at 1:51