PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Logging » Log » Bug #9023

Regression tests extract2 fail with PHP 5.2.0

Details

Submitted2006-10-14 05:56 UTC
FromFedora at FamilleCollet dot com
Assignedjon
StatusClosed
PackageLog
PHP Version5.2.0 RC4
OSFedora
Roadmaps(Not assigned)

Comments

[2006-10-14 05:56 UTC] Fedora at FamilleCollet dot com

Description:
------------
Before uploading a new version to Fedora Extras, i'm used to run the regression test, but extract2 one fail.

In fact the Actual result seems fine to me, but isn't ok with the "expect" clause of the test.

Test script:
---------------
From extract2.phpt:

/* Logging an object with a __toString() method using casting. */
class CastableObject { function __toString() { return "__toString"; } }
$logger->log(new CastableObject());

Expected result:
----------------
From --- EXPECT
ident [info] Object id #2

Actual result:
--------------
With PHP 5.2.0RC5-dev
ident [info] __toString

With PHP 5.1.6
ident [info] Object id #2