[wp-hackers] readme.txt: "Requires PHP 5 tag"

Jason Webster jason at intraffic.net
Sat Jul 25 19:25:54 UTC 2009


On 20/07/2009 6:20 AM, Otto wrote:

> That will run fine. PHP only will throw an error if it actually makes
> it to the code. Code is interpreted at the time of execution, not at
> the time of inclusion. You can include a file with complete gibberish
> inside a function, but until you try to use that function, it won't
> stop the program.
>
> -Otto

That is SO not true.

test.php:
<?php

function complete_gibberish() {
     this is complete gibberish
     full of all sorts of syntax errors
}


echo 'hi';


$: php test.php
 > PHP Parse error:  syntax error, unexpected T_STRING in /home/jason/test.php on line 4





More information about the wp-hackers mailing list