PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Text » Text_Wiki » Bug #5861

warning on headings

Details

Submitted2005-11-04 01:44 UTC
Fromstefan dot kilp at gmx dot net
Assignedtoggg
StatusDuplicate
PackageText_Wiki
PHP Version5.0.5
OSlinux
Roadmaps(Not assigned)

Comments

[2005-11-04 01:44 UTC] stefan dot kilp at gmx dot net

Description:
------------
receiving warnings when using headings, demo1.txt and demo1.php

Test script:
---------------
--- file demo1.txt
+ überschrift
hier folgt eine aufzählung

# eine
# zwei
# drei

und hier noch mal unstrukturiert

* so
* oder so
* oder ganz anders

+ introduction
--- end file

--- demo1.php
require_once 'Text/Wiki.php';

$filename = 'demo1.txt';

$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));
fclose($handle);
$wiki =& new Text_Wiki();
$xhtml = $wiki->transform($contents, 'Xhtml');
echo $xhtml;
--- end file

Actual result:
--------------
Notice: Undefined variable: collapse in /opt/lampp/htdocs/lib/pear/Text/Wiki/Render/Xhtml/Heading.php on line 47

Notice: Undefined variable: collapse in /opt/lampp/htdocs/lib/pear/Text/Wiki/Render/Xhtml/Heading.php on line 51

Notice: Undefined variable: collapse in /opt/lampp/htdocs/lib/pear/Text/Wiki/Render/Xhtml/Heading.php on line 47

Notice: Undefined variable: collapse in /opt/lampp/htdocs/lib/pear/Text/Wiki/Render/Xhtml/Heading.php on line 51
überschrift

hier folgt eine aufzählung

1. eine
2. zwei
3. drei

und hier noch mal unstrukturiert

* so
* oder so
* oder ganz anders

introduction