mirror of
https://github.com/php/php-src.git
synced 2025-01-22 03:34:19 +08:00
Fix another broken test. root can read 0200 files.
This commit is contained in:
parent
1d5e508658
commit
bf3bb1efbe
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user