[PATCH] sprintf() argnum
| From: | Morten Poulsen | Date: | Thu, 21 Mar 2002 16:30:07 +0000 |
| Subject: | [PATCH] sprintf() argnum | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-81603@lists.php.net to get a copy of this message | ||
Hi,
I discovered a bug in sprintf()'s argument swapping code. It accepts an
argument number of zero, which is invalid. It is handled in different
ways in different libcs, but i figured the best way to handle it in PHP
was to make the functioncall fail. Patch is attached.
Best regards,
Morten
PS. Thanks to mbn for whining :-)
--
Morten Poulsen <morten@afdelingp.dk>
http://www.afdelingp.dk/
Attachment: [text/x-patch] patch-php-4.2.1-dev-argnumfix.diff
Attachment: [text/x-patch] patch-php-4.2.1-dev-argnumfix.diff