php-mail-mime: warnings on E_ALL level about returning temporary variables in mime.php

Wim Delvaux wim.delvaux at adaptiveplanet.com
Fri Dec 1 23:15:19 UTC 2006


Package: php-mail-mime
Version: 1.3.1-1
Severity: important


when running on E_ALL error level, php5 produces warnings about returned
temporary variables.  This can be fixed by temporary assigning
the results to some local variable and returning that local variable

This occurs on the following lines in mime.php
  in _addTextPart
    when returning new Mail_mimePart
    to be replaced by $X = new Mail_mimePart
                      return $X;
  in _addMixedPart
    when returning new Mail_mimePart
    to be replaced by $X = new Mail_mimePart
                      return $X;
  in _addAttachmentPart
    when returning $obj->addSubpart( ...
    to be replaced by $X = $obj->addSubpart( ...
                      return $X;
  in headers
    when returning $this->_encodeHeaders( ...
    to be replaced by $X = $this->_encodeHeaders( ...
                      return $X;


-- System Information:
Debian Release: testing/unstable
  APT prefers edgy-updates
  APT policy: (500, 'edgy-updates'), (500, 'edgy-security'), (500, 'edgy')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.17-10-generic
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages php-mail-mime depends on:
ii  php4-pear                    4:4.4.2-1.1 PHP Extension and Application Repo

php-mail-mime recommends no packages.

-- no debconf information




More information about the ubuntu-users mailing list