Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Data-MessagePack CPAN distribution.

Report information
The Basics
Id: 112075
Status: resolved
Priority: 0/
Queue: Data-MessagePack

People
Owner: Nobody in particular
Requestors: ap00 [...] mail.ru
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.49_01



Subject: broken interoperability
Date: Tue, 16 Feb 2016 11:57:52 +0300
To: bug-Data-MessagePack [...] rt.cpan.org
From: Anthony Pankov <ap00 [...] mail.ru>
Fixed string more than 31 characters length packed with php modules (pecl-msgpack, rybakit/msgpack) can not be unpacked with Data::MessagePack (parse error). It seems that PHP modules pack string >31 prefixed by 0xd9 while Data::MessagePack prefix is 0xda. Pack data by Data::MessagePack: $p=Data::MessagePack->pack('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'); print encode("ascii", $p, Encode::FB_PERLQQ) \x{00da}iAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA Data packed by PHP modules (user_agent is the problem: field of 32 character length): \x{0082}\x{00a8}httpinfo\x{0083}\x{00ab}remote_addr\x{00a9}127.0.0.1\x{00aa}proxy_desc\x{0081}\x{00b4}HTTP_X_FORWARDED_FOR\x{0091}\x{00ae}11.290.121.202\x{00aa}user_agent\x{00d9} Mozilla/5.0 (Windows NT 6.1; WOW\x{00a5}ainfo\x{0081}\x{00a3}uid\x{00a3}ant The same Base64-coded: gqhodHRwaW5mb4OrcmVtb3RlX2FkZHKpMTI3LjAuMC4xqnByb3h5X2Rlc2OBtEhUVFBfWF9GT1JXQVJERURfRk9Ska45MS4xOTAuMTIxLjIwMqp1c2VyX2FnZW502SBNb3ppbGxhLzUuMCAoV2luZG93cyBOVCA2LjE7IFdPV6VhaW5mb4GjdWlko2FudA== -- Best regards, Anthony Pankov
Data::MessagePack supports only old MessagePack specification now. So it does not support Bin/Str type and Ext type now. I had implement supporting Bin/Str type, however it is not test well yet. https://github.com/msgpack/msgpack-perl/pull/22 Could you test its change if possible ? On Tue Feb 16 03:58:09 2016, ap00@mail.ru wrote: Show quoted text
> Fixed string more than 31 characters length packed with php > modules (pecl-msgpack, > rybakit/msgpack) can not be unpacked with Data::MessagePack (parse > error). > > It seems that PHP modules pack string >31 prefixed by 0xd9 while > Data::MessagePack prefix is 0xda. > > Pack data by Data::MessagePack: > $p=Data::MessagePack-
> >pack('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA');
> print encode("ascii", $p, Encode::FB_PERLQQ) > \x{00da}iAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA > > Data packed by PHP modules (user_agent is the problem: field of > 32 character length): > > \x{0082}\x{00a8}httpinfo\x{0083}\x{00ab}remote_addr\x{00a9}127.0.0.1\x{00aa}proxy_desc\x{0081}\x{00b4}HTTP_X_FORWARDED_FOR\x{0091}\x{00ae}11.290.121.202\x{00aa}user_agent\x{00d9} > Mozilla/5.0 (Windows NT 6.1; > WOW\x{00a5}ainfo\x{0081}\x{00a3}uid\x{00a3}ant > > The same Base64-coded: > gqhodHRwaW5mb4OrcmVtb3RlX2FkZHKpMTI3LjAuMC4xqnByb3h5X2Rlc2OBtEhUVFBfWF9GT1JXQVJERURfRk9Ska45MS4xOTAuMTIxLjIwMqp1c2VyX2FnZW502SBNb3ppbGxhLzUuMCAoV2luZG93cyBOVCA2LjE7IFdPV6VhaW5mb4GjdWlko2FudA==
Subject: Re: [rt.cpan.org #112075] broken interoperability
Date: Wed, 17 Feb 2016 11:50:24 +0300
To: Syohei Yoshida via RT <bug-Data-MessagePack [...] rt.cpan.org>
From: Anthony Pankov <ap00 [...] mail.ru>
Unfortunately, I have a problem installing module from GitHub: cpanm https://github.com/msgpack/msgpack-perl.git Building and testing Data-MessagePack-0.49 ... FAIL Log: cpanm (App::cpanminus) 1.7040 on perl 5.022001 built for i386-freebsd-thread-multi ... Cloning https://github.com/msgpack/msgpack-perl.git Cloning into '/tmp/M6Ehv4HJmI'...-> OK ... AuthorMode: copy modules fatal: git was built without support for git-submodule (NO_PERL=1). fatal: git was built without support for git-submodule (NO_PERL=1). ... Building and testing Data-MessagePack-0.49 cp lib/Data/MessagePack/PP.pm blib/lib/Data/MessagePack/PP.pm cp lib/Data/MessagePack/Unpacker.pod blib/lib/Data/MessagePack/Unpacker.pod cp lib/Data/MessagePack/Boolean.pm blib/lib/Data/MessagePack/Boolean.pm cp lib/Data/MessagePack.pm blib/lib/Data/MessagePack.pm Running Mkbootstrap for Data::MessagePack () chmod 644 "MessagePack.bs" "/usr/local/bin/perl5.22.1" "-Iinc" "/usr/local/lib/perl5/5.22/ExtUtils/xsubpp" -typemap "/usr/local/lib/perl5/5.22/ExtUtils/typemap" xs-src/MessagePack.xs > xs-src/MessagePack.xsc && mv xs-src/MessagePack.xsc xs-src/MessagePack.c Please specify prototyping behavior for MessagePack.xs (see perlxs manual) cc -c "-I." "-Iinclude" "-I." -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wc++-compat -O2 -pipe -fno-strict-aliasing -DVERSION=\"0.49\" -DXS_VERSION=\"0.49\" -o xs-src/MessagePack.o -DPIC -fPIC "-I/usr/local/lib/perl5/5.22/mach/CORE" -DUSE_PPPORT xs-src/MessagePack.c make: don't know how to make include/msgpack/pack_define.h. Stop Show quoted text
Show quoted text
> Data::MessagePack supports only old MessagePack specification now. > So it does not support Bin/Str type and Ext type now.
Show quoted text
> I had implement supporting Bin/Str type, however it is not test well yet.
Show quoted text
Show quoted text
> Could you test its change if possible ?
My apologies for not telling how to build and installing. Please try to install by following steps. % cpanm Module::Install Module::Install::AuthorTests Module::Install::XSUtil % git clone --recursive -b bin-format https://github.com/syohex/msgpack-perl % perl Makefile.PL % make % make test % make install On Wed Feb 17 03:50:50 2016, ap00@mail.ru wrote: Show quoted text
> Unfortunately, I have a problem installing module from GitHub: > > cpanm https://github.com/msgpack/msgpack-perl.git > > Building and testing Data-MessagePack-0.49 ... FAIL > > Log: > cpanm (App::cpanminus) 1.7040 on perl 5.022001 built for i386-freebsd- > thread-multi > ... > Cloning https://github.com/msgpack/msgpack-perl.git > Cloning into '/tmp/M6Ehv4HJmI'...-> OK > ... > AuthorMode: copy modules > fatal: git was built without support for git-submodule (NO_PERL=1). > fatal: git was built without support for git-submodule (NO_PERL=1). > ... > Building and testing Data-MessagePack-0.49 > cp lib/Data/MessagePack/PP.pm blib/lib/Data/MessagePack/PP.pm > cp lib/Data/MessagePack/Unpacker.pod > blib/lib/Data/MessagePack/Unpacker.pod > cp lib/Data/MessagePack/Boolean.pm > blib/lib/Data/MessagePack/Boolean.pm > cp lib/Data/MessagePack.pm blib/lib/Data/MessagePack.pm > Running Mkbootstrap for Data::MessagePack () > chmod 644 "MessagePack.bs" > "/usr/local/bin/perl5.22.1" "-Iinc" > "/usr/local/lib/perl5/5.22/ExtUtils/xsubpp" -typemap > "/usr/local/lib/perl5/5.22/ExtUtils/typemap" xs-src/MessagePack.xs > > xs-src/MessagePack.xsc && mv xs-src/MessagePack.xsc xs- > src/MessagePack.c > Please specify prototyping behavior for MessagePack.xs (see perlxs > manual) > cc -c "-I." "-Iinclude" "-I." -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H > -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include > -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wc++-compat -O2 -pipe -fno-strict- > aliasing -DVERSION=\"0.49\" -DXS_VERSION=\"0.49\" -o xs- > src/MessagePack.o -DPIC -fPIC "-I/usr/local/lib/perl5/5.22/mach/CORE" > -DUSE_PPPORT xs-src/MessagePack.c > make: don't know how to make include/msgpack/pack_define.h. Stop > > >
> > Data::MessagePack supports only old MessagePack specification now. > > So it does not support Bin/Str type and Ext type now.
>
> > I had implement supporting Bin/Str type, however it is not test well > > yet.
> >
> > Could you test its change if possible ?
Subject: Re: [rt.cpan.org #112075] broken interoperability
Date: Wed, 17 Feb 2016 17:59:35 +0300
To: Syohei Yoshida via RT <bug-Data-MessagePack [...] rt.cpan.org>
From: Anthony Pankov <ap00 [...] mail.ru>
Ok, i've installed module from GitHub. But it still won't work. P.S. I've install via those commands: cpanm --uninstall Data::MessagePack cpanm Module::Install Module::Install::AuthorTests Module::Install::XSUtil cpanm https://github.com/msgpack/msgpack-perl.git Show quoted text
> My apologies for not telling how to build and installing. > Please try to install by following steps.
Show quoted text
> % cpanm Module::Install Module::Install::AuthorTests Module::Install::XSUtil > % git clone --recursive -b bin-format > https://github.com/syohex/msgpack-perl > % perl Makefile.PL > % make > % make test > % make install
Show quoted text
>> >>
>> > Data::MessagePack supports only old MessagePack specification now. >> > So it does not support Bin/Str type and Ext type now.
>>
>> > I had implement supporting Bin/Str type, however it is not test well >> > yet.
>> >>
>> > Could you test its change if possible ?
-- С уважением, Anthony mailto:ap00@mail.ru
On Wed Feb 17 09:59:57 2016, ap00@mail.ru wrote: Show quoted text
> Ok, i've installed module from GitHub. > > But it still won't work. >
Show quoted text
Why did you install by cpam ? Data::MessagePack uses git submodule and cpanm does not support git submodule. And Bin/Str implementation is not merged into master branch yet. Please try as below. % cpanm Module::Install Module::Install::AuthorTests Module::Install::XSUtil % git clone --recursive -b bin-format https://github.com/syohex/msgpack-perl % cd msgpack-perl % perl Makefile.PL % make % make test % make install Regards. Show quoted text
>
> > My apologies for not telling how to build and installing. > > Please try to install by following steps.
>
> > % cpanm Module::Install Module::Install::AuthorTests > > Module::Install::XSUtil > > % git clone --recursive -b bin-format > > https://github.com/syohex/msgpack-perl > > % perl Makefile.PL > > % make > > % make test > > % make install
>
> >> > >>
> >> > Data::MessagePack supports only old MessagePack specification now. > >> > So it does not support Bin/Str type and Ext type now.
> >>
> >> > I had implement supporting Bin/Str type, however it is not test > >> > well > >> > yet.
> >> > >>
> >> > Could you test its change if possible ?
Subject: Re: [rt.cpan.org #112075] broken interoperability
Date: Thu, 18 Feb 2016 12:47:11 +0300
To: Syohei Yoshida via RT <bug-Data-MessagePack [...] rt.cpan.org>
From: Anthony Pankov <ap00 [...] mail.ru>
Sorry. I saw cpanm failed due to: fatal: git was built without support for git-submodule (NO_PERL=1) I rebuild git than run cpanm again which did the job. But now i've installed module exactly the way you describe. Result of 'make test': Test Summary Report ------------------- t/23-empty-key.t (Wstat: 0 Tests: 3 Failed: 0) TODO passed: 1-2 Result: PASS But the error still here: Data::MessagePack->unpack: parse error Show quoted text
Show quoted text
> Why did you install by cpam ? Data::MessagePack uses git submodule and > cpanm does not support git submodule. And Bin/Str implementation is not > merged into master branch yet.
-- С уважением, Anthony mailto:ap00@mail.ru
On Thu Feb 18 04:47:39 2016, ap00@mail.ru wrote: Show quoted text
> Sorry. I saw cpanm failed due to: > fatal: git was built without support for git-submodule (NO_PERL=1) > I rebuild git than run cpanm again which did the job. > > But now i've installed module exactly the way you describe. > Result of 'make test': > Test Summary Report > ------------------- > t/23-empty-key.t (Wstat: 0 Tests: 3 Failed: 0) > TODO passed: 1-2 > Result: PASS > > But the error still here: > Data::MessagePack->unpack: parse error
Could you give up test data which causes your issue ? (Attach this thread or upload somewhere) Show quoted text
> > >
> > Why did you install by cpam ? Data::MessagePack uses git submodule and > > cpanm does not support git submodule. And Bin/Str implementation is not > > merged into master branch yet.
> > > > > > > >
Subject: Re: [rt.cpan.org #112075] broken interoperability
Date: Thu, 18 Feb 2016 14:18:24 +0300
To: Syohei Yoshida via RT <bug-Data-MessagePack [...] rt.cpan.org>
From: Anthony Pankov <ap00 [...] mail.ru>
Test data is in the first message (https://rt.cpan.org/Public/Ticket/Attachment/1596328/853349). Show quoted text
> Could you give up test data which causes your issue ? > (Attach this thread or upload somewhere) >
>> >> >>
>> > Why did you install by cpam ? Data::MessagePack uses git submodule and >> > cpanm does not support git submodule. And Bin/Str implementation is not >> > merged into master branch yet.
>> >> >> >> >> >> >> >>
-- С уважением, Anthony mailto:ap00@mail.ru
https://github.com/msgpack/msgpack-perl Please try master branch version. I have fixed some issues and merge changes into master branch. [test.php] <?php require 'vendor/autoload.php'; use MessagePack\Packer; $packer = new Packer(); $packed = $packer->pack('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'); print($packed); [test.pl] #!/usr/bin/env perl use strict; use warnings; use Data::MessagePack; my $mp = Data::MessagePack->new(); my $input = do { local $/; <STDIN>}; my $data = $mp->unpack($input); print $data; [With CPAN version] % php test.php | perl test.pl Data::MessagePack->unpack: parse error at test.pl line 8, <STDIN> line 1. [With master branch version] % php test.php | perl test.pl AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA On Thu Feb 18 06:18:49 2016, ap00@mail.ru wrote: Show quoted text
> > Test data is in the first message > (https://rt.cpan.org/Public/Ticket/Attachment/1596328/853349). > >
> > Could you give up test data which causes your issue ? > > (Attach this thread or upload somewhere) > >
> >> > >> > >>
> >> > Why did you install by cpam ? Data::MessagePack uses git submodule and > >> > cpanm does not support git submodule. And Bin/Str implementation is not > >> > merged into master branch yet.
> >> > >> > >> > >> > >> > >> > >> > >>
> > > > > >
I have released new trial version. https://metacpan.org/release/SYOHEX/Data-MessagePack-0.49_01 Please check it. On Mon Feb 29 03:47:00 2016, syohex wrote: Show quoted text
> https://github.com/msgpack/msgpack-perl > > Please try master branch version. I have fixed some issues and merge > changes into master branch. > > [test.php] > <?php > require 'vendor/autoload.php'; > use MessagePack\Packer; > > $packer = new Packer(); > > $packed = $packer-
> >pack('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA');
> print($packed); > > [test.pl] > #!/usr/bin/env perl > use strict; > use warnings; > use Data::MessagePack; > > my $mp = Data::MessagePack->new(); > my $input = do { local $/; <STDIN>}; > my $data = $mp->unpack($input); > print $data; > > [With CPAN version] > % php test.php | perl test.pl > Data::MessagePack->unpack: parse error at test.pl line 8, <STDIN> line > 1. > > [With master branch version] > % php test.php | perl test.pl > AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA > > > On Thu Feb 18 06:18:49 2016, ap00@mail.ru wrote:
> > > > Test data is in the first > > message > > (https://rt.cpan.org/Public/Ticket/Attachment/1596328/853349). > > > >
> > > Could you give up test data which causes your issue ? > > > (Attach this thread or upload somewhere) > > >
> > >> > > >> > > >>
> > >> > Why did you install by cpam ? Data::MessagePack uses git > > >> > submodule and > > >> > cpanm does not support git submodule. And Bin/Str implementation > > >> > is not > > >> > merged into master branch yet.
> > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >>
> > > > > > > > > > > >
Subject: Re: [rt.cpan.org #112075] broken interoperability
Date: Wed, 2 Mar 2016 12:42:56 +0300
To: Syohei Yoshida via RT <bug-Data-MessagePack [...] rt.cpan.org>
From: Anthony Pankov <ap00 [...] mail.ru>
I tried to install master branch version via: git clone --recursive -b master https://github.com/syohex/msgpack-perl then perl Makefile.PL This give an error: Unknown function is found at Makefile.PL line 8. Execution of Makefile.PL aborted due to runtime errors. I've commented out line: "readme_from('lib/Data/MessagePack.pm');" an then perl Makefile.PL goes normally. Than: make build the module. Than make test failed with: PERL_DL_NONLAZY=1 "/usr/local/bin/perl5.22.1" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t xt/*.t xt/leaks/*.t t/00_compile.t .............. 1/1 # Testing Data::MessagePack/0.36 (XS) # byteoder: 1234, ivsize=4 t/00_compile.t .............. ok t/01_pack.t ................. 1/43 # Failed test 'dump a1 33' # at t/01_pack.t line 13. # got: 'cb 40 08 00 00 00 00 00 00' # expected: 'a1 33' # Looks like you failed 1 test of 43. t/01_pack.t ................. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/43 subtests Show quoted text
Show quoted text
Show quoted text
> Please try master branch version. I have fixed some issues and merge changes into master branch.
Show quoted text
> [test.php] > <?php > require 'vendor/autoload.php'; > use MessagePack\Packer;
Show quoted text
> $packer = new Packer();
$packed = $packer->>pack('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'); Show quoted text
> print($packed);
Show quoted text
> [test.pl] > #!/usr/bin/env perl > use strict; > use warnings; > use Data::MessagePack;
Show quoted text
> my $mp = Data::MessagePack->new(); > my $input = do { local $/; <STDIN>};
my $data = $mp->>unpack($input); Show quoted text
> print $data;
Show quoted text
> [With CPAN version] > % php test.php | perl test.pl
Data::MessagePack->>unpack: parse error at test.pl line 8, <STDIN> line 1. Show quoted text
> [With master branch version] > % php test.php | perl test.pl > AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Show quoted text
> On Thu Feb 18 06:18:49 2016, ap00@mail.ru wrote:
>> >> Test data is in the first message >> (https://rt.cpan.org/Public/Ticket/Attachment/1596328/853349). >> >>
>> > Could you give up test data which causes your issue ? >> > (Attach this thread or upload somewhere) >> >
>> >> >> >> >> >>
>> >> > Why did you install by cpam ? Data::MessagePack uses git submodule and >> >> > cpanm does not support git submodule. And Bin/Str implementation is not >> >> > merged into master branch yet.
>> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >>
>> >> >> >> >> >>
-- С уважением, Anthony mailto:ap00@mail.ru
On Wed Mar 02 04:43:21 2016, ap00@mail.ru wrote: Show quoted text
> I tried to install master branch version via: > git clone --recursive -b master https://github.com/syohex/msgpack-perl
The repository URL is wrong. As I said, I released trial version at CPAN. You need not install from github repository and you can install it by following command. % cpanm --dev Data::MessagePack Regards. Show quoted text
> then > perl Makefile.PL > This give an error: > Unknown function is found at Makefile.PL line 8. > Execution of Makefile.PL aborted due to runtime errors. > > I've commented out line: "readme_from('lib/Data/MessagePack.pm');" an > then perl Makefile.PL goes normally. > > Than: > make > build the module. > > Than > make test > failed with: > PERL_DL_NONLAZY=1 "/usr/local/bin/perl5.22.1" "- > MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef > *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib', > 'blib/arch')" t/*.t xt/*.t xt/leaks/*.t > t/00_compile.t .............. 1/1 # Testing Data::MessagePack/0.36 > (XS) > # byteoder: 1234, ivsize=4 > t/00_compile.t .............. ok > t/01_pack.t ................. 1/43 > # Failed test 'dump a1 33' > # at t/01_pack.t line 13. > # got: 'cb 40 08 00 00 00 00 00 00' > # expected: 'a1 33' > # Looks like you failed 1 test of 43. > t/01_pack.t ................. Dubious, test returned 1 (wstat 256, > 0x100) > Failed 1/43 subtests > > > > >
> > Please try master branch version. I have fixed some issues and merge > > changes into master branch.
>
> > [test.php] > > <?php > > require 'vendor/autoload.php'; > > use MessagePack\Packer;
>
> > $packer = new Packer();
> > $packed = $packer-
> >>pack('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA');
> > print($packed);
>
> > [test.pl] > > #!/usr/bin/env perl > > use strict; > > use warnings; > > use Data::MessagePack;
>
> > my $mp = Data::MessagePack->new(); > > my $input = do { local $/; <STDIN>};
> my $data = $mp->>unpack($input);
> > print $data;
>
> > [With CPAN version] > > % php test.php | perl test.pl
> Data::MessagePack->>unpack: parse error at test.pl line 8, <STDIN> > line 1. >
> > [With master branch version] > > % php test.php | perl test.pl > > AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
> >
> > On Thu Feb 18 06:18:49 2016, ap00@mail.ru wrote:
> >> > >> Test data is in the first > >> message > >> (https://rt.cpan.org/Public/Ticket/Attachment/1596328/853349). > >> > >>
> >> > Could you give up test data which causes your issue ? > >> > (Attach this thread or upload somewhere) > >> >
> >> >> > >> >> > >> >>
> >> >> > Why did you install by cpam ? Data::MessagePack uses git > >> >> > submodule and > >> >> > cpanm does not support git submodule. And Bin/Str > >> >> > implementation is not > >> >> > merged into master branch yet.
> >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >>
> >> > >> > >> > >> > >> > >>
Subject: Re: [rt.cpan.org #112075] broken interoperability
Date: Thu, 3 Mar 2016 12:25:49 +0300
To: Syohei Yoshida via RT <bug-Data-MessagePack [...] rt.cpan.org>
From: Anthony Pankov <ap00 [...] mail.ru>
It's worked. Thank you. Show quoted text
Show quoted text
> On Wed Mar 02 04:43:21 2016, ap00@mail.ru wrote:
>> I tried to install master branch version via: >> git clone --recursive -b master https://github.com/syohex/msgpack-perl
Show quoted text
> The repository URL is wrong.
Show quoted text
> As I said, I released trial version at CPAN. > You need not install from github repository and you can install it by following command.
Show quoted text
> % cpanm --dev Data::MessagePack
Show quoted text
> Regards.
Show quoted text
>> then >> perl Makefile.PL >> This give an error: >> Unknown function is found at Makefile.PL line 8. >> Execution of Makefile.PL aborted due to runtime errors. >> >> I've commented out line: "readme_from('lib/Data/MessagePack.pm');" an >> then perl Makefile.PL goes normally. >> >> Than: >> make >> build the module. >> >> Than >> make test >> failed with: >> PERL_DL_NONLAZY=1 "/usr/local/bin/perl5.22.1" "- >> MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef >> *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib', >> 'blib/arch')" t/*.t xt/*.t xt/leaks/*.t >> t/00_compile.t .............. 1/1 # Testing Data::MessagePack/0.36 >> (XS) >> # byteoder: 1234, ivsize=4 >> t/00_compile.t .............. ok >> t/01_pack.t ................. 1/43 >> # Failed test 'dump a1 33' >> # at t/01_pack.t line 13. >> # got: 'cb 40 08 00 00 00 00 00 00' >> # expected: 'a1 33' >> # Looks like you failed 1 test of 43. >> t/01_pack.t ................. Dubious, test returned 1 (wstat 256, >> 0x100) >> Failed 1/43 subtests >> >> >> >> >>
>> > Please try master branch version. I have fixed some issues and merge >> > changes into master branch.
>>
>> > [test.php] >> > <?php >> > require 'vendor/autoload.php'; >> > use MessagePack\Packer;
>>
>> > $packer = new Packer();
>> >> $packed = $packer-
>> >>pack('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA');
>> > print($packed);
>>
>> > [test.pl] >> > #!/usr/bin/env perl >> > use strict; >> > use warnings; >> > use Data::MessagePack;
>>
>> > my $mp = Data::MessagePack->new(); >> > my $input = do { local $/; <STDIN>};
>> my $data = $mp->>unpack($input);
>> > print $data;
>>
>> > [With CPAN version] >> > % php test.php | perl test.pl
>> Data::MessagePack->>unpack: parse error at test.pl line 8, <STDIN> >> line 1. >>
>> > [With master branch version] >> > % php test.php | perl test.pl >> > AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
>> >>
>> > On Thu Feb 18 06:18:49 2016, ap00@mail.ru wrote:
>> >> >> >> Test data is in the first >> >> message >> >> (https://rt.cpan.org/Public/Ticket/Attachment/1596328/853349). >> >> >> >>
>> >> > Could you give up test data which causes your issue ? >> >> > (Attach this thread or upload somewhere) >> >> >
>> >> >> >> >> >> >> >> >>
>> >> >> > Why did you install by cpam ? Data::MessagePack uses git >> >> >> > submodule and >> >> >> > cpanm does not support git submodule. And Bin/Str >> >> >> > implementation is not >> >> >> > merged into master branch yet.
>> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >>
>> >> >> >> >> >> >> >> >> >> >> >>
-- С уважением, Anthony mailto:ap00@mail.ru