-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: PHP 7.3.5 and 7.4.1 windows folder name ending with period not working #14858
Comments
Can you try with mkdir($dir, null, true); |
@Jeckerson https://github.com/phalcon/cphalcon/blob/4.0.x/phalcon/Storage/Adapter/Stream.zep#L277 if !is_dir(directory) {
mkdir(directory, 0777, true);
} |
Are you on Phalcon 4.0.4? |
@ruudboon 4.0.3 |
Updated to 4.0.4 and problem persists |
Thnx for testing on the upgrade. I did some fixes in 4.0.1 related in this area so wanted to be sure you’re not on 4.0.0. |
#14858 - Check folder name ending with period
After tests in all 3 envs (Linux and Mac) via integration tests. Meanwhile Windows tests I did manually. In Windows, if you try to create folder with dot at the end, it will remove it and create without it. Same thing if create via cmd and Meanwhile in PHP it will output error and do not create an folder:
Probably make sense to report bug to PHP... @naumanjkhan Any way, in your case, just replace /cc @phalcon/core-team Suggestions what to do from our side. |
@Jeckerson thank you for suggestion but that is what I have already done, changed the file name. But I will have to remember it and will have to replace wherever I am using the filename with dots for cache. Wouldn't it be possible if it is handled internally and developers don't have to remember about replacing dots on windows environment (an extra burden)? |
@Jeckerson I think the best approach on this would be to replace the |
Resolved in #14893 Thank you @naumanjkhan |
* 4.0.x: (116 commits) Regenerating ext again Updated changelog for PECL Updated optimized build files Generating ext folder Updated version for release [#14858] - PHPCS [#14858] - Corrected and added more tests [#14858] - Updated changelog [#14858] - Moved models to check outside the models folder to avoid collisions [#14858] - Fixed test [#14858] - Fixed dirFromFile to remove "." for Windows add backer (github) Update changelog [skip ci] Update tests schemas Add condition to add 'default NULL' with 'ON UPDATE' Fix query Add test case with 'default null on update' Remove Products model Move setDatabase() inside mvcModelCriteriaJoinManyToManyMultipleSchema() method Remove duplicate setDatabase() method ...
Warning: mkdir(): Permission denied
https://github.com/phalcon/cphalcon/blob/4.0.x/phalcon/Helper/Str.zep#L210
cache file name has dots in it, e.g;
index.12321321.cache.html
Details
The text was updated successfully, but these errors were encountered: