In the process of migrating a large number of files to a large PHP application from local and remote storage. File operations are switched using PHP wrappers as an intermediate solution, so that we can easily modify calls such as fopen('/local/file/path') - fopen('scheme://remote/file/path') .
So far, I have encountered only one feature that has been violated by this, it is the GD image library (its methods of writing files, such as imagejpeg, imagegif and imagepng, will not be written to file streams).
In addition, PHP's security settings prevent include() and require() invoking URLs.
I tried to find a list of known incompatibilities, but cannot find it.
I already have some workarounds, so I am here and we will conduct extensive testing, but I would like to know in advance about any pains, if before someone went through the same process.
In particular, we use PHP 5.3.6 on Debian Squeeze.
source share