svn: /pecl/mailparse/trunk/ mailparse.c

From: Date: Sun, 05 Apr 2015 07:48:42 +0000
Subject: svn: /pecl/mailparse/trunk/ mailparse.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-22020@lists.php.net to get a copy of this message
remi Sun, 05 Apr 2015 07:48:42 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=336374 Log: fix build warnings Changed paths: U pecl/mailparse/trunk/mailparse.c Modified: pecl/mailparse/trunk/mailparse.c =================================================================== --- pecl/mailparse/trunk/mailparse.c 2015-04-05 07:44:46 UTC (rev 336373) +++ pecl/mailparse/trunk/mailparse.c 2015-04-05 07:48:42 UTC (rev 336374) @@ -1267,7 +1267,7 @@ if (n == 0) { - zend_error(E_WARNING, "%s(): error reading from file at offset %lld", get_active_function_name(TSRMLS_C), start_pos); + zend_error(E_WARNING, "%s(): error reading from file at offset %ld", get_active_function_name(TSRMLS_C), start_pos); goto cleanup; } @@ -1392,11 +1392,9 @@ HashPosition pos; zval **val; char *key, *newkey; - long num_index; - uint key_len, pref_len; + ulong num_index; + uint key_len; - pref_len = strlen(attrprefix); - zend_hash_internal_pointer_reset_ex(Z_ARRVAL_P(attr->attributes), &pos); while (SUCCESS == zend_hash_get_current_data_ex(Z_ARRVAL_P(attr->attributes), (void**)&val, &pos)) { @@ -1405,7 +1403,7 @@ if (key_len) { spprintf(&newkey, 0, "%s%s", attrprefix, key); } else { - spprintf(&newkey, 0, "%s%d", attrprefix, num_index); + spprintf(&newkey, 0, "%s%lu", attrprefix, num_index); } add_assoc_string(return_value, newkey, Z_STRVAL_PP(val), 1); efree(newkey);

« previous php.pecl.cvs (#22020) next »