#18992 [NEW]: type error in ext/gd/gd.c line l=strlen(str)

From: Date: Tue, 20 Aug 2002 18:50:36 +0000
Subject: #18992 [NEW]: type error in ext/gd/gd.c line l=strlen(str)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17332@lists.php.net to get a copy of this message
From: rdoetjes@phonax.com Operating system: Tru64 V5.0A PHP version: 4.2.2 PHP Bug Type: Compile Failure Bug description: type error in ext/gd/gd.c line l=strlen(str) 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. -- Edit bug report at http://bugs.php.net/?id=18992&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=18992&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=18992&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18992&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18992&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18992&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18992&r=support Expected behavior: http://bugs.php.net/fix.php?id=18992&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18992&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18992&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18992&r=globals

« previous php.bugs (#17332) next »