I just read this post that says users with high reputation can undelete questions. I hope I'm doing things right, since it's unclear to me how am I supposed to ask for "undeletion".
My question was deleted by the "Community" user, because it received -2 votes and it's been 30 days since it was reopened (it was closed due to downvotes).
However one might (not) like my question, it certainly fulfills all criteria to be a question here. The reasons are as follows:
- Many users on Stack Overflow use the undocumented
"rw+"
PHP mode in their answers; - I'm asking what this undocumented mode does;
- I only received 2 answers: check the documentation (I posted the link to the documentation in my original question - there's nothing there about this), and that the
"rw+"
mode is a combination of ther
andw+
modes (it isn't, so this answer is wrong). Therefore, it still has no answers, and no one that commented my question had a correct answer for it.
Could someone please undelete it? I still want to know the answer and I do think it's a relevant question for other users (even though some might, apparently, hate it).
I uploaded an image of the question, with all comments expanded:
<?php $file = somefilewith.data; fopen($file, "rw+"); fwrite($file, "data");?>
. Like I said in the edit,w+
truncates the file,rw+
does not truncate it. This answer, for example, will not work itrw+
is substituted forw+
: stackoverflow.com/a/16815150/4621141 . I can put this in the question if you think it will help, but it seems to be a bit redundant for me, since all it's only purpose is to show that one mode truncates the file while the other doesn'techo
statements. Part of the problem might be that this feels somewhat esoteric, and unless a reader is particularly invested in the bug, they probably won't want to do the remaining legwork to see if you are correct.