15 Mar
2005
15 Mar
'05
5:26 p.m.
Karoly Negyesi wrote:
Perhaps another option is to give special users a user ID close to 2 147 483 647 (MAXINT). That way it won't interfere with existing users.
I smell Y2K here, but Y2K was sure to happen sooner or later, I do not think a Drupal site with two billion users will happen anytime...
Still, I think negative UIDs are future safer.
I am thinking perhaps negative UIDs for reserved/system accounts may be the way to go, as well. The sequence used for generating new user UIDs expects to start at +1 and increment by +1. Reserving positive UID ranges will make the code complicated where it is now simple. -- Chris Johnson