php.net |  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
Description:
------------
I just installed the markdown pecl package with:

sudo pecl install markdown channel://pecl.php.net/markdown-0.1.0

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

Reproduce code:
---------------
<?php

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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-12 06:58 UTC] cataphract@php.net
The new interface doesn't have this problem.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC