I’m writing a PHP extension. I’m calling a CPP function from PHP, which executes this line:
SharedPtrSystem::Drawing::Bitmap bmp = _slide->GetThumbnail(scaleX, scaleY);
It runs fine when I call it from CLI (e.g.: php test.php)
But when running under Apache, the above code throws this exception:
boost::filesystem::status: Permission denied: “/root/.fonts”"
I’m not trying to access /root/ at all and like I said, the same code works in the CLI… so this is strange.
Any ideas about what could be wrong?
Thanks in advance