SMB2's Tree Connect Request is not sent from Windows 10
Posted: 15. August 2016 02:43
When Apache on Windows 10 starts from service, shared files supported by SMB2 can't be read.
If using Windows 7, all files can be read. And if Apache starts from XAMPP Control Panel (not from service), files can be read.
Is this XAMPP/Apache Bugs ?
*** My Environment ***
Windows 10 Pro, ver. 1607, OS build 14393.51
Apache 2.4.17
PHP 5.6.23
Target Shared Device: QNAP NAS, TS231
***
*** Error Message ***
Warning: file_get_contents(\TS231-1\fs_data\data.xml): failed to open stream: Invalid argument in C:\xampp\htdocs\index.php on line 16
bool(false)
***
*** WireShark ***
***
If using Windows 7, all files can be read. And if Apache starts from XAMPP Control Panel (not from service), files can be read.
Is this XAMPP/Apache Bugs ?
*** My Environment ***
Windows 10 Pro, ver. 1607, OS build 14393.51
Apache 2.4.17
PHP 5.6.23
Target Shared Device: QNAP NAS, TS231
***
- Code: Select all
<?php
$file_path = "\\\\TS231-1\\fs_data\\data.xml";
var_dump(file_get_contents($file_path));
?>
*** Error Message ***
Warning: file_get_contents(\TS231-1\fs_data\data.xml): failed to open stream: Invalid argument in C:\xampp\htdocs\index.php on line 16
bool(false)
***
*** WireShark ***
***