View Single Post
Old 06-29-2008, 05:11 PM   #1 (permalink)
redSHIFT
The Contributor
 
redSHIFT's Avatar
 
Join Date: Jan 2008
Location: England, UK
Posts: 69
Thanks: 3
redSHIFT is on a distinguished road
Default 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?
redSHIFT is offline  
Reply With Quote