0

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?

hakre
  • 193,403
  • 52
  • 435
  • 836
Gautam Arya
  • 723
  • 14
  • 40

1 Answers1

0

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.

Álvaro González
  • 142,137
  • 41
  • 261
  • 360
Rudi Visser
  • 21,350
  • 5
  • 71
  • 97