Am 26.05.2014 08:24, schrieb A.L.E.C:
On 05/25/2014 05:46 PM, Reindl Harald wrote:
to can do that i would need a better handling of that like at least some code-snippet as follows:
Before the line with strtolower() add:
if (is_array($headers->ctype)) { console($_SESSION['username'].":$folder:$uid"); console($headers); }
i added that patch now to my RPM-Build
IMHO that should be part of the release because it's much more helful than unspecific warnings and leads to find the root cause
hopefully console() and $headers exists at that level :-)
[builduser@buildserver64:/rpmbuild/SOURCES]$ cat roundcubemail-str_to_lower_warning.patch --- roundcubemail-1.0.1-dep-original/program/lib/Roundcube/rcube_imap.php 2014-05-09 16:09:02.000000000 +0200 +++ roundcubemail-1.0.1-dep-patched/program/lib/Roundcube/rcube_imap.php 2014-05-26 10:28:08.809852444 +0200 @@ -1841,8 +1841,13 @@ */
// regular part
$struct->ctype_primary = strtolower($part[0]);
$struct->ctype_secondary = strtolower($part[1]);
if(is_array($part[0]) || is_array($part[1]))
{
console($_SESSION['username'].":$folder:$uid");
console($headers);
}
$struct->ctype_primary = @strtolower($part[0]);
$struct->ctype_secondary = @strtolower($part[1]);
$struct->mimetype = $struct->ctype_primary.'/'.$struct->ctype_secondary;
// read content type parameters