patch for sprintf() argnum

From: Date: Fri, 15 Mar 2002 16:22:19 +0000
Subject: patch for sprintf() argnum
Groups: php.dev 
Request: Send a blank email to php-dev+get-81281@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 :-)

Attachment: [text/x-patch] patch-php-4.1.2-argnumfix.diff
« previous php.dev (#81281) next »