[php-maint] Bug#333301: libapache-mod-php4: natsort is broken in
sarge
Brian McGroarty
brian at mcgroarty.net
Tue Oct 11 10:15:59 UTC 2005
Package: libapache-mod-php4
Version: 4:4.3.10-16
Severity: normal
This snippet of code used to produce sorted output. Now it presents a
list of number-named files in the strange order:
01 02 10 11 12 13 14 15 16 17 18 02 03 04 05 06 07 08 09
$dir=opendir("/home/strom/galleries/$itemid");
while($fname=readdir($dir)) {
if(!preg_match("/^\./",$fname)) {
$files[]=$fname;
}
}
natsort($files);
$numfiles=count($files);
for($i=0; $i < $numfiles; $i++) {
echo "<p><img src=\"fetchpage.php?itemid={$itemid}&image={$files[$i]}\"></p>\n<hr>\n";
}
Versions of packages libapache-mod-php4 depends on:
ii apache-common 1.3.33-6sarge1 support files for all Apache webse
ii debconf [debconf-2.0] 1.4.30.13 Debian configuration management sy
ii libbz2-1.0 1.0.2-7 high-quality block-sorting file co
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an
ii libcomerr2 1.37-2sarge1 common error description library
ii libdb4.2 4.2.52-18 Berkeley v4.2 Database Libraries [
ii libexpat1 1.95.8-3 XML parsing C library - runtime li
ii libkrb53 1.3.6-2sarge2 MIT Kerberos runtime libraries
ii libmagic1 4.12-1 File type determination library us
ii libpcre3 4.5-1.2sarge1 Perl 5 Compatible Regular Expressi
ii libssl0.9.7 0.9.7e-3 SSL shared libraries
ii libzzip-0-12 0.12.83-4 library providing read access on Z
ii mime-support 3.28-1 MIME files 'mime.types' & 'mailcap
ii php4-common 4:4.3.10-16 Common files for packages built fr
ii zlib1g 1:1.2.2-4.sarge.2 compression library - runtime
-- debconf information:
php4/update_apache_php_ini: true
More information about the pkg-php-maint
mailing list