Changeset 9263
- Timestamp:
- 05/26/08 12:57:53 (3 months ago)
- Files:
-
- branches/1.0/data/data/exception.php (modified) (1 diff)
- branches/1.0/lib/config/sfPhpConfigHandler.class.php (modified) (6 diffs)
- branches/1.0/lib/util/sfCore.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0/data/data/exception.php
r6120 r9263 35 35 <h1>[<?php echo $name ?>]</h1> 36 36 <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; ?>40 37 <h2>stack trace</h2> 41 38 <ul><li><?php echo implode('</li><li>', $traces) ?></li></ul> branches/1.0/lib/config/sfPhpConfigHandler.class.php
r8861 r9263 53 53 if (!array_key_exists($key, $configs)) 54 54 { 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); 56 56 throw new sfParseException($error); 57 57 } … … 61 61 if ($configs[$key]['access'] != 7 && $configs[$key]['access'] != 63) 62 62 { 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); 64 64 throw new sfParseException($error); 65 65 } … … 82 82 if (!array_key_exists($key, $configs)) 83 83 { 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); 85 85 throw new sfParseException($error); 86 86 } … … 88 88 if (ini_get($key) != $value) 89 89 { 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()); 91 91 throw new sfInitializationException($error); 92 92 } … … 104 104 if (!array_key_exists($key, $configs)) 105 105 { 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); 107 107 throw new sfParseException($error); 108 108 } 109 109 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()); 111 111 $data[] = sprintf("if (ini_get('%s') != %s)\n{\n sfLogger::getInstance()->warning('%s');\n}\n", $key, var_export($value, true), str_replace("'", "\\'", $warning)); 112 112 } … … 120 120 if (!extension_loaded($extension_name)) 121 121 { 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()); 123 123 throw new sfInitializationException($error); 124 124 } branches/1.0/lib/util/sfCore.class.php
r6806 r9263 204 204 if (count($trace) < 1 || ($trace[1]['function'] != 'class_exists' && $trace[1]['function'] != 'is_a')) 205 205 { 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); 207 207 $e = new sfAutoloadException($error); 208 208