If you have a W-Item Materia, you can go into battle, select an item, select it again, cancel and its quantity will increase - you can get up to 99 of that item by doing this. (you need atleast two to begin with)
Was this done deleberatly as a little cheat for the gamers? Or did they the mess up the programming?