Bug #17761 Updated: $regs[] above 10, fails in Windows

From: Date: Sat, 15 Jun 2002 20:49:38 +0000
Subject: Bug #17761 Updated: $regs[] above 10, fails in Windows
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-10513@lists.php.net to get a copy of this message
ID: 17761 Updated by: michael@thingmand.dk Reported By: michael@thingmand.dk -Status: Feedback +Status: Closed Bug Type: Regexps related Operating System: Windows 2000 PHP Version: 4.2.1 New Comment: >Just in case this is already fixed.. Works here - thx! Previous Comments: ------------------------------------------------------------------------ [2002-06-14 15:55:31] sniper@php.net Just in case this is already fixed..can you try this snapshot: http://snaps.php.net/win32/php4-win32-latest.zip ------------------------------------------------------------------------ [2002-06-14 15:29:31] michael@thingmand.dk When I use ereg()'s possibility to capture the matches with $reg[] and make an expression with 10+ matches, it won’t capture matches above $reg[9]. On the other hand, if I make 9 or less matches, the $reg[] always count 10 entries ($reg[0]- $reg[9]). The error only appears on Windows systems – on Unix systems, the bug is fixed… Just as described in the note on http://www.php.net/manual/en/function.ereg.php ------------------------------------------------------------------------ [2002-06-14 11:33:18] sander@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. ------------------------------------------------------------------------ [2002-06-14 09:10:09] michael@thingmand.dk The "$regs will be filled with exactly ten elements, even though more or fewer than ten parenthesized substrings may actually have matched" problem with ereg(), is showing on Windows boxes - also above version 4.1.0. The same script, tested on a Unix box worked as suspected. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17761&edit=1

« previous php.bugs (#10513) next »