]> granicus.if.org Git - php/commit
Fix tests expecting specific resource IDs
authorEric Stenson <ericsten@php.net>
Fri, 13 Dec 2013 18:42:32 +0000 (10:42 -0800)
committerXinchen Hui <laruence@gmail.com>
Sun, 15 Dec 2013 08:51:21 +0000 (16:51 +0800)
commit330168a2477666212797095449029e78dcce0844
treef2653b7dbbb14358f0dc42d8543b22bc4e9e9007
parentef73f85079e7563cb82afde35f0e89321257f0d9
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().
14 files changed:
Zend/tests/bug41421.phpt
ext/session/tests/session_name_error.phpt
ext/standard/tests/array/each.phpt
ext/standard/tests/file/007_error.phpt
ext/standard/tests/file/fgetss_error.phpt
ext/standard/tests/file/ftruncate_error.phpt
ext/standard/tests/general_functions/floatval.phpt
ext/standard/tests/general_functions/gettype_settype_basic.phpt
ext/standard/tests/general_functions/print_r.phpt
ext/standard/tests/general_functions/strval.phpt
ext/standard/tests/general_functions/type.phpt
ext/standard/tests/general_functions/var_dump.phpt
ext/standard/tests/strings/implode1.phpt
tests/strings/001.phpt