FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=16662&edit=1

ID: 16662
Updated by: [email protected]
Reported By: ray at discountofficeitems dot com
Summary: Triggers E_STRICT error messages
-Status: Open
+Status: Bogus
Type: Bug
Package: Text_Diff
Operating System: Debian Linux Lenny
Package Version: 1.1.1
PHP Version: 5.2.5
Roadmap Versions:
New Comment:

-Status: Open
+Status: Bogus
Thank you for taking the time to write to us, but this is not
a bug.

This is a PHP 4 compatible package.


Previous Comments:
------------------------------------------------------------------------

[2009-09-30 20:52:44] tech13

Description:
------------
Strict Standards: Non-static method Text_Diff::trimNewlines() cannot be
called statically in /usr/share/php/Text/Diff/Engine/native.php on line
36

Strict Standards: is_a(): Deprecated. Please use the instanceof
operator in /usr/share/php/Text/Diff/Renderer.php on line 88


Test script:
---------------
<?php

error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 1);

// PEAR::Text_Diff for output of changes
include_once "Text/Diff.php";
include_once "Text/Diff/Renderer.php";
include_once "Text/Diff/Renderer/inline.php";

$diff = new Text_Diff('auto', array(array("there was a man from town"),
array("there was a girl from the city")));
$renderer = new Text_Diff_Renderer_inline();
echo $renderer->render($diff);

Expected result:
----------------
Did not expect to see E_STRICT error messages.

Actual result:
--------------
Triggers E_STRICT error messages

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedSep 30, '09 at 9:11p
activeSep 30, '09 at 9:11p
posts1
users1
websitepear.php.net

1 user in discussion

Jan: 1 post

People

Translate

site design / logo © 2023 Grokbase