Browse Source

WS

experimental/with_scalar_types
Ilia Alshanetsky 16 years ago
parent
commit
a8ddaca0b0
  1. 6
      ext/standard/math.c

6
ext/standard/math.c

@ -691,10 +691,10 @@ PHP_FUNCTION(log)
RETURN_FALSE; RETURN_FALSE;
} }
if (base == 1) { if (base == 1) {
RETURN_DOUBLE(NAN);
RETURN_DOUBLE(NAN);
} else { } else {
RETURN_DOUBLE(log(num) / log(base));
}
RETURN_DOUBLE(log(num) / log(base));
}
} }
/* }}} */ /* }}} */

Loading…
Cancel
Save