diff options
Diffstat (limited to 'ext/standard/rand.c')
-rw-r--r-- | ext/standard/rand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/rand.c b/ext/standard/rand.c index 051eab8ce6..c8128f0675 100644 --- a/ext/standard/rand.c +++ b/ext/standard/rand.c @@ -252,7 +252,7 @@ PHP_FUNCTION(rand) convert_to_long(p_min); convert_to_long(p_max); if (p_max->value.lval-p_min->value.lval <= 0) { - php3_error(E_WARNING,"rand(): Invalid range: %ld..%ld", p_min->value.lval, p_max->value.lval); + php_error(E_WARNING,"rand(): Invalid range: %ld..%ld", p_min->value.lval, p_max->value.lval); } break; default: @@ -318,7 +318,7 @@ PHP_FUNCTION(mt_rand) convert_to_long(p_min); convert_to_long(p_max); if (p_max->value.lval-p_min->value.lval <= 0) { - php3_error(E_WARNING,"mtrand(): Invalid range: %ld..%ld", p_min->value.lval, p_max->value.lval); + php_error(E_WARNING,"mtrand(): Invalid range: %ld..%ld", p_min->value.lval, p_max->value.lval); } break; default: |