Index: trunk/phase3/maintenance/Maintenance.php |
— | — | @@ -351,7 +351,7 @@ |
352 | 352 | $this->addOption( 'conf', 'Location of LocalSettings.php, if not default', false, true ); |
353 | 353 | $this->addOption( 'wiki', 'For specifying the wiki ID', false, true ); |
354 | 354 | $this->addOption( 'globals', 'Output globals at the end of processing for debugging' ); |
355 | | - $this->addOption( 'memory-limit', 'Set a specific memory limit for the script, -1 for no limit or 0 to avoid changing it' ); |
| 355 | + $this->addOption( 'memory-limit', 'Set a specific memory limit for the script, -1 for no limit or "default" to avoid changing it' ); |
356 | 356 | // If we support a DB, show the options |
357 | 357 | if ( $this->getDbType() > 0 ) { |
358 | 358 | $this->addOption( 'dbuser', 'The DB user to use for this script', false, true ); |
— | — | @@ -476,7 +476,7 @@ |
477 | 477 | * Adjusts PHP's memory limit to better suit our needs, if needed. |
478 | 478 | */ |
479 | 479 | protected function adjustMemoryLimit() { |
480 | | - if ( $this->memoryLimit() != 0 ) { |
| 480 | + if ( $this->memoryLimit() != 'default' ) { |
481 | 481 | ini_set( 'memory_limit', $this->memoryLimit() ); |
482 | 482 | } |
483 | 483 | } |