If the image has not been processed it does not count against the count. Only files already processed and in the photos table count towards the uplimit count. Now if your doing uploads and there are multiple files to process when uploading yes he will get cut off when processing as in two files are in the uploads directory one processes and you loop again then you will get stopped. This does not indicate a bug that I see if you are only allowing say 1 upload and he is trying to do 2
At every point in both uploadphoto and bulkupload we issue this query which only pulls the photos that have been processed
Code:
Content visible to verified customers only.
Now only thing I can suggest is if your users are experiencing your PHP shutting down when trying to upload then a non processed file might not be deleted from the uploads directory and this might be why your users have multiple files in there uploads directory. If your using GD2 this might be your case in that case you can try the tweak we post around here to increase your PHP memory limit. But the query structure and how the code performing seems to be fine from looking at your explanation. The only issue I am seeing is as stated if your user has multiple files in the uploads directory which might result in aborted uploads possibly from memory issues and php. You can place this at the top of pp-inc.php near the error_reporting line to increase PHP memory if using gd2
Code:
Content visible to verified customers only.