Fixed XenForo_Error fails with php < 5.3

Rigel Kentaurus

Well-known member
XenForo_Error has a call inside debug that makes use of func_get_args()

Screen Shot 2012-02-08 at 3.43.40 PM.webp

Unfortunately, this cannot be used as a method parameter before php 5.3

Screen Shot 2012-02-08 at 3.43.10 PM.webp

Because of this, people using PHP 5.3, with debug mode enabled, would get an error when XenForo_Error::debug() is called

A workaround would be storing the result in a variable instead.

I checked the XenForo front page and it says compatible with PHP 5.2.6+, so I guess this is a small bug.
 
Top Bottom