06-29-2008, 04:11 PM
|
#1 (permalink)
|
|
The Contributor
Join Date: Jan 2008
Location: England, UK
Posts: 83
Thanks: 3
|
Muting errors in PHP5
My bad - I missed my missing semicolon :P
Just come across something very confusing. In PHP4 we could mute errors caused by a function by using @function().
I'm using PHP5 on this server and I get:
Quote:
|
Parse error: syntax error, unexpected '@' in /home/sites/***.co.uk/public_html/***/includes/class_registry.php on line 25
|
Lines 24-25:
PHP Code:
$config_file = DIR . '/includes/config/configuration.php' @require_once($config_file);
Now I'd assume PHP would throw an error notifying this doesn't work - I have errors set to E_ALL - rather than a parse error and I can't find anything on php.net - any ideas?
|
|
|
|