<?php
$iterator = new RecursiveIteratorIterator(
new RecursiveDirectoryIterator($dir, RecursiveDirectoryIterator::SKIP_DOTS),
RecursiveIteratorIterator::SELF_FIRST
);
Warning: Undefined variable $dir in /in/JtgYb on line 4
Deprecated: RecursiveDirectoryIterator::__construct(): Passing null to parameter #1 ($directory) of type string is deprecated in /in/JtgYb on line 4
Fatal error: Uncaught ValueError: RecursiveDirectoryIterator::__construct(): Argument #1 ($directory) cannot be empty in /in/JtgYb:4
Stack trace:
#0 /in/JtgYb(4): RecursiveDirectoryIterator->__construct('', 4096)
#1 {main}
thrown in /in/JtgYb on line 4
Process exited with code 255.
Output for 8.0.0 - 8.0.30
Warning: Undefined variable $dir in /in/JtgYb on line 4
Fatal error: Uncaught ValueError: RecursiveDirectoryIterator::__construct(): Argument #1 ($directory) cannot be empty in /in/JtgYb:4
Stack trace:
#0 /in/JtgYb(4): RecursiveDirectoryIterator->__construct('', 4096)
#1 {main}
thrown in /in/JtgYb on line 4
Process exited with code 255.
Notice: Undefined variable: dir in /in/JtgYb on line 4
Fatal error: Uncaught RuntimeException: Directory name must not be empty. in /in/JtgYb:4
Stack trace:
#0 /in/JtgYb(4): RecursiveDirectoryIterator->__construct('', 4096)
#1 {main}
thrown in /in/JtgYb on line 4
Process exited with code 255.
Output for 7.3.32 - 7.3.33, 7.4.26
Fatal error: Uncaught RuntimeException: Directory name must not be empty. in /in/JtgYb:4
Stack trace:
#0 /in/JtgYb(4): RecursiveDirectoryIterator->__construct('', 4096)
#1 {main}
thrown in /in/JtgYb on line 4
Process exited with code 255.
Notice: Undefined variable: dir in /in/JtgYb on line 4
Fatal error: Uncaught exception 'RuntimeException' with message 'Directory name must not be empty.' in /in/JtgYb:4
Stack trace:
#0 /in/JtgYb(4): RecursiveDirectoryIterator->__construct('', 4096)
#1 {main}
thrown in /in/JtgYb on line 4
Process exited with code 255.
Notice: Undefined variable: dir in /in/JtgYb on line 4
Fatal error: Undefined class constant 'SKIP_DOTS' in /in/JtgYb on line 4
Process exited with code 255.
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: dir in /in/JtgYb on line 4
Fatal error: Undefined class constant 'SKIP_DOTS' in /in/JtgYb on line 4
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected ')', expecting '(' in /in/JtgYb on line 4
Process exited with code 255.