php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22834 type mismatch in mbstring extension
Submitted: 2003-03-23 21:47 UTC Modified: 2003-03-31 01:58 UTC
From: fnjordy at cus dot org dot uk Assigned: moriyoshi (profile)
Status: No Feedback Package: mbstring related
PHP Version: 4.3.2RC1 OS: Solaris 8
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-03-23 21:47 UTC] fnjordy at cus dot org dot uk
Only appears when building with Sun Forte's C++ compiler CC, not the C compiler cc.  I'm building an extension that uses a C++ library and hence the change.


"/local/src/php-4.3.2RC1/ext/mbstring/mbfilter.c", line 2957: Error: Cannot assign const char* to const unsigned char*.
"/local/src/php-4.3.2RC1/ext/mbstring/mbfilter.c", line 2974: Error: Cannot assign const char* to const unsigned char*.
"/local/src/php-4.3.2RC1/ext/mbstring/mbfilter.c", line 7742: Error: Cannot assign unsigned* to int*.


cal/src/php-4.3.2RC1/ext/mbstring/mbstring.c", line 1045: Error: Formal argument
 no_language of type mbfl_no_language in call to mbfl_no_language2name(mbfl_no_language) is being passed int.
"/local/src/php-4.3.2RC1/ext/mbstring/mbstring.c", line 1076: Error: Formal argument no_encoding of type mbfl_no_encoding in call to mbfl_no_encoding2name(mbfl_no_encoding) is being passed int.
"/local/src/php-4.3.2RC1/ext/mbstring/mbstring.c", line 1139: Error: Formal argument no_encoding of type mbfl_no_encoding in call to mbfl_no_encoding2name(mbfl_no_encoding) is being passed int.
"/local/src/php-4.3.2RC1/ext/mbstring/mbstring.c", line 1141: Warning: The variable name has not yet been assigned a value.
"/local/src/php-4.3.2RC1/ext/mbstring/mbstring.c", line 1154: Error: Formal argument no_encoding of type mbfl_no_encoding in call to mbfl_no_encoding2name(mbfl_no_encoding) is being passed int.
"/local/src/php-4.3.2RC1/ext/mbstring/mbstring.c", line 1185: Error: Formal argument no_encoding of type mbfl_no_encoding in call to mbfl_no_encoding2name(mbfl_no_encoding) is being passed int.
"/local/src/php-4.3.2RC1/ext/mbstring/mbstring.c", line 

...

Build environment:

*  Sun Forte 6 Update 2
*  Autoconf 2.57
*  Automake 1.5
*  m4 1.4
*  libtool 1.4.3

fyi:  Autoconf 2.13 doesn't detect functions in libraries with Forte CC.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-24 14:16 UTC] moriyoshi@php.net
I've been aware of this issue.
 [2003-03-31 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: Fri Mar 29 14:01:28 2024 UTC