-
Notifications
You must be signed in to change notification settings - Fork 121
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
touch() missing permission cause warning #7
Comments
Do you have any scenario to reproduce that? For so far, i don't manage to get that... |
Not yet, but I'll try to investigate. 2011/3/20 theseer <
Francois Mazerolle;
|
Ok, I got the problem with the latest version too, here's all the data I've been able to gather so far:
I got the error 5 times ( as there's 5 files in the tests/data/ folder ) The file system is CIFS. And the file listing is the one AFTER I try to ran phpdox. ( so the file update time is not modified ). If I touch tests/data/test0.php , the file will be modified correctly: Here's the full output of a normal execution :
And here's the same command with sudo ( touch is no more a problem, but the xml file is still not generated) :
I've also notice that the first time I run the process (when the xml/ folder doesn't exist) the error will concern the test0.php.xml file. The next time, it will concern test4.php.xml. Finally, here's the resulting content of the xml/ folder:
Note that now I can reproduce that behaviour at will. I'll try to edit my fstab to have the uid:gid 1000:1000, and I'll come back with further information is anything is changed. |
Quick Update: However, the --generate step still return the same test*.php.xml not found error. |
I've been searching for the touch issue on google and found various reports about it, all referring to permission problems on the filesystem. So i consider that a system setup problem, not a phpdox related bug. Since there is about zero actual error checking and logging yet, this is for sure something that we'll fix from the reporting point of view. I'll look into the other problem, but for tracking purposes, i'll close this bug and move the new problem over to a new bug :) |
Abstract:
Sometime when I run phpdox without sudo it, I'll receive 1 warning per file scanned:
Expected:
A human readable error explaining the situation instead of a debug error.
Actual result:
The text was updated successfully, but these errors were encountered: