#46655 [Opn->Bgs]: func_num_args(); returns nothing when inside a die
| From: | lbarnaud@php.net | Date: | Sun, 23 Nov 2008 21:27:49 +0000 |
| Subject: | #46655 [Opn->Bgs]: func_num_args(); returns nothing when inside a die | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-131236@lists.php.net to get a copy of this message | ||
ID: 46655
Updated by: lbarnaud@php.net
Reported By: nirazuelos at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Output Control
Operating System: Windows Vista Ultimate 64-bit
PHP Version: 5.2.6
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
You need to cast the result of func_num_args() to a string.
See http://php.net/die
Previous Comments:
------------------------------------------------------------------------
[2008-11-23 21:12:09] nirazuelos at gmail dot com
Description:
------------
func_num_args(); returns nothing when using inside a die.
Reproduce code:
---------------
<?php
function variableArg()
{
die(func_num_args());
}
variableArg("Arg1", "Arg2", "Arg3");
Expected result:
----------------
3
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46655&edit=1