If you get an error on a non-existent line, it is possible that PHP caches it. Perhaps try renaming it, then doing it.
Not sure about Snow Leopard, but I'm using it right now and I have to say that there are a lot of weird bugs with the same OS, maybe it is.
I experienced this error before, when I accessed the database and stored the information in an array, it turns out I forgot how big the database is and when it passed the MB to the stack, I got this error and stopped. If the situation is similar, use a stronger processor approach, for example, connect, get a line / block / something, something, and then return. Do not worry everything, save everything, and then do something.
Check it out: Drupal.org memory allocation error
Hope this helps, but not sure how clear all of this is. Perhaps show parts of your script to understand what might be causing this.
source share