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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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: Mon Nov 28 20:05:53 2022 UTC