cvs: php-src /pear/tests pear_installer3.phpt
| From: | Greg Beaver | Date: | Wed, 17 Sep 2003 03:31:59 +0000 |
| Subject: | cvs: php-src /pear/tests pear_installer3.phpt | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-12796@lists.php.net to get a copy of this message | ||
cellog Tue Sep 16 23:31:59 2003 EDT
Modified files:
/php-src/pear/tests pear_installer3.phpt
Log:
modify chmod test to be truly permissions-filesystem-based-specific
Index: php-src/pear/tests/pear_installer3.phpt
diff -u php-src/pear/tests/pear_installer3.phpt:1.4 php-src/pear/tests/pear_installer3.phpt:1.5
--- php-src/pear/tests/pear_installer3.phpt:1.4 Tue Sep 16 23:29:55 2003
+++ php-src/pear/tests/pear_installer3.phpt Tue Sep 16 23:31:59 2003
@@ -115,8 +115,8 @@
// check to see if chmod works on this OS
chmod($temp_path . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR .
'installertestfooblah.phpt', 0776);
if (fileperms($temp_path . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR .
'installertestfooblah.phpt')
- == $perms) {
- // we are on windows, most likely, so skip this test, but simulate success
+ == $perms && substr(PHP_OS, 0, 3) == 'WIN') {
+ // we are on windows, so skip this test, but simulate success
echo <<<EOF
file permissions are: 776
test valid commitFileTransaction():