@@ -216,7 +216,7 @@ public function __get($name) {
216216 $ return = null ;
217217 }
218218
219- if ($ return === null && isset ($ this ->normalization [$ this ->scheme ][$ name ])) {
219+ if ($ return === null && isset ($ this ->scheme , $ this -> normalization [$ this ->scheme ][$ name ])) {
220220 return $ this ->normalization [$ this ->scheme ][$ name ];
221221 }
222222 else {
@@ -671,27 +671,29 @@ protected function remove_iunreserved_percent_encoded($regex_match) {
671671 }
672672
673673 protected function scheme_normalization () {
674- if (isset ($ this ->normalization [$ this ->scheme ]['iuserinfo ' ]) && $ this ->iuserinfo === $ this ->normalization [$ this ->scheme ]['iuserinfo ' ]) {
675- $ this ->iuserinfo = null ;
676- }
677- if (isset ($ this ->normalization [$ this ->scheme ]['ihost ' ]) && $ this ->ihost === $ this ->normalization [$ this ->scheme ]['ihost ' ]) {
678- $ this ->ihost = null ;
679- }
680- if (isset ($ this ->normalization [$ this ->scheme ]['port ' ]) && $ this ->port === $ this ->normalization [$ this ->scheme ]['port ' ]) {
681- $ this ->port = null ;
682- }
683- if (isset ($ this ->normalization [$ this ->scheme ]['ipath ' ]) && $ this ->ipath === $ this ->normalization [$ this ->scheme ]['ipath ' ]) {
684- $ this ->ipath = '' ;
674+ if (isset ($ this ->scheme , $ this ->normalization [$ this ->scheme ])) {
675+ if (isset ($ this ->normalization [$ this ->scheme ]['iuserinfo ' ]) && $ this ->iuserinfo === $ this ->normalization [$ this ->scheme ]['iuserinfo ' ]) {
676+ $ this ->iuserinfo = null ;
677+ }
678+ if (isset ($ this ->normalization [$ this ->scheme ]['ihost ' ]) && $ this ->ihost === $ this ->normalization [$ this ->scheme ]['ihost ' ]) {
679+ $ this ->ihost = null ;
680+ }
681+ if (isset ($ this ->normalization [$ this ->scheme ]['port ' ]) && $ this ->port === $ this ->normalization [$ this ->scheme ]['port ' ]) {
682+ $ this ->port = null ;
683+ }
684+ if (isset ($ this ->normalization [$ this ->scheme ]['ipath ' ]) && $ this ->ipath === $ this ->normalization [$ this ->scheme ]['ipath ' ]) {
685+ $ this ->ipath = '' ;
686+ }
687+ if (isset ($ this ->normalization [$ this ->scheme ]['iquery ' ]) && $ this ->iquery === $ this ->normalization [$ this ->scheme ]['iquery ' ]) {
688+ $ this ->iquery = null ;
689+ }
690+ if (isset ($ this ->normalization [$ this ->scheme ]['ifragment ' ]) && $ this ->ifragment === $ this ->normalization [$ this ->scheme ]['ifragment ' ]) {
691+ $ this ->ifragment = null ;
692+ }
685693 }
686694 if (isset ($ this ->ihost ) && empty ($ this ->ipath )) {
687695 $ this ->ipath = '/ ' ;
688696 }
689- if (isset ($ this ->normalization [$ this ->scheme ]['iquery ' ]) && $ this ->iquery === $ this ->normalization [$ this ->scheme ]['iquery ' ]) {
690- $ this ->iquery = null ;
691- }
692- if (isset ($ this ->normalization [$ this ->scheme ]['ifragment ' ]) && $ this ->ifragment === $ this ->normalization [$ this ->scheme ]['ifragment ' ]) {
693- $ this ->ifragment = null ;
694- }
695697 }
696698
697699 /**
0 commit comments