Martin Atkins (mart) wrote in fotobilder,
Martin Atkins
mart
fotobilder

Concern about Global Filehandles

The code I was working with to solve my FotoBilder-on-Windows problem opens a file with the global filehandle TEMP. Now, I may be wrong here, but don't globals exist for all requests that mod_perl is currently handling, so that when there's high traffic one request might clobber another's TEMP filehandle and cause both resized images to get corrupted?

I switched everything to using the local variable $temp and all was happy, and even if it's not necessary I suggest doing that because I think that the symbolless global filehandles are ugly and nasty and should die along with ampersands at the start of calls to subroutines.

Subscribe

  • 302: lj_dev

    In the interests of consolidating all FotoBilder development-related discussion, we're going to be closing down this community. The same…

  • Development stalled?

    Is the development of Fotobilder held? Stalled? I am asking because there is no activity on the community and there is no link to the Fotobilder…

  • (no subject)

    Does FotoBilder works with Apache2? I installed all the required modules on my debian sarge, and when I restart my apache server, it dies horribly…

  • Post a new comment

    Error

    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic
  • 2 comments