Documentation Problem #20052 [NEW]: Should not be called statically

From: Date: Fri, 23 Aug 2013 04:21:21 +0000
Subject: Documentation Problem #20052 [NEW]: Should not be called statically
Groups: php.pear.doc php.pear.doc 
Request: Send a blank email to pear-doc+get-12213@lists.php.net to get a copy of this message
From: tycoonmaster 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@address.com'); 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 http://pear.php.net/bugs/bug.php?id=20052&edit=1 --

« previous php.pear.doc (#12213) next »