I have the following line:
$this->magicQuotes = (bool) get_magic_quotes_gpc();
I am taking the get_magic_quotes_gpc()
storing it in my object as it's used many times as I generate the SQL. I am also converting it to a bool.
I'm wondering if it's worth while converting it to bool. The main reason I am is for speed as the statement that checks is:
if ($this->magicQuotes) { ... }
which I think would be slightly faster if the test is strictly a bool value.
Is there any reason this it isn't faster or if there are any other reasons not to do this?