Jaxel
Well-known member
As it turns out, when you run a string through the XenForo BBcode Parser, it doesn't actually return a string back. What it does is return an object class; and the class has a __toString magic method for handling the string return for when you use it as a string. However, with the preg_match and preg_match_all functions I was using for the parser, for some reason it didn't type cast the object as a string as it would normally.Nice!
What was the problem, if I might ask?
So instead I forced the type casting myself with:
Code:
$this->_params['page']['HTML'] = (string) $this->_params['page']['HTML'];