Пример #1
0
 /**
  * Enable/disable strict parsing.
  *
  * If strict parsing is enabled, then most errors while loading
  * images will result in exceptions being thrown. Otherwise a
  * warning will be emitted (using {@link Pel::warning}) and the
  * exceptions will be stored for later use via {@link
  * getExceptions()}.
  *
  * Some errors will still be fatal and result in thrown exceptions,
  * but an effort will be made to skip over as much garbage as
  * possible.
  *
  * @param boolean $flag
  *            use true to enable strict parsing, false to
  *            diable.
  */
 public static function setStrictParsing($flag)
 {
     self::$strict = $flag;
 }
Пример #2
0
 /**
  * Enable/disable strict parsing.
  *
  * If strict parsing is enabled, then most errors while loading
  * images will result in exceptions being thrown.  Otherwise a
  * warning will be emitted (using {@link Pel::warning}) and the
  * exceptions will be stored for later use via {@link
  * getExceptions()}.
  *
  * Some errors will still be fatal and result in thrown exceptions,
  * but an effort will be made to skip over as much garbage as
  * possible.
  *
  * @param boolean $flag use true to enable strict parsing, false to
  * diable.
  */
 function setStrictParsing($flag)
 {
     self::$strict = $flag;
 }