[php-src] Issue #22227: File:chmod(__DIR__, 750, true, true, true); triggers chmod
| From: | remco-pc | Date: | Thu, 04 Jun 2026 15:51:39 +0000 |
| Subject: | [php-src] Issue #22227: File:chmod(__DIR__, 750, true, true, true); triggers chmod | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-252164@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/22227
Author: remco-pc
### Description
The following code:
```php
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 :
```php
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
```plain
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