php.net |  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
 [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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-20 15:37 UTC] sander@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip


 [2002-09-21 01:58 UTC] sniper@php.net
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: Sat Dec 21 16:01:28 2024 UTC