php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6944 char / unsigned char mismatch
Submitted: 2000-09-29 17:06 UTC Modified: 2000-09-29 17:13 UTC
From: melchers at cis dot fu-berlin dot de Assigned:
Status: Closed Package: Compile Warning
PHP Version: 3.0.16 OS: IRIX-6.5.8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
17 - 1 = ?
Subscribe to this entry?

 
 [2000-09-29 17:06 UTC] melchers at cis dot fu-berlin dot de
(using php-3.0.17RC1)
file functions/strings.c line 55 and many
other occurences:
return type of function is "char*" but the
type returned (Variable "new") is of type
"unsigned char *".
In many functions the relationship
"char" == "unsigned char" is assumed.
This is lazy programmimng style.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-29 17:13 UTC] rasmus@php.net
Fixed in CVS

I assume your compiler is printing warnings about these.  Send me a list if there are others.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 11:01:30 2024 UTC