php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66280 Some tests expect specific resource IDs
Submitted: 2013-12-12 22:15 UTC Modified: 2014-03-06 11:55 UTC
From: ericsten@php.net Assigned: nikic (profile)
Status: Closed Package: Testing related
PHP Version: 5.5.7 OS: Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ericsten@php.net
New email:
PHP Version: OS:

 

 [2013-12-12 22:15 UTC] ericsten@php.net
Description:
------------
When Wincache or APC are installed, the resource IDs are not the same.
This is because Wincache takes a few resource objects for itself.  As a
result, these tests become false positives.

On Windows boxes, the microtime precision is not granular enough
to reliably register a difference if two calls to uniqid() are made
concurrently.  This is a fix to the uniqid() test to avoid the false
positive when run on Windows machines.  Also, added a test to exercise
the 'more_entropy' variant of uniqid().

Expected result:
----------------
Tests should not fail

Actual result:
--------------
Tests fail when extension=php_wincache.dll is configured.

Patches

Fix-tests-expecting-specific-resource-IDs (last revision 2013-12-12 22:16 UTC by ericsten@php.net)
Fix-uniqid-tests-for-Windows-platforms (last revision 2013-12-12 22:16 UTC by ericsten@php.net)

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-12-12 22:16 UTC] ericsten@php.net
The following patch has been added/updated:

Patch Name: Fix-uniqid-tests-for-Windows-platforms
Revision:   1386886575
URL:        https://bugs.php.net/patch-display.php?bug=66280&patch=Fix-uniqid-tests-for-Windows-platforms&revision=1386886575
 [2013-12-12 22:16 UTC] ericsten@php.net
The following patch has been added/updated:

Patch Name: Fix-tests-expecting-specific-resource-IDs
Revision:   1386886606
URL:        https://bugs.php.net/patch-display.php?bug=66280&patch=Fix-tests-expecting-specific-resource-IDs&revision=1386886606
 [2014-03-06 11:50 UTC] narf at devilix dot net
The referenced pull request has been merged, so this should be closed as well.
 [2014-03-06 11:55 UTC] nikic@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 19:01:35 2025 UTC