Skip to content

File:chmod(__DIR__, 750, true, true, true); triggers chmod #22227

@remco-pc

Description

@remco-pc

Description

The following code:

File:chmod(__DIR__, 750, true, true, true);
<?php

Resulted in this output:

ArgumentCountError: chmod() expects exactly 2 arguments, 5 given in /Application/vendor/raxon/framework/src/Cli/Cache/Plugin/Cache.Clear.php:22

But I expected this output instead:
it should be :

File::chmod() 

so the call was a static call to the class file, but was missing a ':' and because of that it does unwanted behaviour like triggering a different function named chmod

PHP Version

app version
Raxon-framework version: 2026.06.1233, Built: 2026-06-02 09:53:26
Copyright (c) 2018-2026 Remco van der Velde
Installation directory: /Application/

PHP 8.4.21 Copyright (c) The PHP Group
root@a99653007cb0:/Application#

Operating System

Debian Trixie

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions