@@ -255,7 +255,7 @@ function __construct($srcenc = null, $mode = 'event', $tgtenc = null)
255
255
function setMode ($ mode )
256
256
{
257
257
if ($ mode != 'func ' && $ mode != 'event ' ) {
258
- $ this ->raiseError ('Unsupported mode given ' ,
258
+ $ this ->raiseError ('Unsupported mode given ' ,
259
259
XML_PARSER_ERROR_UNSUPPORTED_MODE );
260
260
}
261
261
@@ -313,7 +313,7 @@ function _initHandlers()
313
313
xml_set_element_handler ($ this ->parser , 'startHandler ' , 'endHandler ' );
314
314
break ;
315
315
default :
316
- return $ this ->raiseError ('Unsupported mode given ' ,
316
+ return $ this ->raiseError ('Unsupported mode given ' ,
317
317
XML_PARSER_ERROR_UNSUPPORTED_MODE );
318
318
break ;
319
319
}
@@ -355,10 +355,10 @@ function _create()
355
355
}
356
356
if (is_resource ($ xp )) {
357
357
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 ,
359
359
$ this ->tgtenc )
360
360
) {
361
- return $ this ->raiseError ('invalid target encoding ' ,
361
+ return $ this ->raiseError ('invalid target encoding ' ,
362
362
XML_PARSER_ERROR_INVALID_ENCODING );
363
363
}
364
364
}
@@ -371,10 +371,10 @@ function _create()
371
371
return true ;
372
372
}
373
373
if (!in_array (strtoupper ($ this ->srcenc ), $ this ->_validEncodings )) {
374
- return $ this ->raiseError ('invalid source encoding ' ,
374
+ return $ this ->raiseError ('invalid source encoding ' ,
375
375
XML_PARSER_ERROR_INVALID_ENCODING );
376
376
}
377
- return $ this ->raiseError ('Unable to create XML parser resource. ' ,
377
+ return $ this ->raiseError ('Unable to create XML parser resource. ' ,
378
378
XML_PARSER_ERROR_NO_RESOURCE );
379
379
}
380
380
@@ -430,7 +430,7 @@ function setInputFile($file)
430
430
$ this ->fp = $ fp ;
431
431
return $ fp ;
432
432
}
433
- return $ this ->raiseError ('File could not be opened. ' ,
433
+ return $ this ->raiseError ('File could not be opened. ' ,
434
434
XML_PARSER_ERROR_FILE_NOT_READABLE );
435
435
}
436
436
@@ -486,7 +486,7 @@ function setInput($fp)
486
486
return true ;
487
487
}
488
488
489
- return $ this ->raiseError ('Illegal input format ' ,
489
+ return $ this ->raiseError ('Illegal input format ' ,
490
490
XML_PARSER_ERROR_INVALID_INPUT );
491
491
}
492
492
@@ -555,7 +555,7 @@ function _parseString($data, $eof = false)
555
555
* Parses a string.
556
556
*
557
557
* @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
559
559
* of data sent in this parser
560
560
*
561
561
* @return bool|PEAR_Error true on success or a PEAR Error
0 commit comments