|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: jackbravo at gmail dot com
New email:
PHP Version: OS:


 [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-2024 The PHP Group
All rights reserved.
Last updated: Mon Feb 26 18:01:27 2024 UTC