Fix another broken test. root can read 0200 files.

This commit is contained in:
Rasmus Lerdorf 2011-08-29 06:19:40 +00:00
parent 1d5e508658
commit bf3bb1efbe

View File

@ -1,10 +1,15 @@
--TEST--
SQLite3::open error test
--SKIPIF--
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
<?php
require_once(__DIR__ . '/skipif.inc');
if (posix_geteuid() == 0) {
die('SKIP Cannot run test as root.');
}
?>
--FILE--
<?php
$unreadable = dirname(__FILE__) . '/unreadable.db';
$unreadable = __DIR__ . '/unreadable.db';
touch($unreadable);
chmod($unreadable, 0200);
try {