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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jackbravo at gmail dot com
New email:
PHP Version: OS:

 

 [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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jan 02 13:01:30 2025 UTC