Development

Changeset 9263

You must first sign up to be able to contribute.

Changeset 9263

Show
Ignore:
Timestamp:
05/26/08 12:57:53 (3 months ago)
Author:
FabianLange
Message:

1.0: removed obsolete reference to exceptions with error messages. fixes #3494

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/data/data/exception.php

    r6120 r9263  
    3535  <h1>[<?php echo $name ?>]</h1> 
    3636  <h2 id="message"><?php echo $message ?></h2> 
    37   <?php if ($error_reference): ?> 
    38     <p class="error"><a href='http://www.symfony-project.org/errors/<?php echo $error_reference ?>'>learn more about this issue</a></p> 
    39   <?php endif; ?> 
    4037  <h2>stack trace</h2> 
    4138  <ul><li><?php echo implode('</li><li>', $traces) ?></li></ul> 
  • branches/1.0/lib/config/sfPhpConfigHandler.class.php

    r8861 r9263  
    5353        if (!array_key_exists($key, $configs)) 
    5454        { 
    55           $error = sprintf('Configuration file "%s" specifies key "%s" which is not a php.ini directive', $configFiles[0], $key); 
     55          $error = sprintf('Configuration file "%s" specifies key "%s" which is not a php.ini directive.', $configFiles[0], $key); 
    5656          throw new sfParseException($error); 
    5757        } 
     
    6161        if ($configs[$key]['access'] != 7 && $configs[$key]['access'] != 63) 
    6262        { 
    63           $error = sprintf('Configuration file "%s" specifies key "%s" which cannot be overrided', $configFiles[0], $key); 
     63          $error = sprintf('Configuration file "%s" specifies key "%s" which cannot be overrided.', $configFiles[0], $key); 
    6464          throw new sfParseException($error); 
    6565        } 
     
    8282        if (!array_key_exists($key, $configs)) 
    8383        { 
    84           $error = sprintf('Configuration file "%s" specifies key "%s" which is not a php.ini directive [err0002]', $configFiles[0], $key); 
     84          $error = sprintf('Configuration file "%s" specifies key "%s" which is not a php.ini directive.', $configFiles[0], $key); 
    8585          throw new sfParseException($error); 
    8686        } 
     
    8888        if (ini_get($key) != $value) 
    8989        { 
    90           $error = sprintf('Configuration file "%s" specifies that php.ini "%s" key must be set to "%s". The current value is "%s" (%s). [err0001]', $configFiles[0], $key, var_export($value, true), var_export(ini_get($key), true), $this->get_ini_path()); 
     90          $error = sprintf('Configuration file "%s" specifies that php.ini "%s" key must be set to "%s". The current value is "%s" (%s).', $configFiles[0], $key, var_export($value, true), var_export(ini_get($key), true), $this->get_ini_path()); 
    9191          throw new sfInitializationException($error); 
    9292        } 
     
    104104        if (!array_key_exists($key, $configs)) 
    105105        { 
    106           $error = sprintf('Configuration file "%s" specifies key "%s" which is not a php.ini directive [err0002]', $configFiles[0], $key); 
     106          $error = sprintf('Configuration file "%s" specifies key "%s" which is not a php.ini directive.', $configFiles[0], $key); 
    107107          throw new sfParseException($error); 
    108108        } 
    109109 
    110         $warning = sprintf('{sfPhpConfigHandler} php.ini "%s" key is better set to "%s" (current value is "%s" - %s)', $key, var_export($value, true), var_export(ini_get($key), true), $this->get_ini_path()); 
     110        $warning = sprintf('{sfPhpConfigHandler} php.ini "%s" key is better set to "%s" (current value is "%s" - %s).', $key, var_export($value, true), var_export(ini_get($key), true), $this->get_ini_path()); 
    111111        $data[] = sprintf("if (ini_get('%s') != %s)\n{\n  sfLogger::getInstance()->warning('%s');\n}\n", $key, var_export($value, true), str_replace("'", "\\'", $warning)); 
    112112      } 
     
    120120        if (!extension_loaded($extension_name)) 
    121121        { 
    122           $error = sprintf('Configuration file "%s" specifies that the PHP extension "%s" should be loaded. (%s)', $configFiles[0], $extension_name, $this->get_ini_path()); 
     122          $error = sprintf('Configuration file "%s" specifies that the PHP extension "%s" should be loaded. (%s).', $configFiles[0], $extension_name, $this->get_ini_path()); 
    123123          throw new sfInitializationException($error); 
    124124        } 
  • branches/1.0/lib/util/sfCore.class.php

    r6806 r9263  
    204204        if (count($trace) < 1 || ($trace[1]['function'] != 'class_exists' && $trace[1]['function'] != 'is_a')) 
    205205        { 
    206           $error = sprintf('Autoloading of class "%s" failed. Try to clear the symfony cache and refresh. [err0003]', $class); 
     206          $error = sprintf('Autoloading of class "%s" failed. Try to clear the symfony cache and refresh.', $class); 
    207207          $e = new sfAutoloadException($error); 
    208208