ID:               46655
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to