Skip to content

Commit 1222bf1

Browse files
committed
make test pass on PHP7
1 parent f94785f commit 1222bf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/001-getopt.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require_once __DIR__ . '/../Console/Getopt.php';
66
PEAR::setErrorHandling(PEAR_ERROR_PRINT, "%s\n\n");
77

88
function test($argstr, $optstr) {
9-
$argv = split('[[:space:]]+', $argstr);
9+
$argv = preg_split('/[[:space:]]+/', $argstr);
1010
if (PEAR::isError($options = Console_Getopt::getopt($argv, $optstr))) {
1111
return;
1212
}

0 commit comments

Comments
 (0)