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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: hans at linux dot gelrevision dot nl
New email:
PHP Version: OS:

 

 [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-2018 The PHP Group
All rights reserved.
Last updated: Fri Nov 16 11:01:25 2018 UTC