When checking to make into a reference write, readwrite are checked but not unset
As we discussed with stefan, we think previous of allowing use with classes is a bug, should be forbided, anyway, the error message should be improved.
See discussion on internals http://marc.info/?t=136042277700003&r=1&w=2
On x86_64: (long)(double)9223372036854775807+1 = -9223372036854775808 On ppc64 (long)(double)9223372036854775807-1 = 9223372036854775807
fdset management using bit operator is broken on non-x86 arch and cause built-in server the enter an infinite loop of "select" and never handle any request.
Fixes bug #63999 (php with fpm fails to build on Solaris 10 or 11).