[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#99978: marked as done (eregi() just doesnt work with certain sized strings and parse_url fails)



Your message dated Tue, 29 Apr 2003 08:21:36 +0200 (CEST)
with message-id <Pine.LNX.4.53.0304290813570.25314@trider-g7.ext.fabbione.net>
and subject line (no subject)
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 7 Jun 2001 21:52:39 +0000
>From csmall@eye-net.com.au Thu Jun 07 16:52:39 2001
Return-path: <csmall@eye-net.com.au>
Received: from (murphy.debian.org) [::ffff:10.10.10.9] 
	by master.debian.org with smtp (Exim 3.12 1 (Debian))
	id 1587hn-0006y7-00; Thu, 07 Jun 2001 16:52:39 -0500
Received: (qmail 11899 invoked from network); 7 Jun 2001 05:45:20 -0000
Received: from fozzie.eye-net.com.au (203.41.228.19)
  by murphy.debian.org with SMTP; 7 Jun 2001 05:45:20 -0000
Received: by fozzie.eye-net.com.au (Postfix, from userid 1000)
	id 07D60D610C; Thu,  7 Jun 2001 15:44:44 +1000 (EST)
Date: Thu, 7 Jun 2001 15:44:43 +1000
To: submit@bugs.debian.org
Subject: eregi() just doesnt work with certain sized strings
Message-ID: <20010607154443.A8185@eye-net.com.au>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.17i
From: csmall@eye-net.com.au (Craig Small)
Delivered-To: submit@bugs.debian.org

Package: php4
Version: 3:4.0.5-2
Severity: normal

Check this out, i was debugging a md5 has problem.  Create the file:

<?
  $mymd5 = '12345678901234567890123456789012345678901234567890';
  echo "My md5 has is $mymd5<BR>\n";
  eregi('[0-9a-z]{28}', $mymd5, $reg28);
  echo "28 char reg is $reg28[0]<BR>\n";
  eregi('[0-9a-z]{29}', $mymd5, $reg29);
  echo "29 char reg is $reg29[0]<BR>\n";
  eregi('[0-9a-z]{31}', $mymd5, $reg);
  echo "31 char reg is $reg[0]<BR>\n";
  preg_match('/[0-9a-z]{31}/', $mymd5, $regp);
  echo "31 char reg using pcre is $regp[0]<BR>\n";
  ?>

Then run it:
My md5 has is 12345678901234567890123456789012345678901234567890
28 char reg is 1234567890123456789012345678
29 char reg is 12345678901234567890123456789
31 char reg is 
31 char reg using pcre is 1234567890123456789012345678901

Madness!

I have no idea why the eregi fails for a 31 character match, or why
preg_match does work.

  - Craig

-- System Information
Debian Release: 2.2
Architecture: alpha
Kernel: Linux fozzie 2.2.19 #2 Mon Apr 16 17:08:37 EST 2001 alpha
Locale: LANG=C, LC_CTYPE=C

Versions of packages php4 depends on:
ii  apache-common                 1.3.19-1   Support files for all Apache webse
ii  fileutils                     4.0l-8     GNU file management utilities.    
ii  libbz2-1.0                    1.0.1-6    A high-quality block-sorting file 
ii  libc6.1                       2.2.3-1    GNU C Library: Shared libraries an
ii  libdb2                        2:2.7.7-8  The Berkeley database routines (ru
ii  libexpat1                     1.95.1-5   XML parsing C library - runtime li
ii  libmm11                       1.1.3-2    Shared memory library             
ii  libpam0g                      0.72-9     Pluggable Authentication Modules l
ii  libpcre3                      3.4-1      Philip Hazel's Perl Compatible Reg
ii  mime-support                  3.10-1     MIME files 'mime.types' & 'mailcap
ii  zlib1g                        1:1.1.3-14 compression library - runtime     


-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/        <csmall@eye-net.com.au>
MIEEE <csmall@ieee.org>                 Debian developer <csmall@debian.org>

---------------------------------------
Received: (at 135089-done) by bugs.debian.org; 29 Apr 2003 06:21:41 +0000
>From fabbione@fabbione.net Tue Apr 29 01:21:41 2003
Return-path: <fabbione@fabbione.net>
Received: from port5.ds1-sby.adsl.cybercity.dk (trider-g7.fabbione.net) [212.242.169.198] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 19AOUk-0006Ls-00; Tue, 29 Apr 2003 01:21:38 -0500
Received: from trider-g7.ext.fabbione.net (port5.ds1-sby.adsl.cybercity.dk [212.242.169.198])
	by trider-g7.fabbione.net (Postfix) with ESMTP
	id 7DCD013; Tue, 29 Apr 2003 08:21:36 +0200 (CEST)
Date: Tue, 29 Apr 2003 08:21:36 +0200 (CEST)
From: Fabio Massimo Di Nitto <fabbione@fabbione.net>
Sender: fabbione@trider-g7.ext.fabbione.net
To: 99978-done@bugs.debian.org, 135089-done@bugs.debian.org,
	136264-done@bugs.debian.org, 139175-done@bugs.debian.org
Message-ID: <Pine.LNX.4.53.0304290813570.25314@trider-g7.ext.fabbione.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Delivered-To: 135089-done@bugs.debian.org
X-Spam-Status: No, hits=-7.3 required=4.0
	tests=BAYES_10,SIGNATURE_SHORT_SPARSE,USER_AGENT_PINE
	version=2.53
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp)


Im closing these bugs since the problem has been solved since a while and
eregi() functionality is working fine. Unfortunatly we are missing the
record in which version of apache this issue was solved.

Tested using php4 4.2.3-13 and apache 1.3.27-0.1

Regards
Fabio

-- 
Our mission: make IPv6 the default IP protocol
"We are on a mission from God" - Elwood Blues

http://www.itojun.org/paper/itojun-nanog-200210-ipv6isp/mgp00004.html



Reply to: