Drupal Association members fund grants that make connections all over the world.
When trying to set another colorscheme for Bartik on a system with no memory limit, you will get the following message:
There is not enough memory available to PHP to change this theme's color scheme. You need at least [amount] MB more. Check the PHP documentation for more information.
This happens because the value for no memory_limit is -1 and:
- parse_size strips the sign
- validation doesn't test for -1
There are two approaches, both attached.
The first treats limit -1 as a flag and only parses if it is not -1.
The second modifies parse_size to not strip the negative sign. I didn't bother with ensuring it comes before any nums, as parse_size doesn't bother with this for unit-characters either.
PASSED: [[SimpleTest]]: [MySQL] 40,455 pass(es). View
|#55||1453984-drupal-check-memory-limit.patch||6.61 KB||Dave Reid|
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch 1453984-drupal-check-memory-limit_0.patch. Unable to apply patch. See the log in the details link for more information. View
|#55||interdiff.txt||2.06 KB||Dave Reid|
|#54||1453984-drupal-check-memory-limit.patch||5.72 KB||Dave Reid|
PASSED: [[SimpleTest]]: [MySQL] 40,591 pass(es). View