I have a php app deployed on appengine it depends on fuel/mail, which itself depends on guzzle/guzzle. When, I try to attach and send file with an e-mail, it fails because of is_readable returning false on file that actually exists and is readable. Here is how to replicate things:
//done in my app following recomendation on appengine documentation page
$dir = sys_get_temp_dir();
$tmp = tempnam($dir, 'foo.txt');
echo $tmp; // => "vfs://root/temp/foo.txt581fd3e4e1ca86.63583518"
file_put_contents($tmp, 'hello');
//just to check
echo 'file content : '.file_get_contents($tmp); // => "file content : hello"
//done in guzzle/guzzle
echo('file is readable : '.(is_readable($tmp)?'true':'false')); // => "file is readable : false"
As is_readable returns false, the whole thing fails. Note, that it is working on an apache/php deployment.
So, am I doing something wrong? Is app engine environment behaving not as it should? Is guzzle not using is_readable properly? If the issue does not come from me, any workaround while waiting for a fix?