Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.14.5

Bug #18099 levels.phpt fails on 32bits computer
Submitted: 2010-12-07 00:28 UTC
From: remicollet Assigned: jon
Status: Closed Package: Log (version 1.12.4)
PHP Version: 5.3.3 OS: GNU/Linux (Fedora 14)
Roadmaps: (Not assigned)    
Subscription  


 [2010-12-07 00:28 UTC] remicollet (Remi Collet)
Description: ------------ This test succeeds on 64 bits computer (i686), but fails on 32 bits computer (x86_64) But I don't understand the test. Log::MIN (and MAX) expect a "priority" and return a "mask" In the test testLevels(Log::MIN(PEAR_LOG_NONE)); testLevels(Log::MAX(PEAR_LOG_NONE)); testLevels(Log::MIN(PEAR_LOG_ALL)); testLevels(Log::MAX(PEAR_LOG_ALL)); => PEAR_LOG_NONE and PEAR_LOG_ALL are already masks (not priority). I think (1<<0xffffffff) don't have real meaning. Test script: --------------- # pear run-tests levels.phpt Expected result: ---------------- Running 1 tests PASS Log: Levels[/usr/share/pear/test/Log/tests/levels.phpt] Actual result: -------------- Running 1 tests FAIL Log: Levels[levels.phpt] $ cat *diff 021- Mask: 65535 021+ Mask: 0 022- Priority 0: masked 022+ Priority 0: unmasked 023- Priority 1: masked 023+ Priority 1: unmasked 024- Priority 2: masked 024+ Priority 2: unmasked 025- Priority 3: masked 025+ Priority 3: unmasked 026- Priority 4: masked 026+ Priority 4: unmasked 027- Priority 5: masked 027+ Priority 5: unmasked 028- Priority 6: masked 028+ Priority 6: unmasked 029- Priority 7: masked 029+ Priority 7: unmasked

Comments

 [2010-12-07 00:34 UTC] remicollet (Remi Collet)
 [2010-12-13 09:21 UTC] jon (Jon Parise)
-Status: Open +Status: Closed -Assigned To: +Assigned To: jon
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.