Re: PHP 4.0 Bug #3054: func_num_args() returns incorrect value

From: Date: Tue, 28 Dec 1999 11:20:47 +0000
Subject: Re: PHP 4.0 Bug #3054: func_num_args() returns incorrect value
References: 1  Groups: php.dev php.version4 
Request: Send a blank email to php-dev+get-14079@lists.php.net to get a copy of this message
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@palmtopsoftware.com wrote: > From: Jamie_Whitham@palmtopsoftware.com > 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@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > 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

« previous php.dev (#14079) next »