Permalink
Browse files

MINOR Fixed memory limit setting in SapphireTest (regression from r10…

…6128) (from r106190)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112525 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
chillu committed Oct 15, 2010
1 parent f0d0320 commit 5fe548f7b5823984face4bccb8c0655138ea8e97
Showing with 1 addition and 1 deletion.
  1. +1 −1 dev/SapphireTest.php
View
@@ -350,7 +350,7 @@ function clearFixtures() {
function tearDown() {
// Preserve memory settings
- ini_set('memory_limit', $this->originalMemoryLimit);
+ ini_set('memory_limit', ($this->originalMemoryLimit) ? $this->originalMemoryLimit : -1);
// Restore email configuration
Email::set_mailer($this->originalMailer);

0 comments on commit 5fe548f

Please sign in to comment.