You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to unlink() the source file after extraction #9
@Sybio
I was unable to delete the source file after extraction. I was getting permission error and that only occur when i use $gifExtract->extract($rawSource);
So i found out it was a permission issue. So i tried
@chmod($rawSource, 465);
@unlink($rawSource);
But what if the code is running on a shared host with chmod restriction.
So I look into the GifFrameExtractor.php file and I found out the file wasn't closed after processing.
So I made a slit tweak by adding $this->closeFile(); and it fix the problem.
Activity