I don't know why, don't ask me, but administerusersbyrole.info file is crashing my browser causing 'Connection Interrupted'.
Probably description is too long, can you make it shorter?
Reproduceable crashing code on Win32 with WAMP installed:
$data = "\nname = Foo\ndescription = \"Foo 'administer users' (specified in 'Permissions') to edit/delete other users with a specified role. If the user being edited has multiple roles, the user doing the editing must have permission to edit ALL of the user being edited's roles. Also provides control over user creation. Works well in conjunction with <a href='http://drupal.org/project/role_delegation'>role_delegation</a>.\"\ncore = 6.x\n\n; Information added by drupal.org packaging script on 2009-01-28\nversion = \"6.x-1.3\"\ncore = \"6.x\"\nproject = \"administerusersbyrole\"\ndatestamp = \"1233114605\"\n\n";
preg_match_all('
@^\s* # Start at the beginning of a line, ignoring leading whitespace
((?:
[^=;\[\]]| # Key names cannot contain equal signs, semi-colons or square brackets,
\[[^\[\]]*\] # unless they are balanced and not nested
)+?)
\s*=\s* # Key/value pairs are separated by equal signs (ignoring white-space)
(?:
("(?:[^"]|(?<=\\\\)")*")| # Double-quoted string, which may contain slash-escaped quotes/slashes
(\'(?:[^\']|(?<=\\\\)\')*\')| # Single-quoted string, which may contain slash-escaped quotes/slashes
([^\r\n]*?) # Non-quoted string
)\s*$ # Stop at the next end of a line, ignoring trailing whitespace
@msx', $data, $matches, PREG_SET_ORDER);
echo 'not crashed';
Comments
Comment #1
kenorb commentedAdded on PHP Bugs as well:
http://bugs.php.net/bug.php?id=48347
Comment #2
Sancho Panza commentedHappened only in local copy with Wamp, not in the live site server.
I don´t understand exactly why, but removing the double quotes around the description makes it work.
Comment #3
kenorb commentedBasically format .info should be without double-quotes and without html tags.
It's just a plain description in module list, not a help.
Description what module do should be in one or maximum two sentences.
Comment #4
smokrisAccording to http://drupal.org/node/231036 it looks like double-quotes are allowed (though optional).
I've trimmed down the description; hopefully this should solve the problem (I've never encountered it on the numerous unix servers I'm running it on, however).
Applied to 6.x-1.4 and 5.x-1.4.
Comment #5
kenorb commentedThanks.