diff options
author | Eric Stenson <ericsten@php.net> | 2013-12-13 10:42:32 -0800 |
---|---|---|
committer | Eric Stenson <ericsten@php.net> | 2013-12-13 10:42:32 -0800 |
commit | 50377b5bf2bc4cd6f77816a9216e035d71bc2ec8 (patch) | |
tree | 85f90c53fb1f5e29f2a8e336961d33c90b658bec /ext/standard/tests/file/ftruncate_error.phpt | |
parent | 41eaac3491cfcad02ebab5f86ece018d9e3c4cc6 (diff) | |
download | php-git-50377b5bf2bc4cd6f77816a9216e035d71bc2ec8.tar.gz |
Fix tests expecting specific resource IDs
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().
Diffstat (limited to 'ext/standard/tests/file/ftruncate_error.phpt')
-rw-r--r-- | ext/standard/tests/file/ftruncate_error.phpt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/tests/file/ftruncate_error.phpt b/ext/standard/tests/file/ftruncate_error.phpt index a28095bc2d..254ad7688d 100644 --- a/ext/standard/tests/file/ftruncate_error.phpt +++ b/ext/standard/tests/file/ftruncate_error.phpt @@ -114,7 +114,7 @@ Warning: ftruncate() expects parameter 1 to be resource, object given in %s on l bool(false) -- Testing ftruncate() with closed/unset file handle -- -Warning: ftruncate(): 5 is not a valid stream resource in %s on line %d +Warning: ftruncate(): %d is not a valid stream resource in %s on line %d bool(false) int(36) |