Ticket #286: Can __toString() not throw an exception for a file if it doesn't exist?

Reporter: patrick Type: enhancement Opened: 1 year ago Status: closed
Assigned to: wbond Priority: major Modified: 1 year ago Resolution: fixed

Here's my problem.

I'm doing this <?= $file ?>. But since there is no file uploaded it's throwing an exception. Since throwing an exception during a __toString() method is a fatal error, can fFile just return an empty string or "File Object" if there is no filename available?

Attachments

History

Reply 08/06/09 22:55:32 changed by wbond

  • status changed from new to closed.
  • resolution set to fixed.
  • description changed.

This is fixed in r672

Edit the Ticket



please register or log in to allow for editing your comment

Action