
08-07-2012, 06:44 PM
|
|
Member
|
|
Join Date: Oct 2010
Posts: 37
|
|
[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:
preg_match('|^([^:]+)://([^:@]*(?:[:][^@]*)?@)?([^/:@?#]*)(?:[:]([^/?#]*))?(/[^?]*)?((?:[?](?:[^#]*))?(?:#.*)?)$|', Zend_OpenId::selfUrl(), $reg)) {
And
PHP Code:
preg_match('|^([^:]+)://([^:@]*(?:[:][^@]*)?@)?([^/:@?#]*)(?:[:]([^/?#]*))?(/[^?#]*)?((?:[?](?:[^#]*))?)((?:#.*)?)$|', $res, $reg)
Source file: http://framework.zend.com/svn/framew...end/OpenId.php
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.
Last edited by NiteWave; 08-14-2012 at 10:16 PM..
|