Changeset 139
- Timestamp:
- 07/09/08 15:56:26 (5 months ago)
- Files:
-
- branches/PRE_NAMESPACES/XJConf/DefinitionParser.php (modified) (2 diffs)
- branches/PRE_NAMESPACES/XJConf/XmlParser.php (modified) (3 diffs)
- branches/PRE_NAMESPACES/build.php (modified) (1 diff)
- branches/PRE_NAMESPACES/package.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/PRE_NAMESPACES/XJConf/DefinitionParser.php
r131 r139 16 16 'definitions::TagDefinition', 17 17 'definitions::handler::DefinitionHandlerFactory', 18 'exceptions::InvalidNamespaceDefinitionException' 18 'exceptions::InvalidNamespaceDefinitionException', 19 'exceptions::XJConfException' 19 20 ); 20 21 /** … … 188 189 { 189 190 $this->initParser(); 190 $this->reader->open($filename); 191 if (@$this->reader->open($filename) === false) { 192 throw new XJConfException('Can not open file ' . $filename); 193 } 194 191 195 while ($this->reader->read()) { 192 196 switch ($this->reader->nodeType) { branches/PRE_NAMESPACES/XJConf/XmlParser.php
r137 r139 11 11 'definitions::NamespaceDefinitions', 12 12 'exceptions::UnknownNamespaceException', 13 'exceptions::UnknownTagException' 13 'exceptions::UnknownTagException', 14 'exceptions::XJConfException' 14 15 ); 15 16 /** … … 137 138 * parses a given file and creates the data structure described in this file 138 139 * 139 * @param string $filename 140 * @param string $filename 141 * @throws XJConfException 140 142 */ 141 143 public function parse($filename) … … 143 145 $reader = $this->initParser(); 144 146 array_push($this->openFiles, $filename); 145 $reader->open($filename); 147 if (@$reader->open($filename) === false) { 148 throw new XJConfException('Can not open file ' . $filename); 149 } 150 146 151 while ($reader->read()) { 147 152 switch ($reader->nodeType) { branches/PRE_NAMESPACES/build.php
r131 r139 17 17 $starArchive->addMetaData('version', '0.3.0dev'); 18 18 $starArchive->addMetaData('author', 'XJConf Development Team <http://php.xjconf.net>'); 19 $starArchive->addMetaData('copyright', ' ©2007-2008 XJConf Development Team');19 $starArchive->addMetaData('copyright', '(c) 2007-2008 XJConf Development Team'); 20 20 $starArchive->create(); 21 21 ?> branches/PRE_NAMESPACES/package.php
r137 r139 46 46 - added support for octal numbers (mikey) 47 47 - added XmlParser::clearConfigValues() (mikey) 48 - bugfix: throw exception if opening of xml files fails (mikey) 48 49 EOT; 49 50
