-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:
Apache2::RequestUtil->dir_config does not seem to work as stated in list 
context.
PerlAddVar foo one two three
@values = $r->dir_config($key);  # only gives one value

this script used as normal registry script.

#! /usr/bin/perl
use warnings;
use strict;
use CGI;
use Apache2::RequestUtil;
my $q = new CGI;

print $q->header(),$q->start_html,$q->start_body,'<PRE>';
my $r=Apache2::RequestUtil->request;

foreach ($r->dir_config()->get("foo")){ #gives all values
    print "$_<br />";
}
print "<hr>";

foreach ($r->dir_config("foo")){ #gives one value!!!!!
    print "$_<br />";
}
print "<hr>";

my @arr=$r->dir_config("foo");  #gives one value!!!!!
foreach (@arr){
    print "$_<br />";
}

print $q->end_body,$q->end_html;

2. Used Components and their Configuration:

*** mod_perl version 2.000001

*** using 
/usr/lib/perl5/site_perl/5.8.5/i586-linux-thread-multi/Apache2/BuildConfig.pm

*** Makefile.PL options:
  MP_APR_LIB     => aprext
  MP_APXS        => /usr/sbin/apxs
  MP_COMPAT_1X   => 1
  MP_GENERATE_XS => 1
  MP_LIBNAME     => mod_perl
  MP_USE_DSO     => 1


*** The httpd binary was not found


*** (apr|apu)-config linking info

 -L/usr/lib -laprutil-0 -lldap -llber -lgdbm -ldb-4.1 -lexpat
 -L/usr/lib -lapr-0 -lrt -lm -lcrypt -lnsl  -lpthread -ldl



*** /usr/bin/perl -V
Summary of my perl5 (revision 5 version 8 subversion 5) configuration:
  Platform:
    osname=linux, osvers=2.4.30-3tr, archname=i586-linux-thread-multi
    uname='linux trustix-22.trustix.net 2.4.30-3tr #1 thu apr 28 15:55:22 cest 
2005
i686 athlon i386 gnulinux '
    config_args='-des -Darchname=i586-linux -Dcc=gcc -Dcf_by=Trustix
-Dd_semctl_semun -Di_db -Di_gdbm -Dmyhostname=localhost -Doptimize=-O3
-fomit-frame-pointer -pipe -s -mpentium -mcpu=pentium -march=pentium
-fexpensive-optimizations -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES=1
-D_LARGEFILE64_SOURCE=1 [EMAIL PROTECTED] -Dprefix=/usr
-Dsiteprefix=/usr -Duselargefiles -Dvendorprefix=/usr
-Dman3dir=/usr/share/man/man3 -Dman1dir=/usr/share/man/man1
-Dprivlib=/usr/lib/perl5/5.8.5 -Dsitelib=/usr/lib/perl5/site_perl/5.8.5
-Dvendorlib=/usr/lib/perl5/vendor_perl/5.8.5
-Darchlib=/usr/lib/perl5/5.8.5/i586-linux-thread-multi
-Dsitearch=/usr/lib/perl5/site_perl/5.8.5/i586-linux-thread-multi
-Dvendorarch=/usr/lib/perl5/vendor_perl/5.8.5/i586-linux-thread-multi
-Dusethreads -Dinc_version_list=5.8.4 5.8.3'
    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='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm',
    optimize='-O3 -fomit-frame-pointer -pipe -s -mpentium -mcpu=pentium
-march=pentium -fexpensive-optimizations -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES=1
-D_LARGEFILE64_SOURCE=1',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS 
-fno-strict-aliasing
-pipe -I/usr/include/gdbm'
    ccversion='', gccversion='3.3.4 (Trustix)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=/lib/libc-2.3.2.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.3.2'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES 
PERL_IMPLICIT_CONTEXT
  Built under linux
  Compiled at Jul  1 2005 17:26:13
  %ENV:
    PERL_LWP_USE_HTTP_10="1"
  @INC:
    /usr/lib/perl5/5.8.5/i586-linux-thread-multi
    /usr/lib/perl5/5.8.5
    /usr/lib/perl5/site_perl/5.8.5/i586-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.5
    /usr/lib/perl5/site_perl
    /usr/lib/perl5/vendor_perl/5.8.5/i586-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.5
    /usr/lib/perl5/vendor_perl
    .

*** Packages of interest status:

Apache2            : -
Apache2::Request   : -
CGI                : 3.10
ExtUtils::MakeMaker: 6.30
LWP                : 5.803
mod_perl           : -
mod_perl2          : 2.000001


3. This is the core dump trace: (if you get a core dump):

  [CORE TRACE COMES HERE]

This report was generated by /usr/bin/mp2bug on Mon Jul 18 21:36:04 2005 GMT.

-------------8<---------- End Bug Report --------------8<----------

Note: Complete the rest of the details and post this bug report to
modperl <at> perl.apache.org. To subscribe to the list send an empty
email to [EMAIL PROTECTED]




-- 
Bengt-Arne Fjellner
0910-58 53 69


Reply via email to