Hmmm... That is possible. I should also mention that this only happens when running from the web. Running the same thing from the command line doesn't receive a SIGKILL.
In that case, I'd definitely do a ulimit -a to report the limits for both your account and the one running the web server. Then I think I'd have a look at the environment variables ... just for good measure.