|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17901 bug in the function eregi()
Submitted: 2002-06-21 11:13 UTC Modified: 2002-06-21 12:21 UTC
From: akesla at gmx dot de Assigned:
Status: Closed Package: Regexps related
PHP Version: 4.1.2 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
21 + 36 = ?
Subscribe to this entry?

 [2002-06-21 11:13 UTC] akesla at gmx dot de
// this is a test string i used
$value="i|s:24:\"Hallo Dies Ist Ein TTTst ZZZ rrr\"";

// this is the regular expression string
$s="^([a-z_]{1,})\|([a-z]{1}):([0-9]{1,}):\"(.*) (.*) (.*)\"";

echo "sizeof($werte): "sizeof($werte);

foreach($werte as $f) {
    echo $f."<br>";

sizeof($werte): 10
i|s:24:"Hello this Is A Test ZZZ rrr"
Hello this Is A Test

the is the size of the array
the size is not scaleable its fix
the size is always 10
if i use another regular expression like
$s="^([a-z_]{1,})\|([a-z]{1}):([0-9]{1,}):\"(.*) (.*) (.*) (.*) (.*) (.*) (.*)\"";
the last "rrr" is not a value of the result


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-21 12:21 UTC]
This should be fixed in CVS. Try a snapshot from and reopen this report if the problem persists.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 23 22:01:31 2024 UTC