cvs: php4 /ext/standard/tests/file 001.phpt
| From: | Jason Greene | Date: | Fri, 11 May 2001 02:45:50 +0000 |
| Subject: | cvs: php4 /ext/standard/tests/file 001.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-5656@lists.php.net to get a copy of this message | ||
jason Thu May 10 19:45:50 2001 EDT
Modified files:
/php4/ext/standard/tests/file 001.phpt
Log:
Fix is_executable test.
Index: php4/ext/standard/tests/file/001.phpt
diff -u php4/ext/standard/tests/file/001.phpt:1.2 php4/ext/standard/tests/file/001.phpt:1.3
--- php4/ext/standard/tests/file/001.phpt:1.2 Thu Aug 31 15:21:47 2000
+++ php4/ext/standard/tests/file/001.phpt Thu May 10 19:45:49 2001
@@ -73,6 +73,13 @@
} else {
echo "test.file is not executable\n";
}
+chmod ('test.file', 0644);
+clearstatcache();
+if (is_executable('test.file')) {
+ echo "test.file is executable\n";
+} else {
+ echo "test.file is not executable\n";
+}
if (is_file('test.file')) {
echo "test.file is a regular file\n";
} else {
@@ -131,6 +138,7 @@
test.file size is 0
test.file is writeable
test.file is readable
+test.file is executable
test.file is not executable
test.file is a regular file
test.link is a regular file