Non-static method upload::isReadable()

See all posts See thread Reply

Re: Non-static method upload::isReadable() Problem new!
by Steve M, 15 years, 2 months ago
Thanks for the prompt reply.

Yes I'm using 5.0.4.

I've implemented your changes but other problems occur further down is_writeable. I've attempted a similar fix but this leads to a further problemReply
Re: Non-static method upload::isReadable() Problem new!
by colin, 15 years, 2 months ago
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