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

test #4

Closed
luzzbob opened this issue Sep 15, 2012 · 0 comments
Closed

test #4

luzzbob opened this issue Sep 15, 2012 · 0 comments

Comments

@luzzbob
Copy link

luzzbob commented Sep 15, 2012

guide :

1,1=>2,2=>3); $msg = msgpack_pack($data); $data = msgpack_unpack($msg); ?>

//##test case #
$array = array('1' => '111111', '2' => '22222');

case 1:

var_dump(msgpack_pack($array));

case 2:

var_dump(msgpack_unpack('?\001?\000???\002?\000\003d\016"'));


case 1 output:

string(16) "?\001?111111\002?22222"

case 2 output:

PHP Warning: msgpack Extra bytes in /WorkSpace/nala/erp/test.php on line 58
PHP Stack trace:
PHP 1. {main}() /WorkSpace/nala/erp/test.php:0
PHP 2. msgpack_unpack() /WorkSpace/nala/erp/test.php:58

Warning: msgpack Extra bytes in /WorkSpace/nala/erp/test.php on line 58

Call Stack:
0.0003 234248 1. {main}() /WorkSpace/nala/erp/test.php:0
0.0331 983072 2. msgpack_unpack() /WorkSpace/nala/erp/test.php:58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants