Unexpected T_STRING in if clause with spaces
<p>My problem is the following: To keep order in my scripts, I always put lots of spaces in my if-statements, like this:</p>

<pre><code>if( ! isset( $_GET['user'] ) || ! isset( $_GET['user'] ) )
   ...
</code></pre>

<p>From time to time, though everything seems correct, this produces errors like "Unexpected T_STRING..." etc. Then I change the line to:</p>

<pre><code>if(!isset($_GET['user'])||!isset($_GET['user']))
   ...
</code></pre>

<p>save the file, re-insert the spaces, save the file again and everything works fine. Any ideas what could cause this? Is it maybe a bug of the PHP parser?</p>

<p>(It's not specifically this statement, it happens with many such spaces-including statements)</p>

<p>Edit: I just managed to revert the file to when it didn't work, this is the exact code that produces the error:</p>

<pre><code>if(! isset( $_GET['user'] ) || ! isset( $_GET['parent'] ) )
</code></pre>

<p>I also changed every character in sequence, it seems to be the space between <code>||</code> and <code>!</code>.</p>

<p>The error message says:</p>

<pre><code>Parse error: syntax error, unexpected T_STRING, expecting ',' or ')' in ...
</code></pre>

<p>You can download the file here: <a href="http://geardev.de/test.zip" rel="nofollow">http://geardev.de/test.zip</a></p>
