Commit 027deb85 authored by skummer's avatar skummer

ZP-322 #comment use "old" method to check if decode() is called statically, as...

ZP-322 #comment use "old" method to check if decode() is called statically, as usage of is_a() causes E_STRICT messages on 5.0.0 until 5.3.0 #time 20m

git-svn-id: https://z-push.org/svn/z-push/trunk@1612 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 1a3e606b
......@@ -66,6 +66,9 @@
* Reference implementation used:
* http://download.pear.php.net/package/Mail_mimeDecode-1.5.5.tgz
*
* used "old" method of checking if called statically, as this is deprecated between php 5.0.0 and 5.3.0
* (isStatic of decode() around line 215)
*
*/
/**
......@@ -208,7 +211,7 @@ class Mail_mimeDecode
function decode($params = null)
{
// determine if this method has been called statically
$isStatic = empty($this) || !is_a($this, __CLASS__);
$isStatic = !(isset($this) && get_class($this) == __CLASS__);
// Have we been called statically?
// If so, create an object and pass details to that.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment