Revert "Work around to handle the PHP-native stream wrappers."

This reverts commit 54401f71e0d736b02e38dd8ad03c5d6bf9f58690.