tags:

views:

81

answers:

3

I've noticed that most of my more annoying errors generate parse errors similar to this one in my logs:

PHP Parse error:  syntax error, unexpected T_FUNCTION in 
d:\docume~1\***\locals~1\temp\tmpwvpo4p on line 5.

This is annoying to say the least, because I have not a clue what exactly that is supposed to be, and like a good program, PHP cleans up the temporary files after itself properly.

Anyone have any ideas what is happening here, or how I can figure out what's actually going on?

A: 

Are you using a PHP accelerator somewhere? If so, disable that and try again.

Other than that, check that your application isn't writing and executing its own scripts. That sort of thing would cause the behaviour you're seeing, but is also quite insane :)

Jon Topper
No, I'm not writing/including my own scripts, yes, that would be quite insane. And no, not to my knowledge... I'm using a stock standard PHP5 installer installation on my dev machine.
Matthew Scharley
A: 

Are you including files from HTTP or other remote protocols, or via phar or zip archives?

Wez Furlong
A: 

Please call phpinfo() and paste the results here.

Jay Paroline
It's a year old question. I don't even have the computer in question anymore. Perhaps I should just delete this one...
Matthew Scharley
Strike that, I can't delete it...
Matthew Scharley
Ha, guess I need to pay attention to the dates on these things. Sorry.
Jay Paroline