@@ -722,11 +722,11 @@ protected function getRawObject($offset=0, $data=null) {
722
722
$ objtype = '' ; // object type to be returned
723
723
$ objval = '' ; // object value to be returned
724
724
// skip initial white space chars: \x00 null (NUL), \x09 horizontal tab (HT), \x0A line feed (LF), \x0C form feed (FF), \x0D carriage return (CR), \x20 space (SP)
725
- while (strspn ($ data{ $ offset} , "\x00\x09\x0a\x0c\x0d\x20" ) == 1 ) {
725
+ while (strspn ($ data[ $ offset] , "\x00\x09\x0a\x0c\x0d\x20" ) == 1 ) {
726
726
$ offset ++;
727
727
}
728
728
// get first char
729
- $ char = $ data{ $ offset} ;
729
+ $ char = $ data[ $ offset] ;
730
730
// get object type
731
731
switch ($ char ) {
732
732
case '% ' : { // \x25 PERCENT SIGN
@@ -757,10 +757,10 @@ protected function getRawObject($offset=0, $data=null) {
757
757
if ($ char == '( ' ) {
758
758
$ open_bracket = 1 ;
759
759
while ($ open_bracket > 0 ) {
760
- if (!isset ($ data{ $ strpos} )) {
760
+ if (!isset ($ data[ $ strpos] )) {
761
761
break ;
762
762
}
763
- $ ch = $ data{ $ strpos} ;
763
+ $ ch = $ data[ $ strpos] ;
764
764
switch ($ ch ) {
765
765
case '\\' : { // REVERSE SOLIDUS (5Ch) (Backslash)
766
766
// skip next character
@@ -828,7 +828,7 @@ protected function getRawObject($offset=0, $data=null) {
828
828
break ;
829
829
}
830
830
default : {
831
- $ frag = $ data{ $ offset} . @$ data{ $ offset +1 } . @$ data{ $ offset +2 } . @$ data{ $ offset +3 } ;
831
+ $ frag = $ data[ $ offset] . @$ data[ $ offset +1 ] . @$ data[ $ offset +2 ] . @$ data[ $ offset +3 ] ;
832
832
switch ($ frag ) {
833
833
case 'endo ' :
834
834
// indirect object
@@ -905,16 +905,16 @@ private function getDictValue($offset, &$data) {
905
905
$ dict = '' ;
906
906
$ offset += 2 ;
907
907
do {
908
- if ($ data{ $ offset} == '> ' && $ data{ $ offset +1 } == '> ' ) {
908
+ if ($ data[ $ offset] == '> ' && $ data[ $ offset +1 ] == '> ' ) {
909
909
$ i --;
910
910
$ dict .= '>> ' ;
911
911
$ offset += 2 ;
912
- } else if ($ data{ $ offset} == '< ' && $ data{ $ offset +1 } == '< ' ) {
912
+ } else if ($ data[ $ offset] == '< ' && $ data[ $ offset +1 ] == '< ' ) {
913
913
$ i ++;
914
914
$ dict .= '<< ' ;
915
915
$ offset += 2 ;
916
916
} else {
917
- $ dict .= $ data{ $ offset} ;
917
+ $ dict .= $ data[ $ offset] ;
918
918
$ offset ++;
919
919
}
920
920
} while ($ i >0 );
0 commit comments