~ubuntu-branches/ubuntu/edgy/smarty/edgy-security

« back to all changes in this revision

Viewing changes to libs/Config_File.class.php

  • Committer: Bazaar Package Importer
  • Author(s): Dimitri Fontaine
  • Date: 2005-03-29 11:53:20 UTC
  • mfrom: (0.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050329115320-g3rvndgnn75ogm35
Tags: 2.6.8-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
19
 *
20
20
 * @link http://smarty.php.net/
21
 
 * @version 2.6.2
22
 
 * @copyright Copyright: 2001-2004 ispi of Lincoln, Inc.
 
21
 * @version 2.6.8
 
22
 * @copyright Copyright: 2001-2005 New Digital Group, Inc.
23
23
 * @author Andrei Zmievski <andrei@php.net>
24
24
 * @access public
25
25
 * @package Smarty
26
26
 */
27
27
 
28
 
/* $Id: Config_File.class.php,v 1.68 2004/02/17 15:52:02 mohrt Exp $ */
 
28
/* $Id: Config_File.class.php,v 1.77 2005/02/03 15:14:43 mohrt Exp $ */
29
29
 
30
30
/**
31
31
 * Config file reading class
240
240
            return false;
241
241
        }
242
242
 
243
 
        $contents = fread($fp, filesize($config_file));
 
243
        $contents = ($size = filesize($config_file)) ? fread($fp, $size) : '';
244
244
        fclose($fp);
245
245
 
246
246
        $this->_config_data[$config_file] = $this->parse_contents($contents);