[PEAR-BUG] Doc #20052 [NEW]: Should not be called statically

[email protected] ("tycoonmaster at gmail dot com") Fri, 23 Aug 2013 05:17:48 +0100 (BST)
Newsgroups php.pear.doc,php.pear.doc
Message-ID <[email protected]>
From:             #f7979d6827e5562d67d
Operating system: Linux Fedora 16
Package version:  
PHP version:      5.4.8
Package:          Documentation
Bug Type:         Documentation Problem
Bug description:  Should not be called statically

Description:
------------
The documentation states that this function can be statically called, but
according to strict standards, it "should not be called statically".

I utilize strict standards to prevent, by the definition of the code,
improper execution as well as refrain from using @ to suppress errors
because hidden or not, an error is an error.

Test script:
---------------
<?php
require_once 'Mail/RFC822.php';
$result = Mail_RFC822::parseAddressList('[email protected]');
print_r($result);

Expected result:
----------------
Array ( [0] => stdClass Object ( [personal] => [comment] => Array ( )
[mailbox] => email [host] => address.com ) ) 

Actual result:
--------------
Strict Standards: Non-static method Mail_RFC822::parseAddressList() should
not be called statically in /htdocs/test.php on line 3
Array ( [0] => stdClass Object ( [personal] => [comment] => Array ( )
[mailbox] => email [host] => address.com ) ) 

-- 
Edit bug report at https://pear.php.net/bugs/bug.php?id=20052&edit=1
--