ID: 18588 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Analyzed +Status: Feedback Bug Type: Compile Warning Operating System: OSF1 V4.0 1530 PHP Version: 4CVS-2002-08-14 New Comment:
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 Previous Comments: ------------------------------------------------------------------------ [2002-08-24 09:30:09] [EMAIL PROTECTED] I changed html_entities.c to unix format... CR warnings should be gone now ------------------------------------------------------------------------ [2002-08-14 14:33:54] [EMAIL PROTECTED] http://nohn.net/lalafarm/200208140900-error.log ------------------------------------------------------------------------ [2002-08-13 22:29:34] [EMAIL PROTECTED] Again is this still valid with all the work going on in the mbstring? ------------------------------------------------------------------------ [2002-07-26 05:05:41] [EMAIL PROTECTED] changed summary ------------------------------------------------------------------------ [2002-07-26 05:02:12] [EMAIL PROTECTED] These warnings come up: cc: Warning: /usr/users/nohn/php4-200207260000/ext/mbstring/mbstring.c, line 2469: In this statement, the referenced type of the pointer value "&size" is "int", which is not compatible with "unsigned long". (ptrmismatch) ret = php_mb_convert_encoding( Z_STRVAL_PP(arg_str), Z_STRLEN_PP(arg_str), Z_STRVAL_PP(arg_new), _from_encodings, &size TSRMLS_CC); --------------------------------------------------------------------------------------------------------------------------^ cc: Warning: /usr/users/nohn/php4-200207260000/ext/mbstring/mbstring.c, line 2543: In this statement, the referenced type of the pointer value "(**arg_str).value.str.val" is "signed char", which is not compatible with "unsigned char". (ptrmismatch) string.val = Z_STRVAL_PP(arg_str); --------^ cc: Warning: /usr/users/nohn/php4-200207260000/ext/mbstring/mbstring.c, line 2618: In this statement, the referenced type of the pointer value "(**argv[0]).value.str.val" is "signed char", which is not compatible with "unsigned char". (ptrmismatch) string.val = Z_STRVAL_PP(argv[0]); --------^ cc: Warning: /usr/users/nohn/php4-200207260000/ext/mbstring/mbstring.c, line 2622: In the initializer for __s, the referenced type of the pointer value "(ret->val)" is "unsigned char", which is not compatible with "signed char". (ptrmismatch) RETVAL_STRINGL(ret->val, ret->len, 0) /* the string is already strdup()'ed */ ----------------^ cc: Warning: /usr/users/nohn/php4-200207260000/ext/mbstring/mbstring.c, line 2646: In this statement, the referenced type of the pointer value "(**arg_str).value.str.val" is "signed char", which is not compatible with "unsigned char". (ptrmismatch) string.val = Z_STRVAL_PP(arg_str); --------^ cc: Warning: /usr/users/nohn/php4-200207260000/ext/mbstring/mbstring.c, line 2650: In the initializer for __s, the referenced type of the pointer value "(ret->val)" is "unsigned char", which is not compatible with "signed char". (ptrmismatch) RETVAL_STRINGL(ret->val, ret->len, 0) /* the string is already strdup()'ed */ cc: Warning: /usr/users/nohn/php4-200207260000/ext/mbstring/mbstring.c, line 2682: In this statement, the referenced type of the pointer value "(**arg1).value.str.val" is "signed char", which is not compatible with "unsigned char". (ptrmismatch) string.val = Z_STRVAL_PP(arg1); --------^ cc: Warning: /usr/users/nohn/php4-200207260000/ext/mbstring/mbstring.c, line 2767: In the initializer for __s, the referenced type of the pointer value "(ret->val)" is "unsigned char", which is not compatible with "signed char". (ptrmismatch) RETVAL_STRINGL(ret->val, ret->len, 0); /* the string is already strdup()'ed */ ----------------^ cc: Warning: /usr/users/nohn/php4-200207260000/ext/mbstring/mbstring.c, line 2884: In this statement, the referenced type of the pointer value "(**hash_entry).value.str.val" is "signed char", which is not compatible with "unsigned char". (ptrmismatch) string.val = Z_STRVAL_PP(hash_entry); ------------------------------------------------------------------------^ cc: Warning: /usr/users/nohn/php4-200207260000/ext/mbstring/mbstring.c, line 2893: In this statement, the referenced type of the pointer value "(**var).value.str.val" is "signed char", which is not compatible with "unsigned char". (ptrmismatch) string.val = Z_STRVAL_PP(var); ------------------------------------------------^ cc: Warning: /usr/users/nohn/php4-200207260000/ext/mbstring/mbstring.c, line 2973: In this statement, the referenced type of the pointer value "(**hash_entry).value.str.val" is "signed char", which is not compatible with "unsigned char". (ptrmismatch) string.val = Z_STRVAL_PP(hash_entry); ----------------------------------------------------------------^ cc: Warning: /usr/users/nohn/php4-200207260000/ext/mbstring/mbstring.c, line 2978: In this statement, the referenced type of the pointer value "ret->val" is "unsigned char", which is not compatible with "signed char". (ptrmismatch) Z_STRVAL_PP(hash_entry) = ret->val; (and some more) ======================================================== ======================================================== Originally i wanted to report this, but it seems fixed ;) On OSF1 V4.0 1530 alpha './configure' '--prefix=/usr/local' '--with-apache=/usr/local/Apachetoolbox-1.5.56/apache_1.3.24' '--enable-exif' '--enable-track-vars' '--with-calendar=shared' '--enable-safe-mode' '--enable-magic-quotes' '--enable-trans-sid' '--enable-wddx' '--enable-ftp' '--with-openssl=/usr/local' '--with-oci8=/appl/oracle/product/8.1.6' '--with-mysql=/usr/local/mysql' PHP 4.2.0 produces this: Array ( [0] => 7 [2] => 9 ) Array ( [0] => 9 [1] => 7 [2] => 8 ) ----- With php4-200207260000 (php4-latest.tar.gz) this happens on the same machine: './configure' '--prefix=/usr/users/nohn' ./php diff.php Unaligned access pid=19451 <php> va=0x140062cac pc=0x1201aace0 ra=0x1201aacd4 inst=0xb4010000 Array ( [0] => 7 [2] => 9 ) Array ( [0] => 9 [1] => 7 ) ----- On SunOS 5.7 Generic_106541-15 sun4us sparc FJSV,GPUS this happens: './configure' '--prefix=/usr/local' '--with-apache=/export/home/lket/Apachetoolbox-1.5.58/apache_1.3.26' '--enable-exif' '--enable-track-vars' '--with-calendar=shared' '--enable-magic-quotes' '--enable-trans-sid' '--enable-wddx' '--enable-ftp' '--enable-inline-optimization' '--enable-memory-limit' '--with-gd=/usr/local' '--with-zlib' '--enable-gd-native-tt' '--with-t1lib=/usr/local' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-zlib-dir=/usr/local' '--with-ttf' '--with-freetype-dir=/usr/local' '--with-oci8=/appl/oracle/product/8.1.7' Array ( [0] => 7 [2] => 9 ) Array ( [0] => 9 [1] => 7 ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18588&edit=1