Long time follower, first time poster
Sooo I started getting reports that no one can upload into Coppermine anymore.
I did some lookups and found http://bugs.php.net/bug.php?id=35071
Apparently the way safemode file handling is treated in 4.4.1 breaks imagejpeg()'s ability to create a file.
You can touch() the file, or move/copy/rename, etc. but you can't create it. They have acknowledged the bug and placed the fix into CVS.
Scott, is there a way you can compile the fix into yum so that us lowly un-compiling-if-its-not-a-release-we-don't-touch-it peeps can fix this issue?
Thanks
PS Snapdragon = WildRoseWeb
PHP 4.4.1 and GD / Coppermine / imagejpeg()
-
- Forum Regular
- Posts: 119
- Joined: Mon Nov 28, 2005 4:44 pm
-
- Forum Regular
- Posts: 119
- Joined: Mon Nov 28, 2005 4:44 pm
-
- Forum Regular
- Posts: 119
- Joined: Mon Nov 28, 2005 4:44 pm
-
- Forum Regular
- Posts: 119
- Joined: Mon Nov 28, 2005 4:44 pm
It's far from perfect but...
You can include the line
touch($filename);
before the relevant imagejpeg command. Obviously $filename must contain the correct filename, you'll have to code this in to your script.
You can find affected files by running the following in your htdocs directory:
grep -i --include *.php -r imagejpeg * > imagejpeg.txt &
It will make a list in the file imagejpeg.txt
You can include the line
touch($filename);
before the relevant imagejpeg command. Obviously $filename must contain the correct filename, you'll have to code this in to your script.
You can find affected files by running the following in your htdocs directory:
grep -i --include *.php -r imagejpeg * > imagejpeg.txt &
It will make a list in the file imagejpeg.txt
-
- Forum Regular
- Posts: 119
- Joined: Mon Nov 28, 2005 4:44 pm