[prev in list] [next in list] [prev in thread] [next in thread]
List: pear-doc
Subject: [PEAR-DOC] [PEAR-BUG] Doc #20052 [NEW]: Should not be called statically
From: "tycoonmaster at gmail dot com"<pear-doc () lists ! php ! net>
Date: 2013-08-23 3:12:33
Message-ID: bug-20052 () pear ! php ! net
[Download RAW message or body]
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@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 https://pear.php.net/bugs/bug.php?id=20052&edit=1
--
--
PEAR Documentation List Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic