@@ -255,7 +255,7 @@ function __construct($srcenc = null, $mode = 'event', $tgtenc = null)
255255 function setMode ($ mode )
256256 {
257257 if ($ mode != 'func ' && $ mode != 'event ' ) {
258- $ this ->raiseError ('Unsupported mode given ' ,
258+ $ this ->raiseError ('Unsupported mode given ' ,
259259 XML_PARSER_ERROR_UNSUPPORTED_MODE );
260260 }
261261
@@ -313,7 +313,7 @@ function _initHandlers()
313313 xml_set_element_handler ($ this ->parser , 'startHandler ' , 'endHandler ' );
314314 break ;
315315 default :
316- return $ this ->raiseError ('Unsupported mode given ' ,
316+ return $ this ->raiseError ('Unsupported mode given ' ,
317317 XML_PARSER_ERROR_UNSUPPORTED_MODE );
318318 break ;
319319 }
@@ -355,10 +355,10 @@ function _create()
355355 }
356356 if (is_resource ($ xp )) {
357357 if ($ this ->tgtenc !== null ) {
358- if (!@xml_parser_set_option ($ xp , XML_OPTION_TARGET_ENCODING ,
358+ if (!@xml_parser_set_option ($ xp , XML_OPTION_TARGET_ENCODING ,
359359 $ this ->tgtenc )
360360 ) {
361- return $ this ->raiseError ('invalid target encoding ' ,
361+ return $ this ->raiseError ('invalid target encoding ' ,
362362 XML_PARSER_ERROR_INVALID_ENCODING );
363363 }
364364 }
@@ -371,10 +371,10 @@ function _create()
371371 return true ;
372372 }
373373 if (!in_array (strtoupper ($ this ->srcenc ), $ this ->_validEncodings )) {
374- return $ this ->raiseError ('invalid source encoding ' ,
374+ return $ this ->raiseError ('invalid source encoding ' ,
375375 XML_PARSER_ERROR_INVALID_ENCODING );
376376 }
377- return $ this ->raiseError ('Unable to create XML parser resource. ' ,
377+ return $ this ->raiseError ('Unable to create XML parser resource. ' ,
378378 XML_PARSER_ERROR_NO_RESOURCE );
379379 }
380380
@@ -430,7 +430,7 @@ function setInputFile($file)
430430 $ this ->fp = $ fp ;
431431 return $ fp ;
432432 }
433- return $ this ->raiseError ('File could not be opened. ' ,
433+ return $ this ->raiseError ('File could not be opened. ' ,
434434 XML_PARSER_ERROR_FILE_NOT_READABLE );
435435 }
436436
@@ -486,7 +486,7 @@ function setInput($fp)
486486 return true ;
487487 }
488488
489- return $ this ->raiseError ('Illegal input format ' ,
489+ return $ this ->raiseError ('Illegal input format ' ,
490490 XML_PARSER_ERROR_INVALID_INPUT );
491491 }
492492
@@ -555,7 +555,7 @@ function _parseString($data, $eof = false)
555555 * Parses a string.
556556 *
557557 * @param string $data XML data
558- * @param boolean $eof If set and TRUE, data is the last piece
558+ * @param boolean $eof If set and TRUE, data is the last piece
559559 * of data sent in this parser
560560 *
561561 * @return bool|PEAR_Error true on success or a PEAR Error
0 commit comments