I am running IIS7 and PHP5 locally on my machine and the code above will cause IIS to throw an HTTP 500 error. After a lot of frustration and confusion I figured out that any PHP script with empty variable will throw this IIS error. Below is an example of this:
<?php $x = $y; ?>
I find this behavior very odd and it breaks a large percentage of the code I write. In most cases it prevents me from debugging properly. I would really really like to see output and error messages. Also, this can break the usage of the super globals GET and POST and can only be suppressed by logic to prevent their execution.
How can I fix this?