Skip to content

Commit b3db06d

Browse files
committed
Remove create_function use in Command_Registry
1 parent 3b7d55b commit b3db06d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

PEAR/Command/Registry.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,8 +585,9 @@ function doInfo($command, $options, $params)
585585
case 'configure_options' : {
586586
foreach ($info[$key] as $i => $p) {
587587
$info[$key][$i] = array_map(null, array_keys($p), array_values($p));
588-
$info[$key][$i] = array_map(create_function('$a',
589-
'return join(" = ",$a);'), $info[$key][$i]);
588+
$info[$key][$i] = array_map(
589+
function($a) { return join(" = ", $a); },
590+
$info[$key][$i]);
590591
$info[$key][$i] = implode(', ', $info[$key][$i]);
591592
}
592593
$info[$key] = implode("\n", $info[$key]);

0 commit comments

Comments
 (0)