Skip to content

Commit 17d1b65

Browse files
Memory limit addition tested
1 parent e135ae2 commit 17d1b65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

polyscripting/src/transformer/tok-php-transformer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
include 'snip-transform.php';
7-
const LONG_OPTS = array("replace", "test", "dump", "phar", "inc", "dictionary:", "memory_limit");
7+
const LONG_OPTS = array("replace", "test", "dump", "phar", "inc", "dictionary:", "memory_limit::");
88

99
set_error_handler("error_handle", E_USER_ERROR);
1010

@@ -64,7 +64,7 @@ function arg_parse($opts)
6464

6565
if (array_key_exists("memory_limit", $opts)) {
6666
$memory_limit = $opts["memory_limit"];
67-
echo "Setting memory limit to: $memory_limit \n";
67+
echo "Setting memory limit to: " . $opts["memory_limit"] . "\n";
6868
ini_set('memory_limit', $memory_limit);
6969
}
7070

0 commit comments

Comments
 (0)