PHP 5.0.4 Apache 2
The function "function rcube_xml_command($command, $str_attrib,
$a_attrib=NULL)" is not working correctly on php 5. It never orders
any of the matches in $str_attrib. For example, at one point
$str_attrib is [file="/includes/header.html" /], this never produces
a result in $regs.
Now, I am no expert but I do not think this is working properly. The
errors associated with this are as follows:
Warning: preg_match_all: internal pcre_fullinfo() error -3 in /var/ www/reflex8.com/roundcube/program/include/main.inc on line 503 [file="/includes/header.html" /] [Array] [2] [include]
Warning: preg_match_all: internal pcre_fullinfo() error -3 in /var/ www/reflex8.com/roundcube/program/include/main.inc on line 503 [name="loginform" form="form" /] [Array] [2] [object]
Warning: preg_match_all: internal pcre_fullinfo() error -3 in /var/ www/reflex8.com/roundcube/program/include/main.inc on line 503 [name="login" /] [Array] [2] [label]
Lines 503 - 510 are below 503: preg_match_all('/\s*([-_a-z]+)="["]?/i', stripslashes ($str_attrib), $regs, PREG_SET_ORDER); 504: 505: // convert attributes to an associative array (name => value) 506: if ($regs) 507: foreach ($regs as $attr) 508: $attrib[strtolower($attr[1])] = $attr[2]; 509: else if ($a_attrib) 510: $attrib = $a_attrib;
Thanks for any help!
Jeff
This seems to be just a PCRE issue, I cannot seem to get it installed
properly.
On Oct 13, 2005, at 11:26 PM, Jeffrey Lee wrote:
PHP 5.0.4 Apache 2
The function "function rcube_xml_command($command, $str_attrib,
$a_attrib=NULL)" is not working correctly on php 5. It never orders
any of the matches in $str_attrib. For example, at one point
$str_attrib is [file="/includes/header.html" /], this never
produces a result in $regs.Now, I am no expert but I do not think this is working properly.
The errors associated with this are as follows:Warning: preg_match_all: internal pcre_fullinfo() error -3 in /var/ www/reflex8.com/roundcube/program/include/main.inc on line 503 [file="/includes/header.html" /] [Array] [2] [include]
Warning: preg_match_all: internal pcre_fullinfo() error -3 in /var/ www/reflex8.com/roundcube/program/include/main.inc on line 503 [name="loginform" form="form" /] [Array] [2] [object]
Warning: preg_match_all: internal pcre_fullinfo() error -3 in /var/ www/reflex8.com/roundcube/program/include/main.inc on line 503 [name="login" /] [Array] [2] [label]
Lines 503 - 510 are below 503: preg_match_all('/\s*([-_a-z]+)="["]?/i', stripslashes ($str_attrib), $regs, PREG_SET_ORDER); 504: 505: // convert attributes to an associative array (name => value) 506: if ($regs) 507: foreach ($regs as $attr) 508: $attrib[strtolower($attr[1])] = $attr[2]; 509: else if ($a_attrib) 510: $attrib = $a_attrib;
Thanks for any help!
Jeff