#19252 [Csd]: function only accepts scalars or constants as default values
| From: | jc at mega-bucks dot co dot jp | Date: | Thu, 19 Jun 2003 11:21:40 +0000 |
| Subject: | #19252 [Csd]: function only accepts scalars or constants as default values | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969354620@lists.php.net to get a copy of this message | ||
ID: 19252
User updated by: jc at mega-bucks dot co dot jp
Reported By: jc at mega-bucks dot co dot jp
Status: Closed
Bug Type: Documentation problem
Operating System: all
PHP Version: 4.3.0
New Comment:
Thanks! Keep up the good work. God knows *I* hate documentting my code
so I highly appreciate the work that goes in to PHP's documentation!
Previous Comments:
------------------------------------------------------------------------
[2003-06-19 06:06:50] betz@php.net
Just incorporated your suggestion into the manual.
Next time the manual is build, the changes will show up on the
website.
Thanks for your report
------------------------------------------------------------------------
[2003-06-17 04:35:20] jc at mega-bucks dot co dot jp
I agree that is *is* documented, even if a bit hidden. I am happy if
the documentation is left as is or changed to this:
"The default value must be a constant expression, not (for example) a
variable, class member, <NEW ADDITION> or function call </NEW
ADDITION>.
Thanks.
------------------------------------------------------------------------
[2003-06-17 04:27:59] betz@php.net
It seems this is documented at:
http://www.php.net/manual/en/functions.arguments.php#functions.arguments.default
Maybe a bit hidden
------------------------------------------------------------------------
[2003-01-31 13:04:32] philip@php.net
Yeah, we may as well mention this here:
file: phpdoc/{lang}/language/functions.xml
section: <sect2 id="functions.arguments.default">
------------------------------------------------------------------------
[2002-09-26 19:56:13] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/19252
--
Edit this bug report at http://bugs.php.net/?id=19252&edit=1