[PHP-DEV] Re: [PHP4BETA] Re: [PHP-DEV] PHP 4.0 Bug #3054: func_num_args() returns incorrect value From: Stanislav Malyshev (stas <email protected>)
Date: 12/28/99

TCA>> <?
TCA>> function test()
TCA>> {
TCA>> var_dump(func_num_args());
TCA>> printf("%d <BR>\n",func_num_args());
TCA>> }
TCA>> test(1);
TCA>> ?>
TCA>> seems that the argument_stack is confused - zeev, andi?

Also seems that's more of printf problem (or parameter passing problem):

<?
function test()
{
    $a = func_num_args();
printf("%d %d <BR>\n",func_num_args(),$a);
}
test(1);
?>

says:

135440000 1 <BR>

-- 
Stanislav Malyshev   stas <email protected>          
+972-3-6139665

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>