I suspect this change will cause problems if the person's session times out and they press the shopping cart page button - no?
The real fix for this problem is to upgrade to PHP5.