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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: melchers at cis dot fu-berlin dot de
New email:
PHP Version: OS:

 

 [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-2022 The PHP Group
All rights reserved.
Last updated: Wed Oct 05 21:05:52 2022 UTC