Does anyone know of a way of checking within PHP if the script is running as either 32-bit or 64-bit? Currently I\'m using PHP 5.3.5.
Ideally I\'d like to write a f
You could write a function like this:
function is_32bit(){ return PHP_INT_SIZE === 4; }
Then you could use the sample code you posted:
if ( is_32bit() ) { do_32bit_workaround(); } else { do_everything_else(); }