This caused the installer to fail on a webhost that was using Windows. Changing $IP to dirname(__DIR__) or dirname(dirname(__FILE__)) worked.
Version: 1.20.x
Patch:
- https://gerrit.wikimedia.org/r/#/c/44832/5 (merged, released in 1.21.0)
- rMWe4ff0c756751: Bug 44157 - The return value of realpath should be tested