File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ public static function decodeFilterLZWDecode($data) {
279279 // convert string to binary string
280280 $ bitstring = '' ;
281281 for ($ i = 0 ; $ i < $ data_length ; ++$ i ) {
282- $ bitstring .= sprintf ('%08b ' , ord ($ data{ $ i } ));
282+ $ bitstring .= sprintf ('%08b ' , ord ($ data[ $ i ] ));
283283 }
284284 // get the number of bits
285285 $ data_length = strlen ($ bitstring );
@@ -376,7 +376,7 @@ public static function decodeFilterRunLengthDecode($data) {
376376 $ i = 0 ;
377377 while ($ i < $ data_length ) {
378378 // get current byte value
379- $ byte = ord($ data{ $ i } );
379+ $ byte = ord ($ data[ $ i ] );
380380 if ($ byte == 128 ) {
381381 // a length value of 128 denote EOD
382382 break ;
Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ public static function _parsepng($file) {
315315 if ($ n > 0 ) {
316316 $ trns = array ();
317317 for ($ i = 0 ; $ i < $ n ; ++ $ i ) {
318- $ trns [] = ord ($ t{ $ i } );
318+ $ trns [] = ord ($ t[ $ i ] );
319319 }
320320 }
321321 }
Original file line number Diff line number Diff line change @@ -531,10 +531,10 @@ protected function getRawObject($offset=0) {
531531 if ($ char == '( ' ) {
532532 $ open_bracket = 1 ;
533533 while ($ open_bracket > 0 ) {
534- if (!isset ($ this ->pdfdata { $ strpos} )) {
534+ if (!isset ($ this ->pdfdata [ $ strpos] )) {
535535 break ;
536536 }
537- $ ch = $ this ->pdfdata { $ strpos} ;
537+ $ ch = $ this ->pdfdata [ $ strpos] ;
538538 switch ($ ch ) {
539539 case '\\' : { // REVERSE SOLIDUS (5Ch) (Backslash)
540540 // skip next character
You can’t perform that action at this time.
0 commit comments