You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ /usr/bin/php8.0 /usr/local/bin/phing create-dirsBuildfile: /home/jawira/PhpstormProjects/deleteme/build.xmldemo > create-dirs: [delete] Deleting directory /home/jawira/PhpstormProjects/deleteme/foo[PHP Error] mkdir(): No such file or directory [line 398 of phar:///usr/local/bin/phing/src/Phing/Io/FileSystem.php][PHP Error] mkdir(): No such file or directory [line 398 of phar:///usr/local/bin/phing/src/Phing/Io/FileSystem.php] [mkdir] Created dir: /home/jawira/PhpstormProjects/deleteme/foo/bar/bazBUILD FINISHEDTotal time: 0.1032 seconds
Expected behavior
Execute create-dirs with PHP 7.4 in order to see the expected behaviour:
Describe the bug
MkdirTask
displays errors when creating nested directories in PHP 8.Steps To Reproduce
You can reproduce the problem with the following buildfile:
Execute the target using PHP 8:
Expected behavior
Execute
create-dirs
with PHP 7.4 in order to see the expected behaviour:As you can see in the output, there's no
[PHP Error]
.Additional context
The error occurs in the line:
phing/src/Phing/Io/FileSystem.php
Line 398 in d98239f
The problem is the
@ error suppression operator
. In PHP 8 this operator has been modified, some errors are not silenced anymore.Source: https://php.watch/versions/8.0/fatal-error-suppression
The text was updated successfully, but these errors were encountered: