[wp-trac] [WordPress Trac] #3014: why use the @?

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 9 10:35:14 GMT 2006


#3014: why use the @?
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:  anonymous
     Type:  defect             |      Status:  new      
 Priority:  normal             |   Milestone:           
Component:  Administration     |     Version:  2.0.4    
 Severity:  major              |    Keywords:           
-------------------------------+--------------------------------------------
 Pinning down a bug on a customer server lead me to removing an '@':

 {{{
 Warning: dir() has been disabled for security reasons (...)
 }}}

 The pesky line in question was:

 {{{
 $themes_dir = @ dir($theme_root);
 }}}

 But there's plenty of other calls to:

 {{{
 @ dir(...)
 }}}

 Why in the bloody hell would anyone want WordPress to silence this kind of
 error? It should spit something along the lines of "Your host sucks,
 change it now."

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3014>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list