Bug #7598
Automatically set context not checked in Bootstrap
Status:
Resolved
Priority:
Should have
Assignee:
Category:
Core
Target version:
Start date:
2010-05-03
Due date:
% Done:
100%
Estimated time:
1.00 h
PHP Version:
Has patch:
Complexity:
Description
Exception is thrown in Production context
--- Core/Bootstrap.php (revision 4252) +++ Core/Bootstrap.php (working copy) @@ -170,8 +170,8 @@ $this->ensureRequiredEnvironment(); $this->context = (strlen($context) === 0) ? 'Production' : $context; - if ($context !== 'Production' && $context !== 'Development') { - exit('FLOW3: Unknown context "' . $context . '" provided, currently only "Production" and "Development" are supported. (Error #1254216868)'); + if ($this->context !== 'Production' && $context !== 'Development') { + exit('FLOW3: Unknown context "' . $this->context . '" provided, currently only "Production" and "Development" are supported. (Error #1254216868)'); } $this->FLOW3Package = new \F3\FLOW3\Package\Package('FLOW3', FLOW3_PATH_FLOW3); } @@ -648,4 +648,4 @@ } } -?>
(Also there is no unittests testing if the bootstrap can be initialised with diffrent contexts - maybe thats useful. The bootstarp is just a accessible mock where the constructor seems not to be called)
Updated by Karsten Dambekalns over 10 years ago
- Tracker changed from Task to Bug
- Project changed from Core Team to TYPO3.Flow
Updated by Karsten Dambekalns over 10 years ago
- Category set to Core
- Target version set to 1.0 alpha 9
Updated by Karsten Dambekalns over 10 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset r4263.