On Monday 19 January 2004 07:30, Chris Edwards wrote: > It's almost like it parses it before it tries to execute any lines and if a > syntax error occurs, it doesn't execute any of the script.
That's right. > The prior version would run up until the syntax error and then give you the > line if error, which usually meant the syntax error was on the previous > line. I don't think any version of PHP has ever done that. More likely your prior version of PHP had "display_errors" enabled. In general you can enable and display all errors using: error_reporting (E_ALL); ini_set('display_errors', 1); But if "display_errors" (in php.ini) is disabled then syntax errors will not be displayed -- they can only be viewed in the error log. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Most people will listen to your unreasonable demands, if you'll consider their unacceptable offer. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php