JosephLenton / PHP-Error

Better error reporting for PHP, and prettier too!
1.35k stars 151 forks source link

Syntax error in php_error.php #5

Closed Geczy closed 12 years ago

Geczy commented 12 years ago

Download php_error from github, added it in ini file and bam:

Parse error: syntax error, unexpected $end in C:\wamp\php\php_error.php on line 3812

No clue what's going on here

JosephLenton commented 12 years ago

I'm guessing it's a line ending issue. The file has Windows line endings, so I've converted to linux, and re-uploaded a copy with unix endings (download link. So try downloading another copy.

To be honest it should have been Unix anyway.

If the issue persists, which OS are you on and which version of PHP?

Geczy commented 12 years ago

Unfortunately the error still persists. I've tried converting to UTF8 without BOM & UNIX as well and still no solution.

( ! ) SCREAM: Error suppression ignored for ( ! ) Parse error: syntax error, unexpected $end in C:\wamp\php\php_error.php on line 3811

Windows 7 x64 WAMP PHP 5.3.10 Apache 2.2.21

JosephLenton commented 12 years ago

Some people on reddit have said it's because it uses short syntax tags. I've disabled short tags on my machine, and changed it over to use full <?php ones.

Geczy commented 12 years ago

That corrected this issue, but rose new ones. I'll create a new issue.