|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58682 Non-static method should not be called statically
Submitted: 2009-05-18 12:55 UTC Modified: 2011-01-12 06:58 UTC
From: jackbravo at gmail dot com Assigned:
Status: Closed Package: markdown (PECL)
PHP Version: 5.2.6 OS: ubuntu 9.04
Private report: No CVE-ID: None
 [2009-05-18 12:55 UTC] jackbravo at gmail dot com
I just installed the markdown pecl package with:

sudo pecl install markdown channel://

I tried to use the functions as described on the mkd.php file on the Examples directory.

Reproduce code:

error_reporting(E_ALL | E_STRICT);
echo Markdown::parseToString('a simple "string" to parse');

Expected result:
To run the string without problems, but I get the following error:

Strict Standards: Non-static method Markdown::parseToString() should not be called statically in /home/jackbravo/work/mark.php  on line 4

a simple ?string? to parse

Actual result:
a simple ?string? to parse


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-12 06:58 UTC]
The new interface doesn't have this problem.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Dec 05 22:01:29 2023 UTC