2
After the system upgrade (to Windows 10 1709) started giving the following error in running PHP:
Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
Fatal error: Unknown: Failed opening required 'D:\...\index.php' (include_path='C:\xampp\php\pear') in Unknown on line 0
This happens if you use php’s Built-In (php -S 0.0.0.0:80
) how to use the apache XAMPP service.
However, if you run the same drive C project: (drive where XMPP is installed) the error does not occur.
Can anyone explain why this behavior?
Obs: Note that the error is in the file Unknown on the line 0... ie, it gets completely lost. Also note that the error did not occur before Windows update. The error did persist after the reinstallation of XAMPP
It can also be by the name of the PHP file, which cannot have special characters (accents, commas, etc).
– Filipe Fernandes
Thank you @Filipefernandes but, as you can see in the example, no special characters are used. The reason, as shown in the accepted answer below, is another
– Szag-Ot