|  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:
Solve the problem:
2 + 14 = ?
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-29 17:13 UTC]
Fixed in CVS

I assume your compiler is printing warnings about these.  Send me a list if there are others.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Dec 09 10:01:28 2023 UTC