Can I bring back old __tostring() behaviour in PHP 5.3?
问题 I've got to move a web site (custom-written (not by me), so just updating a CMS is not an option) to a PHP 5.3 server. The code complains:: Fatal error: Method cDate::__tostring() cannot take arguments in ...\lib.datetime.php on line 183 I've googled to find out that the problem is because "with PHP 5.3 the magic method __tostring() no more accepts any parameter", "... implements its __tostring() by accepting parameter ... which is now deprecated in favor of the new __tostring() for PHP 5.3".