![]() |
[solved] Error: Compilation failed: POSIX named classes are supported only
full title:Error: Compilation failed: POSIX named classes are supported only within a class
This error from openID class in Zend Framework. Working fine on other web server except Litespeed. preg_match() [function.preg-match]: Compilation failed: POSIX named classes are supported only within a class at offset 21 PHP Code:
PHP Code:
Line 162, 409. I try to upgrade, downgrade php from 5.3.5 to 5.3.14 but it can not help. Could you please help me fix this? Thank you. |
make sure litespeed svr has the matching PHP built as other server.
|
Quote:
I try upgrade/downgrade all versions of PHP, same to others too, but it can not help, issue is still exist. |
It is not just the PHP version but the compile options.
|
Is there any advice on build option as I left other as default DirectAdmin built.
|
run from command line 'php -i' (look for Configure Command line) to get Apache php compile option and use the same options in LSWS php compile
|
I try it, try with different php versions,
Quote:
But that code still have error. Sample test which has error: PHP Code:
http://dev.vimobi.com/test.php |
Here is the one I have. PHP 5.3.6
Configure Commands: Quote:
Code:
<?phpQuote:
|
The error was fixed with your configure command.
Thanks for your support. |
| All times are GMT -7. The time now is 08:06 PM. |