On 01/08/2012 12:42 PM, Rasmus Lerdorf wrote:
> On 01/08/2012 12:36 PM, Stas Malyshev wrote:
>>> +if (posix_geteuid() == 0) die('SKIP Cannot run test as root.');
>> Does this work on Windows?
> Dunno, but we have 22 tests using that same check and none of them check
> for Windows, so I assume it does.
Ok, I dug a bit deeper. You are right, technically the check doesn't
work on Windows, but the way our tests work, unless the skipif script
returns "skip" the test will run, even if the skipif has an error. So,
the 20+ tests that do this check will still run on Windows.
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php