|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2019-12-10 11:38 UTC] requinix@php.net
-Status: Open
+Status: Feedback
[2019-12-10 11:38 UTC] requinix@php.net
[2019-12-10 12:58 UTC] michael dot vorisek at email dot cz
[2019-12-10 13:06 UTC] requinix@php.net
[2019-12-10 13:22 UTC] requinix@php.net
[2019-12-10 13:30 UTC] michael dot vorisek at email dot cz
[2019-12-10 14:12 UTC] requinix@php.net
[2019-12-10 14:28 UTC] michael dot vorisek at email dot cz
[2019-12-10 14:52 UTC] fgfgfgfdf at somewhere dot com
[2019-12-10 18:13 UTC] cmb@php.net
[2019-12-10 18:14 UTC] cmb@php.net
-Status: Feedback
+Status: Open
-Assigned To:
+Assigned To: cmb
[2019-12-10 18:14 UTC] cmb@php.net
[2020-01-20 08:26 UTC] cmb@php.net
-Status: Assigned
+Status: Open
-Assigned To: cmb
+Assigned To:
[2023-07-05 10:16 UTC] fisska at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 01:00:01 2025 UTC |
Description: ------------ After spending a lot of time why PHP app does work on one PC and not on another, comparing gigabytes of logs, I find very weird behaviour of core PHP file function. var_dump(file_exists('C:x.txt')); if the file "C:/x.txt" exists, PHP produces different results with TS and NTS builds on Windows if the path is without slash after "C:", i.e. - output for "C:/x.txt" is corrent and consitent across TS and NTS builds - output for "C:x.txt" differs across TS and NTS builds The path format without slash after "C:" is not supported in explorer.exe, so for me it seems that paths like "C:something" should be considered invalid and the TS build should be fixed to always return false. Note: other file functions are probably affected too. Test script: --------------- // 1. manually create any/empty file and save it under "C:/x.txt" // 2. run this code with PHP TS and PHP NTS var_dump(ZEND_THREAD_SAFE); var_dump(file_exists('C:/x.txt')); var_dump(file_exists('C:x.txt')); // 3. notice the different output of the 3rd line Expected result: ---------------- // expected output from PHP TS and NTS bool(true) OR bool(false) // dump of ZEND_THREAD_SAFE constant bool(true) bool(true) OR bool(false) // TBD, path without slash after "C:" - see desc., but output need to be consistent across TS and NTS PHP builds Actual result: -------------- // output from PHP TS bool(true) bool(true) bool(true) // output from PHP NTS bool(false) bool(true) bool(false)