Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the XML-Hash-XS CPAN distribution.

Report information
The Basics
Id: 102992
Status: resolved
Priority: 0/
Queue: XML-Hash-XS

People
Owner: Nobody in particular
Requestors: ZDM [...] cpan.org
Cc:
AdminCc:

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



Subject: Can't properly define input param type in XS
Here is the code: my $xml = <<'XML'; <?xml version="1.0" encoding="UTF-8"?> <note> </note> XML require XML::Hash::XS; substr $xml, 0, 0; # this will cause error in XS param type definition XML::Hash::XS->xml2hash(\$xml); dies with message "Invalid parametesr"
On Sun Mar 22 13:49:05 2015, ZDM wrote: Show quoted text
> Here is the code: > > my $xml = <<'XML'; > <?xml version="1.0" encoding="UTF-8"?> > <note> > </note> > XML > > require XML::Hash::XS; > > substr $xml, 0, 0; # this will cause error in XS param type definition > > XML::Hash::XS->xml2hash(\$xml); > > dies with message "Invalid parametesr"
Thanks for your report. I can't reproduce the bug with the code you've provided. Please send me the output of 'perl -V'. -- YOREEK
Subject: Re: [rt.cpan.org #102992] Can't properly define input param type in XS
Date: Mon, 23 Mar 2015 11:55:26 +0200
To: bug-XML-Hash-XS [...] rt.cpan.org
From: "dzagashev [...] gmail.com" <dzagashev [...] gmail.com>
Hello. Summary of my perl5 (revision 5 version 20 subversion 2) configuration: Platform: osname=MSWin32, osvers=6.3, archname=MSWin32-x64-multi-thread uname='Win32 strawberry-perl 5.20.2.1 #1 Sat Feb 21 18:04:11 2015 x64' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef useithreads=define, usemultiplicity=define use64bitint=define, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags =' -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields', optimize='-s -O2', cppflags='-DWIN32' ccversion='', gccversion='4.8.3', gccosandvers='' intsize=4, longsize=4, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='long long', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='g++.exe', ldflags ='-s -L"D:\devel\perl\perl\lib\CORE" -L"D:\devel\perl\c\lib"' libpth=D:\devel\perl\c\lib D:\devel\perl\c\x86_64-w64-mingw32\lib D:\devel\perl\c\lib\gcc\x86_64-w64-mingw32\4.8.3 libs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 perllibs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 libc=, so=dll, useshrplib=true, libperl=libperl520.a gnulibc_version='' Dynamic Linking: dlsrc=dl_win32.xs, dlext=xs.dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-mdll -s -L"D:\devel\perl\perl\lib\CORE" -L"D:\devel\perl\c\lib"' Characteristics of this binary (from libperl): Compile-time options: HAS_TIMES HAVE_INTERP_INTERN MULTIPLICITY PERLIO_LAYERS PERL_DONT_CREATE_GVSV PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS PERL_MALLOC_WRAP PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF Built under MSWin32 Compiled at Feb 21 2015 18:08:23 %ENV: PERL5LIB="d:/projects/pcore/lib;" PERL_CPANM_HOME="d:\tmp\.cpanm" PERL_PCORE_DIST_LIB="d:/projects" @INC: d:/projects/pcore/lib d:/devel/perl/perl/site/lib/MSWin32-x64-multi-thread d:/devel/perl/perl/site/lib d:/devel/perl/perl/vendor/lib d:/devel/perl/perl/lib . On 23.03.2015 11:43, Yuriy Ustushenko via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=102992 > > > On Sun Mar 22 13:49:05 2015, ZDM wrote:
>> Here is the code: >> >> my $xml = <<'XML'; >> <?xml version="1.0" encoding="UTF-8"?> >> <note> >> </note> >> XML >> >> require XML::Hash::XS; >> >> substr $xml, 0, 0; # this will cause error in XS param type definition >> >> XML::Hash::XS->xml2hash(\$xml); >> >> dies with message "Invalid parametesr"
> Thanks for your report. > > I can't reproduce the bug with the code you've provided. > Please send me the output of 'perl -V'. >
Subject: Re: [rt.cpan.org #102992] Can't properly define input param type in XS
Date: Mon, 23 Mar 2015 11:56:14 +0200
To: bug-XML-Hash-XS [...] rt.cpan.org
From: "dzagashev [...] gmail.com" <dzagashev [...] gmail.com>
This bug occured on windows and on linux. On 23.03.2015 11:43, Yuriy Ustushenko via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=102992 > > > On Sun Mar 22 13:49:05 2015, ZDM wrote:
>> Here is the code: >> >> my $xml = <<'XML'; >> <?xml version="1.0" encoding="UTF-8"?> >> <note> >> </note> >> XML >> >> require XML::Hash::XS; >> >> substr $xml, 0, 0; # this will cause error in XS param type definition >> >> XML::Hash::XS->xml2hash(\$xml); >> >> dies with message "Invalid parametesr"
> Thanks for your report. > > I can't reproduce the bug with the code you've provided. > Please send me the output of 'perl -V'. >
Subject: Re: [rt.cpan.org #102992] Can't properly define input param type in XS
Date: Mon, 23 Mar 2015 11:59:11 +0200
To: bug-XML-Hash-XS [...] rt.cpan.org
From: "dzagashev [...] gmail.com" <dzagashev [...] gmail.com>
add utf8 pragrma. Without utf8 all works without errors. #!/usr/bin/env perl package main v0.1.0; use utf8; my $xml = <<'XML'; <?xml version="1.0" encoding="UTF-8"?> <note> </note> XML require XML::Hash::XS; substr $xml, 0, 0; # this will cause error in XS param type definition XML::Hash::XS->xml2hash(\$xml); 1; __END__ On 23.03.2015 11:56, dzagashev@gmail.com via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=102992 > > > This bug occured on windows and on linux. > > On 23.03.2015 11:43, Yuriy Ustushenko via RT wrote:
>> <URL: https://rt.cpan.org/Ticket/Display.html?id=102992 > >> >> On Sun Mar 22 13:49:05 2015, ZDM wrote:
>>> Here is the code: >>> >>> my $xml = <<'XML'; >>> <?xml version="1.0" encoding="UTF-8"?> >>> <note> >>> </note> >>> XML >>> >>> require XML::Hash::XS; >>> >>> substr $xml, 0, 0; # this will cause error in XS param type definition >>> >>> XML::Hash::XS->xml2hash(\$xml); >>> >>> dies with message "Invalid parametesr"
>> Thanks for your report. >> >> I can't reproduce the bug with the code you've provided. >> Please send me the output of 'perl -V'. >>
>
On Mon Mar 23 11:59:24 2015, dzagashev@gmail.com wrote: Show quoted text
> add utf8 pragrma. Without utf8 all works without errors. > > #!/usr/bin/env perl > > package main v0.1.0; > > use utf8; > > my $xml = <<'XML'; > <?xml version="1.0" encoding="UTF-8"?> > <note> > </note> > XML > > require XML::Hash::XS; > > substr $xml, 0, 0; # this will cause error in XS param type definition > > XML::Hash::XS->xml2hash(\$xml); > > 1; > __END__ > > On 23.03.2015 11:56, dzagashev@gmail.com via RT wrote:
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=102992 > > > > > This bug occured on windows and on linux. > > > > On 23.03.2015 11:43, Yuriy Ustushenko via RT wrote:
> >> <URL: https://rt.cpan.org/Ticket/Display.html?id=102992 > > >> > >> On Sun Mar 22 13:49:05 2015, ZDM wrote:
> >>> Here is the code: > >>> > >>> my $xml = <<'XML'; > >>> <?xml version="1.0" encoding="UTF-8"?> > >>> <note> > >>> </note> > >>> XML > >>> > >>> require XML::Hash::XS; > >>> > >>> substr $xml, 0, 0; # this will cause error in XS param type definition > >>> > >>> XML::Hash::XS->xml2hash(\$xml); > >>> > >>> dies with message "Invalid parametesr"
> >> Thanks for your report. > >> > >> I can't reproduce the bug with the code you've provided. > >> Please send me the output of 'perl -V'. > >>
> >
>
Fixed in the version 0.30. Please test. -- YOREEK