diff --git a/ext/standard/array.c b/ext/standard/array.c index 6634611f5e2..69c79ae68fb 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -4109,7 +4109,7 @@ PHP_FUNCTION(array_count_values) Z_LVAL_P(tmp)++; } } else { - php_error_docref(NULL, E_WARNING, "Can only count STRING and INTEGER values!"); + php_error_docref(NULL, E_WARNING, "Can only count string and integer values, entry skipped"); } } ZEND_HASH_FOREACH_END(); } @@ -4452,7 +4452,7 @@ PHP_FUNCTION(array_flip) } zend_symtable_update(Z_ARRVAL_P(return_value), Z_STR_P(entry), &data); } else { - php_error_docref(NULL, E_WARNING, "Can only flip STRING and INTEGER values!"); + php_error_docref(NULL, E_WARNING, "Can only flip string and integer values, entry skipped"); } } ZEND_HASH_FOREACH_END(); } diff --git a/ext/standard/tests/array/array_count_values2.phpt b/ext/standard/tests/array/array_count_values2.phpt index 8aaf445f932..cb0c330965b 100644 --- a/ext/standard/tests/array/array_count_values2.phpt +++ b/ext/standard/tests/array/array_count_values2.phpt @@ -18,11 +18,11 @@ $array1 = array(1, var_dump(array_count_values($array1)); ?> --EXPECTF-- -Warning: array_count_values(): Can only count STRING and INTEGER values! in %s on line %d +Warning: array_count_values(): Can only count string and integer values, entry skipped in %s on line %d -Warning: array_count_values(): Can only count STRING and INTEGER values! in %s on line %d +Warning: array_count_values(): Can only count string and integer values, entry skipped in %s on line %d -Warning: array_count_values(): Can only count STRING and INTEGER values! in %s on line %d +Warning: array_count_values(): Can only count string and integer values, entry skipped in %s on line %d array(8) { [1]=> int(2) diff --git a/ext/standard/tests/array/array_flip.phpt b/ext/standard/tests/array/array_flip.phpt index ab8cf271b10..b03c65f0342 100644 --- a/ext/standard/tests/array/array_flip.phpt +++ b/ext/standard/tests/array/array_flip.phpt @@ -16,11 +16,11 @@ $trans = array_flip($trans); var_dump($trans); ?> --EXPECTF-- -Warning: array_flip(): Can only flip STRING and INTEGER values! in %s on line %d +Warning: array_flip(): Can only flip string and integer values, entry skipped in %s on line %d -Warning: array_flip(): Can only flip STRING and INTEGER values! in %s on line %d +Warning: array_flip(): Can only flip string and integer values, entry skipped in %s on line %d -Warning: array_flip(): Can only flip STRING and INTEGER values! in %s on line %d +Warning: array_flip(): Can only flip string and integer values, entry skipped in %s on line %d array(6) { [1]=> string(1) "b" diff --git a/ext/standard/tests/array/array_flip_variation4.phpt b/ext/standard/tests/array/array_flip_variation4.phpt index b8badb0caad..0ad2367701a 100644 --- a/ext/standard/tests/array/array_flip_variation4.phpt +++ b/ext/standard/tests/array/array_flip_variation4.phpt @@ -62,29 +62,29 @@ echo "Done" --EXPECTF-- *** Testing array_flip() : different invalid values in 'input' array argument *** -Warning: array_flip(): Can only flip STRING and INTEGER values! in %s on line %d +Warning: array_flip(): Can only flip string and integer values, entry skipped in %s on line %d -Warning: array_flip(): Can only flip STRING and INTEGER values! in %s on line %d +Warning: array_flip(): Can only flip string and integer values, entry skipped in %s on line %d -Warning: array_flip(): Can only flip STRING and INTEGER values! in %s on line %d +Warning: array_flip(): Can only flip string and integer values, entry skipped in %s on line %d -Warning: array_flip(): Can only flip STRING and INTEGER values! in %s on line %d +Warning: array_flip(): Can only flip string and integer values, entry skipped in %s on line %d -Warning: array_flip(): Can only flip STRING and INTEGER values! in %s on line %d +Warning: array_flip(): Can only flip string and integer values, entry skipped in %s on line %d -Warning: array_flip(): Can only flip STRING and INTEGER values! in %s on line %d +Warning: array_flip(): Can only flip string and integer values, entry skipped in %s on line %d -Warning: array_flip(): Can only flip STRING and INTEGER values! in %s on line %d +Warning: array_flip(): Can only flip string and integer values, entry skipped in %s on line %d -Warning: array_flip(): Can only flip STRING and INTEGER values! in %s on line %d +Warning: array_flip(): Can only flip string and integer values, entry skipped in %s on line %d -Warning: array_flip(): Can only flip STRING and INTEGER values! in %s on line %d +Warning: array_flip(): Can only flip string and integer values, entry skipped in %s on line %d -Warning: array_flip(): Can only flip STRING and INTEGER values! in %s on line %d +Warning: array_flip(): Can only flip string and integer values, entry skipped in %s on line %d -Warning: array_flip(): Can only flip STRING and INTEGER values! in %s on line %d +Warning: array_flip(): Can only flip string and integer values, entry skipped in %s on line %d -Warning: array_flip(): Can only flip STRING and INTEGER values! in %s on line %d +Warning: array_flip(): Can only flip string and integer values, entry skipped in %s on line %d array(0) { } Done