PHPOffice / PHPExcel

ARCHIVED
Other
11.46k stars 4.2k forks source link

is_readable() fails when reading file on a mapped network drive #1321

Open jdhoward5 opened 6 years ago

jdhoward5 commented 6 years ago

This issue is in PHPExcel/Shared/OLERead.php -- the is_readable function check that throws a PHPExcel_Reader_Exception is failing on a mapped network drive, probably due to the way PHP handles the is_readable function under the hood. The server the map points to has significant read/write security, so I believe this is why it's failing. The PHP server maps the network drive with a user that has R/W permissions however in my cursory reading of the is_readable docs I believe it may be trying to read the file differently somehow (???) not sure on this one.

Anyway, I fixed this in my own system by simply removing this error check, but it's an issue that perhaps could use some examination.

Both servers are IIS.