From: Jason Greene Date: Fri, 11 May 2001 02:45:49 +0000 (+0000) Subject: Fix is_executable test. X-Git-Tag: php-4.0.6RC1~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f3291ae8ca6252578035bbb21b7dabb16bac989;p=php Fix is_executable test. --- diff --git a/ext/standard/tests/file/001.phpt b/ext/standard/tests/file/001.phpt index cc438c8ac6..369e0332e1 100644 --- a/ext/standard/tests/file/001.phpt +++ b/ext/standard/tests/file/001.phpt @@ -73,6 +73,13 @@ if (is_executable('test.file')) { } 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 permissions are 0654 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