class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
Yes, the same fix has to be applied to isWriteable().
The strange thing is that I don't have the problem with my version of PHP5, which is 5.1.2. I was damn sure that I tested the class on PHP4 and 5! So maybe it is a PHP behaviour prior to 5.1.2
In any case, it is not right to define a static function within a class method, so I will change it. Let alone that both functions are used only once.
Can you update your version of PHP?
Which further problems the fix led to when you tried it?Reply
The strange thing is that I don't have the problem with my version of PHP5, which is 5.1.2. I was damn sure that I tested the class on PHP4 and 5!
So maybe it is a PHP behaviour prior to 5.1.2
In any case, it is not right to define a static function within a class method, so I will change it. Let alone that both functions are used only once.
Can you update your version of PHP?
Which further problems the fix led to when you tried it?