Development

Changeset 6664

You must first sign up to be able to contribute.

Changeset 6664

Show
Ignore:
Timestamp:
12/21/07 08:47:59 (1 year ago)
Author:
dwhittle
Message:

dwhittle: merged 1.0 changes to branch

Files:

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. 
     1Version 1.0.11PRE 
     2------------- 
     3 
     4This is a bug fix release. 
     5 
     6Version 1.0.10 
     7------------- 
     8 
     9This 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 
    522 
    623Version 1.0.9 
  • branches/dwhittle/1.0/data/tasks/sfPakeSymfony.php

    r6598 r6664  
    1818{ 
    1919  // 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')) 
    2121  { 
    2222    throw new Exception('You can only freeze when lib/symfony is empty.'); 
    2323  } 
    2424 
    25   if (is_readable('data/symfony')) 
     25  if (is_readable(sfConfig::get('sf_data_dir').'/symfony')) 
    2626  { 
    2727    throw new Exception('You can only freeze when data/symfony is empty.'); 
    2828  } 
    2929 
    30   if (is_readable('web/sf')) 
     30  if (is_readable(sfConfig::get('sf_web_dir').'/sf')) 
    3131  { 
    3232    throw new Exception('You can only freeze when web/sf is empty.'); 
    3333  } 
    3434 
    35   if (is_link('web/sf')) 
     35  if (is_link(sfConfig::get('sf_web_dir').'/sf')) 
    3636  { 
    37     pake_remove('web/sf', ''); 
     37    pake_remove(sfConfig::get('sf_web_dir').'/sf', ''); 
    3838  } 
    3939 
     
    4444  pake_echo_action('freeze', 'freezing data found in "'.$symfony_data_dir.'"'); 
    4545 
    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'); 
    4848 
    4949  $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'); 
    5252 
    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'); 
    5454 
    5555  // change symfony paths in config/config.php 
     
    7373 
    7474  $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', ''); 
    7979  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', ''); 
    8282} 
    8383 
  • branches/dwhittle/1.0/lib/VERSION

    r6598 r6664  
    1 1.0.10-PRE 
     11.0.11-PRE 
  • branches/dwhittle/1.0/lib/action/sfAction.class.php

    r6598 r6664  
    3636 
    3737    // 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    } 
    3942 
    4043    return true; 
  • branches/dwhittle/1.0/lib/controller/sfFrontWebController.class.php

    r6598 r6664  
    6767      { 
    6868        // wrap non symfony exceptions 
    69         $sfException = new sfException(); 
     69        $sfException = new sfException($e->getMessage()); 
    7070        $sfException->printStackTrace($e); 
    7171      } 
  • branches/dwhittle/1.0/lib/controller/sfRouting.class.php

    r6598 r6664  
    581581              $found .= $pass[$i].'='.$pass[$i + 1].'&'; 
    582582            } 
     583 
    583584            parse_str($found, $pass); 
     585 
     586            if (get_magic_quotes_gpc()) 
     587            { 
     588              $pass = sfToolkit::stripslashesDeep((array) $pass); 
     589            } 
     590             
    584591            foreach ($pass as $key => $value) 
    585592            { 
  • branches/dwhittle/1.0/lib/filter/sfRenderingFilter.class.php

    r6598 r6664  
    4242 
    4343    // send headers 
    44     $response->sendHttpHeaders(); 
     44    if (method_exists($response, 'sendHttpHeaders')) 
     45    { 
     46      $response->sendHttpHeaders(); 
     47    } 
    4548 
    4649    // send content 
  • branches/dwhittle/1.0/lib/response/sfWebResponse.class.php

    r6598 r6664  
    434434      $value = $this->getContentType(); 
    435435    } 
    436  
    437     if (!$replace) 
     436    else if (!$replace) 
    438437    { 
    439438      $current = $this->getParameter($key, '', 'helper/asset/auto/httpmeta'); 
  • branches/dwhittle/1.0/test/unit/controller/sfRoutingTest.php

    r6598 r6664  
    1111require_once(dirname(__FILE__).'/../../bootstrap/unit.php'); 
    1212 
    13 $t = new lime_test(68, new lime_output_color()); 
     13$t = new lime_test(69, new lime_output_color()); 
    1414 
    1515// public methods 
     
    207207$t->is($r->generate('', $params), $url, '->generate() takes the first matching route but takes * into accounts'); 
    208208 
     209$t->is($r->parse('/default/index/foo/bar\'123'), array('module' => 'default', 'action' => 'index', 'foo' => 'bar\'123'), '->parse() handles quotes'); 
     210 
     211 
    209212// * in the middle 
    210213$r->clearRoutes();