I encountered the same error when attempting to use another PHP framework called Studs. It happens because the code uses a function named 'clone', but PHP 5 defined a new keyword named clone. Probably the simplest solution is to downgrade to PHP 4.
B.t.w. Have you encountered other PHP frameworks that are perhaps more active in current development, yet more mature than alpha or beta?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
New to Phrame and Php. Downloaded phrame-2.1RC1(with examples), but gettting error while testing Hello World. The error is:
Parse error: parse error, unexpected T_CLONE, expecting T_STRING in phrame-2.1-examples/phrame/util/Object.php on line 20
I successfully install Apache2 and Php5 and is running fine. Any help will be greatly appreciated.
Thank you
I encountered the same error when attempting to use another PHP framework called Studs. It happens because the code uses a function named 'clone', but PHP 5 defined a new keyword named clone. Probably the simplest solution is to downgrade to PHP 4.
B.t.w. Have you encountered other PHP frameworks that are perhaps more active in current development, yet more mature than alpha or beta?
hello,
Actually, I found if you rename the clone function on utils\object.php to _clone, or even ocmment out the function, it works fine.