all MDL-20821 Removed ereg related deprecated functions
This commit is contained in:
@@ -252,9 +252,9 @@ if ($settings['eolchar'] == '<br />') {
|
||||
function arguments($argv) {
|
||||
$_ARG = array();
|
||||
foreach ($argv as $arg) {
|
||||
if (ereg('--?([^=]+)=(.*)',$arg,$reg)) {
|
||||
if (preg_match('/--?([^=]+)=(.*)/',$arg,$reg)) {
|
||||
$_ARG[$reg[1]] = $reg[2];
|
||||
} elseif(ereg('-([a-zA-Z0-9]+)',$arg,$reg)) {
|
||||
} elseif(preg_match('/-([a-zA-Z0-9]+)/',$arg,$reg)) {
|
||||
$_ARG[$reg[1]] = 'true';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user