Changeset 6664
- Timestamp:
- 12/21/07 08:47:59 (1 year ago)
- Files:
-
- branches/dwhittle/1.0/CHANGELOG (modified) (1 diff)
- branches/dwhittle/1.0/data/tasks/sfPakeSymfony.php (modified) (3 diffs)
- branches/dwhittle/1.0/lib/VERSION (modified) (1 diff)
- branches/dwhittle/1.0/lib/action/sfAction.class.php (modified) (1 diff)
- branches/dwhittle/1.0/lib/controller/sfFrontWebController.class.php (modified) (1 diff)
- branches/dwhittle/1.0/lib/controller/sfRouting.class.php (modified) (1 diff)
- branches/dwhittle/1.0/lib/filter/sfRenderingFilter.class.php (modified) (1 diff)
- branches/dwhittle/1.0/lib/response/sfWebResponse.class.php (modified) (1 diff)
- branches/dwhittle/1.0/test/unit/controller/sfRoutingTest.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/dwhittle/1.0/CHANGELOG
r6598 r6664 1 Version 1.0.10PRE 2 ------------- 3 4 This is a bug fix release. 1 Version 1.0.11PRE 2 ------------- 3 4 This is a bug fix release. 5 6 Version 1.0.10 7 ------------- 8 9 This is a bug fix release. 10 11 * r6622: Problem with ProjectExport and directory structure change (#2606) 12 * r6614: fixed magic_quotes_gpc() handling in sfRouting (#1801) 13 * r6610: fixed non-sf exception handling (#2064) 14 * r6607: fixed incorrect use of sfConfigCache:checkConfig(..., true) (#2123) 15 * r6469: fixed sfOutputEscaperObjectDecorator::toString() as PHP 5.2.5 does not allow exception in toString() methods (#2630) 16 * r6398: fixed default log file permissions (#2145) 17 * r6378: fixed typo in sfDebugConnection (#2524) 18 * r6375: changed implementation of sfCultureInfo::simplify (#1821) 19 * r6371: fixed connecting to a database using unix socket (#2539) 20 * r6358: fixed sfProcessCache eaccelerator delete also cached scripts 21 * r6337: reverted changes for default time and date format 5 22 6 23 Version 1.0.9 branches/dwhittle/1.0/data/tasks/sfPakeSymfony.php
r6598 r6664 18 18 { 19 19 // check that the symfony librairies are not already freeze for this project 20 if (is_readable( 'lib/symfony'))20 if (is_readable(sfConfig::get('sf_lib_dir').'/symfony')) 21 21 { 22 22 throw new Exception('You can only freeze when lib/symfony is empty.'); 23 23 } 24 24 25 if (is_readable( 'data/symfony'))25 if (is_readable(sfConfig::get('sf_data_dir').'/symfony')) 26 26 { 27 27 throw new Exception('You can only freeze when data/symfony is empty.'); 28 28 } 29 29 30 if (is_readable( 'web/sf'))30 if (is_readable(sfConfig::get('sf_web_dir').'/sf')) 31 31 { 32 32 throw new Exception('You can only freeze when web/sf is empty.'); 33 33 } 34 34 35 if (is_link( 'web/sf'))35 if (is_link(sfConfig::get('sf_web_dir').'/sf')) 36 36 { 37 pake_remove( 'web/sf', '');37 pake_remove(sfConfig::get('sf_web_dir').'/sf', ''); 38 38 } 39 39 … … 44 44 pake_echo_action('freeze', 'freezing data found in "'.$symfony_data_dir.'"'); 45 45 46 pake_mkdirs( 'lib'.DIRECTORY_SEPARATOR.'symfony');47 pake_mkdirs( 'data'.DIRECTORY_SEPARATOR.'symfony');46 pake_mkdirs(sfConfig::get('sf_lib_dir').DIRECTORY_SEPARATOR.'symfony'); 47 pake_mkdirs(sfConfig::get('sf_data_dir').DIRECTORY_SEPARATOR.'symfony'); 48 48 49 49 $finder = pakeFinder::type('any')->ignore_version_control(); 50 pake_mirror($finder, $symfony_lib_dir, 'lib/symfony');51 pake_mirror($finder, $symfony_data_dir, 'data/symfony');50 pake_mirror($finder, $symfony_lib_dir, sfConfig::get('sf_lib_dir').'/symfony'); 51 pake_mirror($finder, $symfony_data_dir, sfConfig::get('sf_data_dir').'/symfony'); 52 52 53 pake_rename( 'data/symfony/web/sf', 'web/sf');53 pake_rename(sfConfig::get('sf_data_dir').'/symfony/web/sf', sfConfig::get('sf_web_dir').'/sf'); 54 54 55 55 // change symfony paths in config/config.php … … 73 73 74 74 $finder = pakeFinder::type('any'); 75 pake_remove($finder, 'lib/symfony');76 pake_remove( 'lib/symfony', '');77 pake_remove($finder, 'data/symfony');78 pake_remove( 'data/symfony', '');75 pake_remove($finder, sfConfig::get('sf_lib_dir').'/symfony'); 76 pake_remove(sfConfig::get('sf_lib_dir').'/symfony', ''); 77 pake_remove($finder, sfConfig::get('sf_data_dir').'/symfony'); 78 pake_remove(sfConfig::get('sf_data_dir').'/symfony', ''); 79 79 pake_remove('symfony.php', ''); 80 pake_remove($finder, 'web/sf');81 pake_remove( 'web/sf', '');80 pake_remove($finder, sfConfig::get('sf_web_dir').'/sf'); 81 pake_remove(sfConfig::get('sf_web_dir').'/sf', ''); 82 82 } 83 83 branches/dwhittle/1.0/lib/VERSION
r6598 r6664 1 1.0.1 0-PRE1 1.0.11-PRE branches/dwhittle/1.0/lib/action/sfAction.class.php
r6598 r6664 36 36 37 37 // include security configuration 38 require(sfConfigCache::getInstance()->checkConfig(sfConfig::get('sf_app_module_dir_name').'/'.$this->getModuleName().'/'.sfConfig::get('sf_app_module_config_dir_name').'/security.yml', true)); 38 if ($file = sfConfigCache::getInstance()->checkConfig(sfConfig::get('sf_app_module_dir_name').'/'.$this->getModuleName().'/'.sfConfig::get('sf_app_module_config_dir_name').'/security.yml', true)) 39 { 40 require $file; 41 } 39 42 40 43 return true; branches/dwhittle/1.0/lib/controller/sfFrontWebController.class.php
r6598 r6664 67 67 { 68 68 // wrap non symfony exceptions 69 $sfException = new sfException( );69 $sfException = new sfException($e->getMessage()); 70 70 $sfException->printStackTrace($e); 71 71 } branches/dwhittle/1.0/lib/controller/sfRouting.class.php
r6598 r6664 581 581 $found .= $pass[$i].'='.$pass[$i + 1].'&'; 582 582 } 583 583 584 parse_str($found, $pass); 585 586 if (get_magic_quotes_gpc()) 587 { 588 $pass = sfToolkit::stripslashesDeep((array) $pass); 589 } 590 584 591 foreach ($pass as $key => $value) 585 592 { branches/dwhittle/1.0/lib/filter/sfRenderingFilter.class.php
r6598 r6664 42 42 43 43 // send headers 44 $response->sendHttpHeaders(); 44 if (method_exists($response, 'sendHttpHeaders')) 45 { 46 $response->sendHttpHeaders(); 47 } 45 48 46 49 // send content branches/dwhittle/1.0/lib/response/sfWebResponse.class.php
r6598 r6664 434 434 $value = $this->getContentType(); 435 435 } 436 437 if (!$replace) 436 else if (!$replace) 438 437 { 439 438 $current = $this->getParameter($key, '', 'helper/asset/auto/httpmeta'); branches/dwhittle/1.0/test/unit/controller/sfRoutingTest.php
r6598 r6664 11 11 require_once(dirname(__FILE__).'/../../bootstrap/unit.php'); 12 12 13 $t = new lime_test(6 8, new lime_output_color());13 $t = new lime_test(69, new lime_output_color()); 14 14 15 15 // public methods … … 207 207 $t->is($r->generate('', $params), $url, '->generate() takes the first matching route but takes * into accounts'); 208 208 209 $t->is($r->parse('/default/index/foo/bar\'123'), array('module' => 'default', 'action' => 'index', 'foo' => 'bar\'123'), '->parse() handles quotes'); 210 211 209 212 // * in the middle 210 213 $r->clearRoutes();