Skip Menu |

This queue is for tickets about the Autodia CPAN distribution.

Report information
The Basics
Id: 49101
Status: resolved
Priority: 0/
Queue: Autodia

People
Owner: TEEJAY [...] cpan.org
Requestors: sergio.aghemo [...] fiat.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 2.09
  • 2.10
Fixed in: 2.11



Subject: PHP5 bugs in autodia 2.09/2.10
Date: Fri, 28 Aug 2009 18:53:57 +0200
To: bug-Autodia [...] rt.cpan.org
From: Sergio Aghemo <sergio.aghemo [...] fiat.com>
Hello, I'm using your excellent program to parse PHP5 classes but with version 2.09 I got the following error: zsh-% ./autodia.pl -i /Users/sergio/tmp/VHS/php/CLASSES/ Activity.class.php -l php ------------ Use of uninitialized value in pattern match (m//) at /Library/Perl/ 5.8.6/Autodia/Handler/PHP.pm line 231, <INFILE> line 332. Use of uninitialized value in pattern match (m//) at /Library/Perl/ 5.8.6/Autodia/Handler/PHP.pm line 231, <INFILE> line 332. Use of uninitialized value in pattern match (m//) at /Library/Perl/ 5.8.6/Autodia/Handler/PHP.pm line 230, <INFILE> line 332. Use of uninitialized value in pattern match (m//) at /Library/Perl/ 5.8.6/Autodia/Handler/PHP.pm line 230, <INFILE> line 332. .... a lot of similar rows skipped .... Use of uninitialized value in pattern match (m//) at /Library/Perl/ 5.8.6/Autodia/Handler/PHP.pm line 231, <INFILE> line 332. Use of uninitialized value in pattern match (m//) at /Library/Perl/ 5.8.6/Autodia/Handler/PHP.pm line 231, <INFILE> line 332. using default (dia) template Diagram.pm : Inheritances : no Inheritances to be printed - ignoring.. Realizations Diagram.pm : none to be printed - ignoring.. Diagram.pm : Relations : no Relations to be printed - ignoring.. Realizations Diagram.pm : none to be printed - ignoring.. Diagram.pm : Inheritances : no Inheritances to be printed - ignoring.. Diagram.pm : Relations : no Relations to be printed - ignoring.. file error - parse error - input text line 260-261: unexpected token (_Bottom_Left) [% realization.Orth ------------ version: AutoDia - version 2.09(c) copyright 2003 A Trevena (also tried 2.10 with the same error) perl 5.8.6 under Mac OS X 10.4.11 Summary of my perl5 (revision 5 version 8 subversion 6) configuration: Platform: osname=darwin, osvers=8.0, archname=darwin-thread-multi-2level uname='darwin b40.apple.com 8.0 darwin kernel version 8.8.4: sun oct 29 15:26:54 pst 2006; root:xnu-792.16.4.obj~1release_i386 i386 i386 ' config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe - Dldflags=-Dman3ext=3pm -Duseithreads -Duseshrplib' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-g -pipe -fno-common -DPERL_DARWIN -no-cpp- precomp -fno-strict-aliasing -I/usr/local/include', optimize='-O3', cppflags='-no-cpp-precomp -g -pipe -fno-common -DPERL_DARWIN -no- cpp-precomp -fno-strict-aliasing -I/usr/local/include' ccversion='', gccversion='4.0.1 (Apple Computer, Inc. build 5363) (+4864187)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='-L/usr/ local/lib' libpth=/usr/local/lib /usr/lib libs=-ldbm -ldl -lm -lc perllibs=-ldl -lm -lc libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, libperl=libperl.dylib gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-bundle -undefined dynamic_lookup -L/ usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Locally applied patches: 23953 - fix for File::Path::rmtree CAN-2004-0452 security issue 33990 - fix for setuid perl security issues fix for regcomp CVE-2007-5116 security vulnerability fix for double-free CVE-2008-1927 security vulnerability SPRINTF0 - fixes for sprintf formatting issues - CVE-2005-3962 Built under darwin Compiled at Jan 12 2009 14:08:24 @INC: /System/Library/Perl/5.8.6/darwin-thread-multi-2level /System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6 /Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level /Network/Library/Perl/5.8.6 /Network/Library/Perl /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1 version 2.03 works fine but dont understand PHP5 constructs I'm really poor in Perl: I've looked at the quoted line 230-231 $subroutine{"visibility"} = ($method_modifier =~ m/private/) ? 1 : ($method_modifier =~ m/protected/) ? 2 : ($subroutine{"name"} =~ m/^ \_/) ? 1 : 0; $subroutine{"inheritance_type"} = ($method_modifier =~ m/ abstract/) ? 0 : ($method_modifier =~ m/final/) ? 2 : 1; I'understand that $method_modifier is uninitialized (at line 224: my $method_modifier = $1; ) Any help will be greatly appreciated TIA Sergio Aghemo --------------------- cell. +39 348 8009642 tel. +39 011 00 35893 fax +39 011 83231151 ---------------------