Вопрос

I have a client who have recently upgraded to PHP5. he have an error that says

Parse error: syntax error, unexpected T_CLONE, expecting T_STRING in ms/kernel/object.php on line 528

I am looking at the code but can't figure out why this is happening. Can any one please help me?

Это было полезно?

Решение

Since you didn't provide code, I can only guess that you have classes using the now reserved keyword clone (from T_CLONE).

If you simply replace all instances of clone with aclone or clone1 or something, you'll be fine, albeit a very hacky solution. It's a key indicator that whatever library it is you're using was written specifically for PHP4 and has not been upgraded for 5.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top