[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] svn: /phd/trunk/ render.php
From: Daniel_Convissor <danielc () php ! net>
Date: 2009-10-30 20:53:27
Message-ID: svn-danielc-1256936007-290092-676214077 () svn ! php ! net
[Download RAW message or body]
danielc Fri, 30 Oct 2009 20:53:27 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=290092
Log:
use v() instead of exception if file does not exist.
Changed paths:
U phd/trunk/render.php
Modified: phd/trunk/render.php
===================================================================
--- phd/trunk/render.php 2009-10-30 20:41:42 UTC (rev 290091)
+++ phd/trunk/render.php 2009-10-30 20:53:27 UTC (rev 290092)
@@ -12,7 +12,7 @@
$file = __INSTALLDIR__ . DIRECTORY_SEPARATOR . str_replace(array('\\', '_'), '/', $name) . '.php';
// Using fopen() because it has use_include_path parameter.
if (!$fp = @fopen($file, 'r', true)) {
- throw new \Exception('Cannot find file for ' . $name . ': ' . $file);
+ v('Cannot find file for ' . $name . ': ' . $file, E_USER_ERROR);
}
fclose($fp);
require $file;
--
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic