Doc #65699 [Com]: Problem in comment section for end() documentation

From: Date: Wed, 18 Sep 2013 17:17:49 +0000
Subject: Doc #65699 [Com]: Problem in comment section for end() documentation
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10272@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65699&edit=1 ID: 65699 Comment by: gabri dot ns at gmail dot com Reported by: joem at numberfour dot eu Summary: Problem in comment section for end() documentation Status: Open Type: Documentation Problem Package: *General Issues PHP Version: Irrelevant Block user comment: N Private report: N New Comment: well... thats the rule given by the documentation team. by the way, if you keep asking about this, it is possible that they will also closing down the user note feature, just like they did with chm documentation when there is so much report about it, without even checking that there is a lot other same report. i will not respond any further. if you still need help, open http://www.php.net/support.php and ask there. or you could drop me an email. Previous Comments: ------------------------------------------------------------------------ [2013-09-18 17:11:16] joem at numberfour dot eu That is not a good enough way to correct misleading comments because it doesn't explain why it is wrong. ------------------------------------------------------------------------ [2013-09-18 17:07:21] gabri dot ns at gmail dot com report bug if you find problem with php or documentation, not with comment or user note. if you see comments with bad information, give it a vote down. ------------------------------------------------------------------------ [2013-09-18 16:58:41] joem at numberfour dot eu Right, however the comment instructions say not to refer to other comments. They also ask to file a bug if there are any problems. That comment clearly will lead some people down a buggy path and so should be corrected/deleted/added to. What is the correct thing to do when you see comments with bad information? ------------------------------------------------------------------------ [2013-09-18 16:55:00] gabri dot ns at gmail dot com first off all, comment section is not part off documentation. its just a means for user to share knowledge. if its usefull, it is possible to include it to the documentation. secondly, don't trust any off code in it, since it maybe coded in different environtment with yours. try it yourself... if it work, take it. if don't, leave it. or may be you can read the documentation to find the problem with the code, yourself. don't report it here. if you need help, open http://www.php.net/support.php and join one of available option there. lastly, try open http://www.php.net/references and http://www.php.net/array_pop to find the source of evil from the code. regard, gabri ------------------------------------------------------------------------ [2013-09-18 16:26:30] joem at numberfour dot eu Description: ------------ --- From manual page: http://www.php.net/function.end --- In comment this line: $lastkey = array_pop(array_keys($arr)); Would result in: Strict standards: Only variables should be passed by reference in php shell code on line 1 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=65699&edit=1

« previous php.doc.bugs (#10272) next »