php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7394 function chmod seems to exist in the windows versions of php
Submitted: 2000-10-22 18:39 UTC Modified: 2005-09-02 07:58 UTC
From: hans at linux dot gelrevision dot nl Assigned:
Status: Closed Package: *Web Server problem
PHP Version: 3 OS: Windows (any?)
Private report: No CVE-ID: None
 [2000-10-22 18:39 UTC] hans at linux dot gelrevision dot nl
Hi all,

Since I started to write a script that uses image caching I wanted to make it safe. On *nix we can use chmod to give it 644 rights. On windows that function seems to exist too (php3 and 4 I've been told both return 1 with the function_exists()).  Therefor I have to check the env. vars. Now both $OS and $OSTYPE seems to exist.

I would like to suggest to get the *nix specific functions out of the windows version.

Regards,

Hans Wolters

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 08:01:27 2024 UTC