php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18950 Many warnings building withTru64 Unix compiler
Submitted: 2002-08-16 17:11 UTC Modified: 2002-09-21 01:56 UTC
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:2 (100.0%)
From: vlb at gene dot com Assigned:
Status: No Feedback Package: Compile Warning
PHP Version: 4.2.2 OS: Tru64 Unix
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: vlb at gene dot com
New email:
PHP Version: OS:

 

 [2002-08-16 17:11 UTC] vlb at gene dot com
The majority of these are signed/unsigned mismatches

Making all in ext

Making all imap
.../ext/imap/

cc: Warning: php_imap.c, line 635: In this statement, the referenced type of the pointer value "acur->text.data" is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
			php_error(E_NOTICE, acur->LTEXT);
--------------------------------------------^
cc: Warning: php_imap.c, line 1063: In this statement, the referenced type of the pointer value ""STORAGE"" is "char", which is not compatible with "unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	limits.text.data = "STORAGE";
--------^
cc: Warning: php_imap.c, line 1389: In this statement, the referenced type of the pointer value "cur->text.data" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
		add_next_index_string(return_value, cur->LTEXT, 1);
----------------------------------------------------^
cc: Warning: php_imap.c, line 1431: In this statement, the referenced type of the pointer value "cur->text.data" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
		add_property_string(mboxob, "name", cur->LTEXT, 1);
----------------^
cc: Warning: php_imap.c, line 1476: In this statement, the referenced type of the pointer value "cur->text.data" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
		add_next_index_string(return_value, cur->LTEXT, 1);
----------------------------------------------------^
cc: Warning: php_imap.c, line 1714: In this statement, the referenced type of the pointer value "cur->text.data" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
		add_next_index_string(return_value, cur->LTEXT, 1);
----------------------------------------------------^
cc: Warning: php_imap.c, line 1756: In this statement, the referenced type of the pointer value "cur->text.data" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
		add_property_string(mboxob, "name", cur->LTEXT, 1);
----------------^
cc: Warning: php_imap.c, line 1991: In this statement, the referenced type of the pointer value "rfc822_binary(...)" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	decode = rfc822_binary(Z_STRVAL_PP(text), Z_STRLEN_PP(text), &newlength);
--------^
cc: Warning: php_imap.c, line 2157: In the initializer for __s, the referenced type of the pointer value "(dest.data)" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	RETURN_STRINGL(dest.data, strlen(dest.data), 1);
--------^
cc: Warning: php_imap.c, line 2157: In the initializer for __l, the referenced type of the pointer value "dest.data" is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	RETURN_STRINGL(dest.data, strlen(dest.data), 1);
--------^
cc: Warning: php_imap.c, line 2291: In this statement, the expression "*outp++|=outp[1]>>4" modifies "outp", and fetches its value in a computation that is not used to produce the modified value without an intervening sequence point.  This behavior is undefined. (undefvarfetch)
				*outp++ |= outp[1] >> 4;
--------------------------------^
cc: Warning: php_imap.c, line 2297: In this statement, the expression "*outp++|=outp[1]>>2" modifies "outp", and fetches its value in a computation that is not used to produce the modified value without an intervening sequence point.  This behavior is undefined. (undefvarfetch)
				*outp++ |= outp[1] >> 2;
--------------------------------^
cc: Warning: php_imap.c, line 2319: In the initializer for __s, the referenced type of the pointer value "(out)" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	RETURN_STRINGL(out, outlen, 0);
--------^
cc: Warning: php_imap.c, line 2401: In this statement, the expression "*outp++=("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+,"[(*outp)&0X000000000000003F])" modifies "outp", and fetches its value in a computation that is not used to produce the modified value without an intervening sequence point.  This behavior is undefined. (undefvarfetch)
				*outp++ = B64(*outp);
--------------------------------^
cc: Warning: php_imap.c, line 2414: In this statement, the expression "*outp++=("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+,"[(*outp|*inp>>4)&0X000000000000003F])" modifies "outp", and fetches its value in a computation that is not used to produce the modified value without an intervening sequence point.  This behavior is undefined. (undefvarfetch)
					*outp++ = B64(*outp | *inp >> 4);
----------------------------------------^
cc: Warning: php_imap.c, line 2419: In this statement, the expression "*outp++=("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+,"[(*outp|*inp>>6)&0X000000000000003F])" modifies "outp", and fetches its value in a computation that is not used to produce the modified value without an intervening sequence point.  This behavior is undefined. (undefvarfetch)
					*outp++ = B64(*outp | *inp >> 6);
----------------------------------------^
cc: Warning: php_imap.c, line 2437: In the initializer for __s, the referenced type of the pointer value "(out)" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	RETURN_STRINGL(out, outlen, 0);
--------^
cc: Warning: php_imap.c, line 3022: In this statement, the referenced type of the pointer value "(char ...)fs_get(...)" is "char", which is not compatible with "unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
			bod->contents.text.data = (char *) fs_get(Z_STRLEN_PP(pvalue) + 1);
------------------------^
cc: Warning: php_imap.c, line 3108: In this statement, the referenced type of the pointer value "(char ...)fs_get(...)" is "char", which is not compatible with "unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
				bod->contents.text.data = (char *) fs_get(Z_STRLEN_PP(pvalue) + 1);
--------------------------------^
cc: Warning: php_imap.c, line 3190: In this statement, the referenced type of the pointer value "bod->contents.text.data" is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
				tempstring=emalloc(strlen(bod->contents.text.data)+strlen(CRLF)+strlen(mystring)+1);
-------------------------------------------^
cc: Warning: php_imap.c, line 3208: In this statement, the referenced type of the pointer value "bod->contents.text.data" is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
			tempstring=emalloc(strlen(bod->contents.text.data)+strlen(CRLF)+strlen(mystring)+1);
-----------------------------------^
cc: Warning: php_imap.c, line 3408: In this statement, the referenced type of the pointer value "cur->text.data" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
		add_next_index_string(return_value, cur->LTEXT, 1);
----------------------------------------------------^
cc: Warning: php_imap.c, line 3435: In this statement, the referenced type of the pointer value "cur->text.data" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
		add_next_index_string(return_value, cur->LTEXT, 1);
----------------------------------------------------^
cc: Warning: php_imap.c, line 3461: In the initializer for __s, the referenced type of the pointer value "(cur->text.data)" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
			RETURN_STRING(cur->LTEXT, 1);
------------------------^
cc: Warning: php_imap.c, line 3945: In this statement, the referenced type of the pointer value "cpystr(...)" is "char", which is not compatible with "unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
			IMAPG(imap_alertstack)->LSIZE = strlen(IMAPG(imap_alertstack)->LTEXT = cpystr(str));
---------------------------------------------------------------^
cc: Warning: php_imap.c, line 3945: In this statement, the referenced type of the pointer value "(((zend_imap_globals ...)(*((void ...)tsrm_ls))[((imap_globals_id)-1)])->imap_alertstack)->text.data=cpystr(...)" is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
			IMAPG(imap_alertstack)->LSIZE = strlen(IMAPG(imap_alertstack)->LTEXT = cpystr(str));
---------------------------------------------------------------^
cc: Warning: php_imap.c, line 3954: In this statement, the referenced type of the pointer value "cpystr(...)" is "char", which is not compatible with "unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
			cur->LSIZE = strlen(cur->LTEXT = cpystr(str));
--------------------------------------------^
cc: Warning: php_imap.c, line 3954: In this statement, the referenced type of the pointer value "cur->text.data=cpystr(...)" is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
			cur->LSIZE = strlen(cur->LTEXT = cpystr(str));
--------------------------------------------^
cc: Warning: php_imap.c, line 3971: In this statement, the referenced type of the pointer value "cpystr(...)" is "char", which is not compatible with "unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
			IMAPG(imap_folder_objects)->LSIZE=strlen(IMAPG(imap_folder_objects)->LTEXT=cpystr(mailbox));
-----------------------------------------------------------------^
cc: Warning: php_imap.c, line 3971: In this statement, the referenced type of the pointer value "(((zend_imap_globals ...)(*((void ...)tsrm_ls))[((imap_globals_id)-1)])->imap_folder_objects)->text.data=cpystr(...)" is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
			IMAPG(imap_folder_objects)->LSIZE=strlen(IMAPG(imap_folder_objects)->LTEXT=cpystr(mailbox));
-----------------------------------------------------------------^
cc: Warning: php_imap.c, line 3982: In this statement, the referenced type of the pointer value "cpystr(...)" is "char", which is not compatible with "unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
			ocur->LSIZE = strlen(ocur->LTEXT = cpystr(mailbox));
---------------------------------------------^
cc: Warning: php_imap.c, line 3982: In this statement, the referenced type of the pointer value "ocur->text.data=cpystr(...)" is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
			ocur->LSIZE = strlen(ocur->LTEXT = cpystr(mailbox));
---------------------------------------------^
cc: Warning: php_imap.c, line 3993: In this statement, the referenced type of the pointer value "cpystr(...)" is "char", which is not compatible with "unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
				IMAPG(imap_folders)->LSIZE=strlen(IMAPG(imap_folders)->LTEXT=cpystr(mailbox));
------------------------------------------------------------------^
cc: Warning: php_imap.c, line 3993: In this statement, the referenced type of the pointer value "(((zend_imap_globals ...)(*((void ...)tsrm_ls))[((imap_globals_id)-1)])->imap_folders)->text.data=cpystr(...)" is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
				IMAPG(imap_folders)->LSIZE=strlen(IMAPG(imap_folders)->LTEXT=cpystr(mailbox));
------------------------------------------------------------------^
cc: Warning: php_imap.c, line 4002: In this statement, the referenced type of the pointer value "cpystr(...)" is "char", which is not compatible with "unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
				cur->LSIZE = strlen (cur->LTEXT = cpystr (mailbox));
-----------------------------------------------------^
cc: Warning: php_imap.c, line 4002: In this statement, the referenced type of the pointer value "cur->text.data=cpystr(...)" is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
				cur->LSIZE = strlen (cur->LTEXT = cpystr (mailbox));
-----------------------------------------------------^
cc: Warning: php_imap.c, line 4020: In this statement, the referenced type of the pointer value "cpystr(...)" is "char", which is not compatible with "unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
			IMAPG(imap_sfolder_objects)->LSIZE=strlen(IMAPG(imap_sfolder_objects)->LTEXT=cpystr(mailbox));
------------------------------------------------------------------^
cc: Warning: php_imap.c, line 4020: In this statement, the referenced type of the pointer value "(((zend_imap_globals ...)(*((void ...)tsrm_ls))[((imap_globals_id)-1)])->imap_sfolder_objects)->text.data=cpystr(...)" is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
			IMAPG(imap_sfolder_objects)->LSIZE=strlen(IMAPG(imap_sfolder_objects)->LTEXT=cpystr(mailbox));
------------------------------------------------------------------^
cc: Warning: php_imap.c, line 4031: In this statement, the referenced type of the pointer value "cpystr(...)" is "char", which is not compatible with "unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
			ocur->LSIZE=strlen(ocur->LTEXT = cpystr(mailbox));
-------------------------------------------^
cc: Warning: php_imap.c, line 4031: In this statement, the referenced type of the pointer value "ocur->text.data=cpystr(...)" is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
			ocur->LSIZE=strlen(ocur->LTEXT = cpystr(mailbox));
-------------------------------------------^
cc: Warning: php_imap.c, line 4040: In this statement, the referenced type of the pointer value "cpystr(...)" is "char", which is not compatible with "unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
			IMAPG(imap_sfolders)->LSIZE=strlen(IMAPG(imap_sfolders)->LTEXT=cpystr(mailbox));
-----------------------------------------------------------^
cc: Warning: php_imap.c, line 4040: In this statement, the referenced type of the pointer value "(((zend_imap_globals ...)(*((void ...)tsrm_ls))[((imap_globals_id)-1)])->imap_sfolders)->text.data=cpystr(...)" is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
			IMAPG(imap_sfolders)->LSIZE=strlen(IMAPG(imap_sfolders)->LTEXT=cpystr(mailbox));
-----------------------------------------------------------^
cc: Warning: php_imap.c, line 4049: In this statement, the referenced type of the pointer value "cpystr(...)" is "char", which is not compatible with "unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
			cur->LSIZE = strlen (cur->LTEXT = cpystr (mailbox));
---------------------------------------------^
cc: Warning: php_imap.c, line 4049: In this statement, the referenced type of the pointer value "cur->text.data=cpystr(...)" is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
			cur->LSIZE = strlen (cur->LTEXT = cpystr (mailbox));
---------------------------------------------^
cc: Warning: php_imap.c, line 4089: In this statement, the referenced type of the pointer value "cpystr(...)" is "char", which is not compatible with "unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
			IMAPG(imap_errorstack)->LSIZE = strlen(IMAPG(imap_errorstack)->LTEXT = cpystr(str));
---------------------------------------------------------------^
cc: Warning: php_imap.c, line 4089: In this statement, the referenced type of the pointer value "(((zend_imap_globals ...)(*((void ...)tsrm_ls))[((imap_globals_id)-1)])->imap_errorstack)->text.data=cpystr(...)" is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
			IMAPG(imap_errorstack)->LSIZE = strlen(IMAPG(imap_errorstack)->LTEXT = cpystr(str));
---------------------------------------------------------------^
cc: Warning: php_imap.c, line 4099: In this statement, the referenced type of the pointer value "cpystr(...)" is "char", which is not compatible with "unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
			cur->LSIZE = strlen(cur->LTEXT = cpystr(str));
--------------------------------------------^
cc: Warning: php_imap.c, line 4099: In this statement, the referenced type of the pointer value "cur->text.data=cpystr(...)" is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
			cur->LSIZE = strlen(cur->LTEXT = cpystr(str));
--------------------------------------------^

Making all in session
.../ext/session

cc: Info: php_session.h, line 197: Extraneous semicolon. (extrasemi)
ZEND_EXTERN_MODULE_GLOBALS(ps);
------------------------------^
cc: Info: session.c, line 78: Extraneous semicolon. (extrasemi)
ZEND_DECLARE_MODULE_GLOBALS(ps);
-------------------------------^
cc: Warning: session.c, line 87: In this statement, the referenced type of the pointer value "handled_output_len" is "unsigned int", which is not compatible with "unsigned long". (ptrmismatch)
		*handled_output = url_adapt_ext_ex(output, output_len, PS(session_name), PS(id), handled_output_len, (zend_bool) (mode&PHP_OUTPUT_HANDLER_END ? 1 : 0) TSRMLS_CC);
-------------------------------------------------------------------------------------------------^
cc: Warning: session.c, line 512: In this statement, the referenced type of the pointer value "buf" is "char", which is not compatible with "const unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	PHP_MD5Update(&context, buf, strlen(buf));
--------------------------------^

Making all in standard
.../ext/standard/

cc: Warning: base64.c, line 163: In this statement, the referenced type of the pointer value "str" is "char", which is not compatible with "const unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	result = php_base64_encode(str, str_len, &ret_length);
-----------------------------------^
cc: Warning: base64.c, line 165: In the initializer for __s, the referenced type of the pointer value "(result)" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
		RETVAL_STRINGL(result, ret_length, 0);
----------------^
cc: Warning: base64.c, line 184: In this statement, the referenced type of the pointer value "str" is "char", which is not compatible with "const unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	result = php_base64_decode(str, str_len, &ret_length);
-----------------------------------^
cc: Warning: base64.c, line 186: In the initializer for __s, the referenced type of the pointer value "(result)" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)

libtool/basic_functions.c
		RETVAL_STRINGL(result, ret_length, 0);
----------------^
cc: Info: /vb/Ctech/vlbrown/Work/bench/src/contrib/php4/ext/session/php_session.h, line 197: Extraneous semicolon. (extrasemi)
ZEND_EXTERN_MODULE_GLOBALS(ps);
------------------------------^

cc: Info: datetime.c, line 596: A carriage-return character was encountered; it is being treated as white space. (foundcr)
	}
---------^
cc: Info: datetime.c, line 597: A carriage-return character was encountered; it is being treated as white space. (foundcr)
	if (NULL == (ta = php_localtime_r(&timestamp, &tmbuf))) {
-----------------------------------------------------------------^
cc: Info: datetime.c, line 598: A carriage-return character was encountered; it is being treated as white space. (foundcr)
		php_error(E_WARNING, "%s(): invalid local time",
----------------------------------------------------------------^
cc: Info: datetime.c, line 599: A carriage-return character was encountered; it is being treated as white space. (foundcr)
				  get_active_function_name(TSRMLS_C));
----------------------------------------------------------------------^

cc: Warning: fsock.c, line 566: In this statement, the referenced type of the pointer value "((sock)->readbuf+(sock)->readpos)" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	SEARCHCR();
--------^
cc: Warning: fsock.c, line 574: In this statement, the referenced type of the pointer value "((sock)->readbuf+(sock)->readpos)" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
				SEARCHCR();
--------------------------------^
cc: Warning: fsock.c, line 578: In this statement, the referenced type of the pointer value "((sock)->readbuf+(sock)->readpos)" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
			SEARCHCR();
------------------------^

cc: Warning: html.c, line 454: In this statement, the referenced type of the pointer value "rep" is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
				strcpy(new + len, rep);
--------------------------------------------------^
cc: Warning: html.c, line 455: In this statement, the referenced type of the pointer value "rep" is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
				len += strlen(rep);
----------------------------------------------^
cc: Warning: html.c, line 506: In this statement, the referenced type of the pointer value "str" is "char", which is not compatible with "unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	new = php_escape_html_entities(str, str_len, &len, all, quote_style, hint_charset);
---------------------------------------^

cc: Warning: image.c, line 85: In this statement, the referenced type of the pointer value "(a)" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	FP_FREAD(a, sizeof(a), socketd, fp, issock); /*	fread(a, sizeof(a), 1, fp); */
--------^
cc: Warning: image.c, line 88: In this statement, the referenced type of the pointer value "(a)" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	FP_FREAD(a, sizeof(a), socketd, fp, issock); /*	fread(a, sizeof(a), 1, fp); */
--------^
cc: Warning: image.c, line 107: In this statement, the referenced type of the pointer value "(a)" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	if((FP_FREAD(a, sizeof(a), socketd, fp, issock)) <= 0) {
------------^
cc: Warning: image.c, line 172: In this statement, the referenced type of the pointer value "(a)" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	FP_FREAD(a, sizeof(a), socketd, fp, issock); /*	fread(a, sizeof(a), 1, fp); */
--------^
cc: Warning: image.c, line 195: In this statement, the referenced type of the pointer value "(a)" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	if((FP_FREAD(a, sizeof(a), socketd, fp, issock)) <= 0) {
------------^
cc: Warning: image.c, line 252: In this statement, the referenced type of the pointer value "(a)" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	if((FP_FREAD(a, sizeof(a), socketd, fp, issock)) <= 0) return 0;
------------^
cc: Warning: image.c, line 319: In this statement, the referenced type of the pointer value "(buffer)" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
 	if (FP_FREAD(buffer, (long) length, socketd, fp, issock) <= 0) {
------------^
cc: Warning: image.c, line 324: In this statement, the referenced type of the pointer value "markername" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	sprintf(markername, "APP%d", marker - M_APP0);
----------------^
cc: Warning: image.c, line 326: In this statement, the referenced type of the pointer value "markername" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	if (zend_hash_find(Z_ARRVAL_P(info), markername, strlen(markername)+1, (void **) &tmp) == FAILURE) {
---------------------------------------------^
cc: Warning: image.c, line 326: In this statement, the referenced type of the pointer value "markername" is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	if (zend_hash_find(Z_ARRVAL_P(info), markername, strlen(markername)+1, (void **) &tmp) == FAILURE) {
----------------------------------------------------------------^
cc: Warning: image.c, line 328: In this statement, the referenced type of the pointer value "markername" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
		add_assoc_stringl(info, markername, buffer, length, 1);
----------------^
cc: Warning: image.c, line 328: In this statement, the referenced type of the pointer value "markername" is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
		add_assoc_stringl(info, markername, buffer, length, 1);
----------------^
cc: Warning: image.c, line 328: In this statement, the referenced type of the pointer value "buffer" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
		add_assoc_stringl(info, markername, buffer, length, 1);
----------------^
cc: Warning: image.c, line 365: In this statement, the referenced type of the pointer value "(a)" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
					FP_FREAD(a, sizeof(a), socketd, fp, issock);
----------------------------------------^
cc: Warning: image.c, line 510: In this statement, the referenced type of the pointer value "ifd_data+2+i*12" is "char", which is not compatible with "unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
		dir_entry 	 = ifd_data+2+i*12;
----------------^

cc: Warning: iptc.c, line 81: In this statement, the referenced type of the pointer value "&(c)" is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
		PUTC(c);
----------------^
cc: Warning: iptc.c, line 296: In the initializer for __s, the referenced type of the pointer value "(spoolbuf)" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
		RETVAL_STRINGL(spoolbuf, poi - spoolbuf, 0);
----------------^
cc: Warning: iptc.c, line 320: In this statement, the referenced type of the pointer value "(**str).value.str.val" is "char", which is not compatible with "unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	buffer = Z_STRVAL_PP(str);
--------^
cc: Warning: iptc.c, line 353: In this statement, the referenced type of the pointer value "key" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
		sprintf(key, "%d#%03d", (unsigned int) dataset, (unsigned int) recnum);
------------------------^
cc: Warning: iptc.c, line 365: In this statement, the referenced type of the pointer value "key" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
		if (zend_hash_find(Z_ARRVAL_P(return_value), key, strlen(key) + 1, (void **) &element) == FAILURE) {
-------------------------------------------------------------^
cc: Warning: iptc.c, line 365: In this statement, the referenced type of the pointer value "key" is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
		if (zend_hash_find(Z_ARRVAL_P(return_value), key, strlen(key) + 1, (void **) &element) == FAILURE) {
-------------------------------------------------------------------------^
cc: Warning: iptc.c, line 373: In this statement, the referenced type of the pointer value "key" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
			zend_hash_update(Z_ARRVAL_P(return_value), key, strlen(key)+1, (void *) &values, sizeof(pval*), (void **) &element);
------------------------^
cc: Warning: iptc.c, line 373: In this statement, the referenced type of the pointer value "key" is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
			zend_hash_update(Z_ARRVAL_P(return_value), key, strlen(key)+1, (void *) &values, sizeof(pval*), (void **) &element);
------------------------^
cc: Warning: iptc.c, line 376: In this statement, the referenced type of the pointer value "buffer+inx" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
		add_next_index_stringl(*element, buffer+inx, len, 1);
-------------------------------------------------^


cc: Warning: md5.c, line 59: In this statement, the referenced type of the pointer value "(**arg).value.str.val" is "char", which is not compatible with "const unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	PHP_MD5Update(&context, Z_STRVAL_PP(arg), Z_STRLEN_PP(arg));
--------------------------------^
libtool/url_scanner.c
cc: Warning: string.c, line 108: In this statement, the referenced type of the pointer value "(char ...)_emalloc(...)" is "char", which is not compatible with "unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	result = (char *) emalloc(oldlen * 2 * sizeof(char) + 1);
--------^
cc: Warning: string.c, line 110: In this statement, the referenced type of the pointer value "result" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
		return result;
-----------------------^
cc: Warning: string.c, line 122: In this statement, the referenced type of the pointer value "result" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	return result;
---------------^
cc: Warning: string.c, line 186: In this statement, the referenced type of the pointer value "(**data).value.str.val" is "char", which is not compatible with "const unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	result = php_bin2hex(Z_STRVAL_PP(data), Z_STRLEN_PP(data), &newlen);
-----------------------------^
cc: Warning: string.c, line 517: In this statement, the referenced type of the pointer value "(**what).value.str.val" is "char", which is not compatible with "unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
		php_charmask(Z_STRVAL_PP(what), Z_STRLEN_PP(what), mask TSRMLS_CC);
-----------------------------^
cc: Warning: string.c, line 519: In this statement, the referenced type of the pointer value "" 

	\0x0B" is "char", which is not compatible with "unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
		php_charmask(" \n\r\t\v\0", 6, mask TSRMLS_CC);
-----------------------------^
cc: Warning: string.c, line 1241: In this statement, the referenced type of the pointer value "s" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	php_strtolower(s, s_len);
-----------------------^
cc: Warning: string.c, line 1242: In this statement, the referenced type of the pointer value "t" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	php_strtolower(t, t_len);
-----------------------^
cc: Warning: string.c, line 1243: In this statement, the referenced type of the pointer value "s" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	return php_memnstr(s, t, t_len, s + s_len);
---------------------------^
cc: Warning: string.c, line 1243: In this statement, the referenced type of the pointer value "t" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	return php_memnstr(s, t, t_len, s + s_len);
------------------------------^
cc: Warning: string.c, line 1243: In this statement, the referenced type of the pointer value "s+s_len" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	return php_memnstr(s, t, t_len, s + s_len);
----------------------------------------^
cc: Warning: string.c, line 1316: In this statement, the referenced type of the pointer value "(**haystack).value.str.val" is "char", which is not compatible with "unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
		found = php_stristr(Z_STRVAL_PP(haystack), Z_STRVAL_PP(needle),
------------------------------------^
cc: Warning: string.c, line 1316: In this statement, the referenced type of the pointer value "(**needle).value.str.val" is "char", which is not compatible with "unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
		found = php_stristr(Z_STRVAL_PP(haystack), Z_STRVAL_PP(needle),
-----------------------------------------------------------^
cc: Warning: string.c, line 1324: In this statement, the referenced type of the pointer value "(**haystack).value.str.val" is "char", which is not compatible with "unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
		found = php_stristr(Z_STRVAL_PP(haystack), needle_char, 
------------------------------------^
cc: Warning: string.c, line 1324: In this statement, the referenced type of the pointer value "needle_char" is "char", which is not compatible with "unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
		found = php_stristr(Z_STRVAL_PP(haystack), needle_char, 
-----------------------------------------------------------^
cc: Warning: string.c, line 2363: In this statement, the referenced type of the pointer value "what" is "char", which is not compatible with "unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	php_charmask(what, wlength, flags TSRMLS_CC);
---------------------^
cc: Warning: scanf.c, line 128: In this declaration, "scan_set_error_return" is declared with both internal and external linkage.  The previous declaration is at line number 49 in file scanf.h. (mixlinkage)
static inline void scan_set_error_return(int numVars, pval **return_value);
-------------------^

Making all in sapi/cli
.../sapi/cli

libtool  -o libphp4cli.la php_cli.lo getopt.lo  
cc: Warning: var_unserializer.c, line 221: In this statement, the referenced type of the pointer value "*p" is "const char", which is not compatible with "const unsigned char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	cursor = *p;
--------^
cc: Warning: var_unserializer.c, line 393: In this statement, the referenced type of the pointer value "start+2" is "const unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	len2 = len = parse_iv(start + 2);
------------------------------^
cc: Warning: var_unserializer.c, line 397: In this statement, the referenced type of the pointer value "(cursor)" is "const unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	class_name = estrndup(YYCURSOR, len);
---------------------^
cc: Warning: var_unserializer.c, line 434: In this statement, the referenced type of the pointer value "cursor" is "const unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	*p = YYCURSOR;
--------^
cc: Warning: var_unserializer.c, line 496: In the initializer for elements, the referenced type of the pointer value "start+2" is "const unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	int elements = parse_iv(start + 2);
--------------------------------^
cc: Warning: var_unserializer.c, line 498: In this statement, the referenced type of the pointer value "cursor" is "const unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	*p = YYCURSOR;
--------^
cc: Warning: var_unserializer.c, line 538: In this statement, the referenced type of the pointer value "start+2" is "const unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	len = parse_iv(start + 2);
-----------------------^
cc: Warning: var_unserializer.c, line 543: In this statement, the referenced type of the pointer value "(cursor)" is "const unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
		str = estrndup(YYCURSOR, len);
----------------------^
cc: Warning: var_unserializer.c, line 547: In this statement, the referenced type of the pointer value "cursor" is "const unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	*p = YYCURSOR;
--------^
cc: Warning: var_unserializer.c, line 600: In this statement, the referenced type of the pointer value "cursor" is "const unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	*p = YYCURSOR;
--------^
cc: Warning: var_unserializer.c, line 602: In this statement, the referenced type of the pointer value "start+2" is "const unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	ZVAL_DOUBLE(*rval, atof(start + 2));
--------^
cc: Warning: var_unserializer.c, line 675: In this statement, the referenced type of the pointer value "cursor" is "const unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	*p = YYCURSOR;
--------^
cc: Warning: var_unserializer.c, line 677: In this statement, the referenced type of the pointer value "start+2" is "const unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	ZVAL_LONG(*rval, parse_iv(start + 2));
--------^
cc: Warning: var_unserializer.c, line 701: In this statement, the referenced type of the pointer value "cursor" is "const unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	*p = YYCURSOR;
--------^
cc: Warning: var_unserializer.c, line 703: In this statement, the referenced type of the pointer value "start+2" is "const unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	ZVAL_BOOL(*rval, parse_iv(start + 2));
--------^
cc: Warning: var_unserializer.c, line 709: In this statement, the referenced type of the pointer value "cursor" is "const unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	*p = YYCURSOR;
--------^
cc: Warning: var_unserializer.c, line 737: In this statement, the referenced type of the pointer value "cursor" is "const unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
 	*p = YYCURSOR;
--------^
cc: Warning: var_unserializer.c, line 740: In this statement, the referenced type of the pointer value "start+2" is "const unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
	id = parse_iv(start + 2) - 1;
----------------------^
cc: Warning: var_unserializer.c, line 271: The scalar variable "limit" is fetched but not initialized.  And there may be other such fetches of this variable that have not been reported in this compilation. (uninit1)
	if((YYLIMIT - YYCURSOR) < 5) YYFILL(5);
------------^
Warning: EXPAT_INTERNAL_LIBADD changed after being used
Warning: EXPAT_INTERNAL_LIBADD changed after being used
cc: Warning: nsapi.c, line 438: In this statement, the referenced type of the pointer value "(((sapi_globals_struct ...)(*((void ...)tsrm_ls))[((sapi_globals_id)-1)])->request_info).request_method" is const, but the referenced type of the target of this assignment is not. (notconstqual)
	nsapi_free(SG(request_info).request_method);
-------------------^
cc: Warning: nsapi.c, line 440: In this statement, the referenced type of the pointer value "(((sapi_globals_struct ...)(*((void ...)tsrm_ls))[((sapi_globals_id)-1)])->request_info).content_type" is const, but the referenced type of the target of this assignment is not. (notconstqual)
	nsapi_free(SG(request_info).content_type);
-

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-17 11:15 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-08-20 18:55 UTC] vlb at gene dot com
Tried the latest snapshot. Lots of new stuff to cause me trouble but relevant to this bug report - still a zillion warnings.
 [2002-08-28 13:07 UTC] kalowsky@php.net
sniper just merged a bunch of things down to the PHP 4_2_0 branch, just wondering if any of these (found in the 4.2.3RCs) have corrected any of these build warnings for you.
 [2002-09-21 01:56 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.


 [2003-05-22 09:04 UTC] r dot m dot guerrero at usit dot uio dot no
With PHP 4.2.3 and:
--------------------
Compaq C V6.3-025 on Compaq Tru64 UNIX V5.1 (Rev. 732)
Compiler Driver V6.3-026 (sys) cc Driver
--------------------

I get the samme warnings. Many:
--------------------
.... is "unsigned char", which is not compatible with "const char" because they differ by signed/unsigned attribute. (ptrmismatch1)
--------------------
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 22:01:26 2024 UTC