Bug #69449 [Nab]: htmlspecialchars() flags documentation isn't complete

From: Date: Tue, 14 Apr 2015 20:11:57 +0000
Subject: Bug #69449 [Nab]: htmlspecialchars() flags documentation isn't complete
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12147@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69449&edit=1 ID: 69449 User updated by: olafvdspek at gmail dot com Reported by: olafvdspek at gmail dot com Summary: htmlspecialchars() flags documentation isn't complete Status: Not a bug Type: Bug Package: Documentation problem Operating System: * PHP Version: Irrelevant Assigned To: cmb Block user comment: N Private report: N New Comment: I know the default is overriden and bitmasks are nothing special, but what does the function do in that case? It's not clear from the documentation. Previous Comments: ------------------------------------------------------------------------ [2015-04-14 19:38:09] cmb@php.net In these cases the behavior is as usual when one passes an argument to an optional parameter: the passed argument overrides the default. There is nothing special to bitmasks in this regard. I don't see that this needs explicit documentation for individual functions. ------------------------------------------------------------------------ [2015-04-14 17:48:28] olafvdspek at gmail dot com Description: ------------ > The default is ENT_COMPAT | ENT_HTML401. http://php.net/htmlspecialchars So what does it do when you pass just ENT_HTML401? Or just ENT_COMPAT? Or both ENT_QUOTES and ENT_NOQUOTES? Test script: --------------- - ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=69449&edit=1

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