php4-beta | 199912
Date: 12/28/99
- Next message: Stanislav Malyshev: "Re: [PHP4BETA] Re: [PHP-DEV] PHP 4.0 Bug #3054: func_num_args() returns incorrect value"
- Previous message: Thies C. Arntzen: "Re: [PHP4BETA] ABR: Array bounds read in ZTS mode + explanation."
- Next in thread: Stanislav Malyshev: "Re: [PHP4BETA] Re: [PHP-DEV] PHP 4.0 Bug #3054: func_num_args() returns incorrect value"
- Reply: Stanislav Malyshev: "Re: [PHP4BETA] Re: [PHP-DEV] PHP 4.0 Bug #3054: func_num_args() returns incorrect value"
- Reply: Andi Gutmans: "Re: [PHP4BETA] Re: [PHP-DEV] PHP 4.0 Bug #3054: func_num_args() returns incorrect value"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
you found a bug!
<?
function test()
{
var_dump(func_num_args());
printf("%d <BR>\n",func_num_args());
}
test(1);
?>
prints:
int(1)
1487744 <BR>
seems that the argument_stack is confused - zeev, andi?
tc
On 28 Dec 1999 Jamie_Whitham <email protected> wrote:
> From: Jamie_Whitham <email protected>
> Operating system: Win32
> PHP version: 4.0 Beta 3
> PHP Bug Type: Misbehaving function
> Bug description: func_num_args() returns incorrect value
>
> func_num_args() seems to be returning 14318520 when I am only passing 11 arguments to my function. Is this a bug? Or am I doing something wrong?
>
> <?
> function test()
> {
> printf ("%d <BR>\n",func_num_args());
> }
> test("fds","sdf",3,3,5);
> ?>
>
> I downloaded the binaries from your site so I have not complied it myself.
>
> My php.ini file is as your default (+php directory)
>
> Also how do I remove a note that I have added to the online manual? I added this to func_num_args() before reading the text about not putting bugs there, sorry :-(
>
>
> Thanks
>
> Jamie
>
>
> --
> 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>
>
>
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany
-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>
- Next message: Stanislav Malyshev: "Re: [PHP4BETA] Re: [PHP-DEV] PHP 4.0 Bug #3054: func_num_args() returns incorrect value"
- Previous message: Thies C. Arntzen: "Re: [PHP4BETA] ABR: Array bounds read in ZTS mode + explanation."
- Next in thread: Stanislav Malyshev: "Re: [PHP4BETA] Re: [PHP-DEV] PHP 4.0 Bug #3054: func_num_args() returns incorrect value"
- Reply: Stanislav Malyshev: "Re: [PHP4BETA] Re: [PHP-DEV] PHP 4.0 Bug #3054: func_num_args() returns incorrect value"
- Reply: Andi Gutmans: "Re: [PHP4BETA] Re: [PHP-DEV] PHP 4.0 Bug #3054: func_num_args() returns incorrect value"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

