|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18992 type error in ext/gd/gd.c line l=strlen(str)
Submitted: 2002-08-20 14:50 UTC Modified: 2002-09-21 01:58 UTC
From: rdoetjes at phonax dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 4.2.2 OS: Tru64 V5.0A
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-08-20 14:50 UTC] rdoetjes at phonax dot com
There is a styping error in the PHP releases (I noticed 4.2.1 and 4.2.2) so most likely it will be in previsou releases also.

I'm compiling PHP with Tru64's cc it complains that strlen argument is a unsigned char* instead of a char*. (Which he's completely right about).

I changed the line to:   l = strlen((char *)str);
I don't understand why it's being casted to a unsigned char* in the line above it anyway, I think you have a good cause for that.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-20 15:37 UTC]
Please try using this CVS snapshot:
For Windows:

 [2002-09-21 01:58 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 14 04:01:30 2024 UTC