Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
1938 | major | always | 08-13-07 08:56 | 09-19-07 07:40 | |
|
|||||
Reporter: | chillout | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.1.2 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.1.3 | ||
|
|||||
Summary: | 0001938: array data corrupt when using symfony framework | ||||
Description: |
when using symfony(http://www.symfony-project.com), [^] array data corrupt. in sfRootConfigHandler class, public function execute($configFiles) { // parse the yaml $config = $this->parseYamls($configFiles); // determine if we're loading the system config_handlers.yml or a module config_handlers.yml $moduleLevel = ($this->getParameterHolder()->get('module_level') === true) ? true : false; if ($moduleLevel) { // get the current module name $moduleName = $this->getParameterHolder()->get('module_name'); } // init our data and includes arrays $data = array(); $includes = array(); // let's do our fancy work foreach ($config as $category => $keys) { if ($moduleLevel) { // module-level registration, so we must prepend the module // root to the category $category = 'modules/'.$moduleName.'/'.$category; } var_dump($keys); // result is array(1) { ["class"]=> string(23) "sfAutoloadConfigHandler" } var_dump($keys['class']); // result is NULL // this must be string(23) "sfAutoloadConfigHandler" var_dump(array_key_exists('class', $keys)); // result is bool(false) // this must be bool(true) if (!isset($keys['class'])) { // missing class key $error = sprintf('Configuration file "%s" specifies category "%s" with missing class key', $configFiles[0], $category); throw new sfParseException($error); } |
||||
Steps To Reproduce: | |||||
Additional Information: |
using CentOS 5, resin3.1.2, quercus3.1.2 how to confirm this issue. 1. download http://www.symfony-project.com/get/sf_sandbox.tgz, [^] uncompress and move sf_sandbox/* to WEB-INF directory 2. cp WEB-INF/web/index.php ../ 3. edit index.php change SF_ROOT_DIR constants to define('SF_ROOT_DIR', realpath(dirname(__FILE__).'/WEB-INF')); 4. access index.php through your browser |
||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|