Home » Logging » Log » Bug #9023
Regression tests extract2 fail with PHP 5.2.0
Details
| Submitted | 2006-10-14 05:56 UTC |
|---|---|
| From | Fedora at FamilleCollet dot com |
| Assigned | jon |
| Status | Closed |
| Package | Log |
| PHP Version | 5.2.0 RC4 |
| OS | Fedora |
| 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