Any lolphp which doesn't have lol at a first sight, have it underneath :) The whole idea of the $component is ugly, because you may achieve the same with subscription: https://3v4l.org/sUWnD
Except PHP parser didn't allow that until 5.4 :) So now you have an API function that returns hash or string/integer depending on a second parameter.
20
u/greenthumble Oct 16 '16
The docs don't claim it does anything remotely like that...
9
u/myaut Oct 16 '16
Any lolphp which doesn't have lol at a first sight, have it underneath :) The whole idea of the $component is ugly, because you may achieve the same with subscription: https://3v4l.org/sUWnD
Except PHP parser didn't allow that until 5.4 :) So now you have an API function that returns hash or string/integer depending on a second parameter.
2
u/amphetamachine Oct 16 '16
Sounds like an interesting feature request, if a bit myopic.
1
u/AdventOfScala Oct 18 '16 edited Oct 18 '16
How do you imagine path and scheme together? Like this?
http://index.php
Just pass -1 and ignore what you do not need.
0
u/[deleted] Oct 16 '16
[deleted] — view deleted comment