Closed GoogleCodeExporter closed 9 years ago
Reverting class.cache.php and class.cacheable.php to before the addition of the
factory method (11588be6969888d2cf142c6a045a66b51d048b1f) brings us to new
error:
Fatal error: Call to undefined method Ship::getbyid() in
/var/www/virtual/eve-co2.org/htdocs/common/includes/class.killwrapper.php on
line 401
Original comment by palmuves...@gmail.com
on 6 Nov 2011 at 5:44
Solved the cause, php function get_called_class is marked as php 5.3 so the php
5.2 doesn't have it, any alternatives to upgrading php?
Original comment by palmuves...@gmail.com
on 6 Nov 2011 at 6:04
Eugh. I missed that. The alternatives to 5.3 are adding some fairly ugly code
based on debug backtraces to replace the function in 5.2 or duplicating code in
each subclass of cacheable.
Requiring 5.3 is tempting. That gets us a lot of other nice features we could
use too. I'll have to think about this.
If you need a fix right now, then try adding the replacement function described
here to the end of globals.php:
http://www.php.net/manual/en/function.get-called-class.php#93799 (In the
comment from 30-Sep-2009 07:32).
Original comment by kovellia
on 6 Nov 2011 at 11:32
Seems to work with that replacement get_called_class
Original comment by palmuves...@gmail.com
on 7 Nov 2011 at 6:14
So far everything other than api sync seems to work, not sure if api fetching
is broken because of this replacement function or otherwise.
Original comment by palmuves...@gmail.com
on 7 Nov 2011 at 6:40
getByID methods were added to the classes to avoid this issue in PHP 5.2
installations.
Original comment by kovellia
on 18 Dec 2011 at 2:53
Original issue reported on code.google.com by
palmuves...@gmail.com
on 6 Nov 2011 at 5:07