#31173 [NEW]: php_sprintf.c uses wrong type for vsprintf() retval
| From: | lukem at NetBSD dot org | Date: | Sat, 18 Dec 2004 03:04:51 +0000 |
| Subject: | #31173 [NEW]: php_sprintf.c uses wrong type for vsprintf() retval | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-70580@lists.php.net to get a copy of this message | ||
From: lukem at NetBSD dot org
Operating system: NetBSD
PHP version: 4.3.10
PHP Bug Type: Compile Warning
Bug description: php_sprintf.c uses wrong type for vsprintf() retval
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
--
Edit bug report at http://bugs.php.net/?id=31173&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31173&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31173&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31173&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31173&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31173&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31173&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31173&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31173&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31173&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31173&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=31173&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=31173&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31173&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31173&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31173&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31173&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31173&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31173&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31173&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31173&r=mysqlcfg