Skip to content

Commit

Permalink
Changing implementation of php.memory_limit param.
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash committed Dec 13, 2016
1 parent 8687e9b commit 9b2f0f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
4 changes: 3 additions & 1 deletion phing/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
</if>

<!--Increase PHP memory limit. -->
<php expression="ini_set('memory_limit', '1G');" level="verbose" />
<property name="php.memory_limit" value="2G" override="false" />
<echo>Setting memory allocation to ${php.memory_limit}</echo>
<php expression="ini_set('memory_limit', '${php.memory_limit}');" verbose="true" />

<!--@todo Warn if Windows is being used.-->

Expand Down
9 changes: 0 additions & 9 deletions phing/tasks/properties.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<project name="properties" default="build">

<!-- Set the memory limit for php. -->
<if>
<isset property="php.mem_limit"/>
<then>
<echo>Setting memory allocation to ${php.mem_limit}</echo>
<php expression="ini_set('memory_limit', '${php.mem_limit}');"/>
</then>
</if>

<!-- Define the repo root as a property, and resolve to an absolute file path. -->
<!-- We assume that Phing is running in vendor/acquia/blt/phing of a parent project. -->
<property name="repo.root.relative" value="${phing.dir}/../../../.." logoutput="false"/>
Expand Down

0 comments on commit 9b2f0f3

Please sign in to comment.