php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31173 php_sprintf.c uses wrong type for vsprintf() retval
Submitted: 2004-12-18 04:04 UTC Modified: 2004-12-18 04:17 UTC
From: lukem at NetBSD dot org Assigned:
Status: Closed Package: Compile Warning
PHP Version: 4.3.10 OS: NetBSD
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: lukem at NetBSD dot org
New email:
PHP Version: OS:

 

 [2004-12-18 04:04 UTC] lukem at NetBSD dot org
Description:
------------
php_sprintf.c::php_sprintf() has
  char *ret;
  // [...]
  ret = vsprintf (s, format, args);

yet vsprintf() returns `int' not `char *'.

The fix is trivial; replace
  char *ret;
with
  int ret;
on line 29 of main/php_sprintf.c


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-18 04:17 UTC] sniper@php.net
Was already fixed yesterday.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC