@@ -214,7 +214,7 @@ public function __get($name) {
214214 $ return = null ;
215215 }
216216
217- if ($ return === null && isset ($ this ->normalization [$ this ->scheme ][$ name ])) {
217+ if ($ return === null && isset ($ this ->scheme , $ this -> normalization [$ this ->scheme ][$ name ])) {
218218 return $ this ->normalization [$ this ->scheme ][$ name ];
219219 }
220220 else {
@@ -669,27 +669,29 @@ protected function remove_iunreserved_percent_encoded($regex_match) {
669669 }
670670
671671 protected function scheme_normalization () {
672- if (isset ($ this ->normalization [$ this ->scheme ]['iuserinfo ' ]) && $ this ->iuserinfo === $ this ->normalization [$ this ->scheme ]['iuserinfo ' ]) {
673- $ this ->iuserinfo = null ;
674- }
675- if (isset ($ this ->normalization [$ this ->scheme ]['ihost ' ]) && $ this ->ihost === $ this ->normalization [$ this ->scheme ]['ihost ' ]) {
676- $ this ->ihost = null ;
677- }
678- if (isset ($ this ->normalization [$ this ->scheme ]['port ' ]) && $ this ->port === $ this ->normalization [$ this ->scheme ]['port ' ]) {
679- $ this ->port = null ;
680- }
681- if (isset ($ this ->normalization [$ this ->scheme ]['ipath ' ]) && $ this ->ipath === $ this ->normalization [$ this ->scheme ]['ipath ' ]) {
682- $ this ->ipath = '' ;
672+ if (isset ($ this ->scheme , $ this ->normalization [$ this ->scheme ])) {
673+ if (isset ($ this ->normalization [$ this ->scheme ]['iuserinfo ' ]) && $ this ->iuserinfo === $ this ->normalization [$ this ->scheme ]['iuserinfo ' ]) {
674+ $ this ->iuserinfo = null ;
675+ }
676+ if (isset ($ this ->normalization [$ this ->scheme ]['ihost ' ]) && $ this ->ihost === $ this ->normalization [$ this ->scheme ]['ihost ' ]) {
677+ $ this ->ihost = null ;
678+ }
679+ if (isset ($ this ->normalization [$ this ->scheme ]['port ' ]) && $ this ->port === $ this ->normalization [$ this ->scheme ]['port ' ]) {
680+ $ this ->port = null ;
681+ }
682+ if (isset ($ this ->normalization [$ this ->scheme ]['ipath ' ]) && $ this ->ipath === $ this ->normalization [$ this ->scheme ]['ipath ' ]) {
683+ $ this ->ipath = '' ;
684+ }
685+ if (isset ($ this ->normalization [$ this ->scheme ]['iquery ' ]) && $ this ->iquery === $ this ->normalization [$ this ->scheme ]['iquery ' ]) {
686+ $ this ->iquery = null ;
687+ }
688+ if (isset ($ this ->normalization [$ this ->scheme ]['ifragment ' ]) && $ this ->ifragment === $ this ->normalization [$ this ->scheme ]['ifragment ' ]) {
689+ $ this ->ifragment = null ;
690+ }
683691 }
684692 if (isset ($ this ->ihost ) && empty ($ this ->ipath )) {
685693 $ this ->ipath = '/ ' ;
686694 }
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- }
693695 }
694696
695697 /**
0 commit comments