[ticket/10931] Document that false is also returned if value is not well formed

PHPBB3-10931
This commit is contained in:
Andreas Fischer 2012-06-11 13:53:17 +02:00
parent 63b2e36492
commit 7501ea825a

View file

@ -82,6 +82,7 @@ class phpbb_php_ini
* *
* @param string $varname The configuration option name. * @param string $varname The configuration option name.
* @return bool|int False if configuration option does not exist, * @return bool|int False if configuration option does not exist,
* false if configuration option value is not numeric,
* the configuration option value (integer) otherwise. * the configuration option value (integer) otherwise.
*/ */
public function get_int($varname) public function get_int($varname)
@ -101,6 +102,7 @@ class phpbb_php_ini
* *
* @param string $varname The configuration option name. * @param string $varname The configuration option name.
* @return bool|float False if configuration option does not exist, * @return bool|float False if configuration option does not exist,
* false if configuration option value is not numeric,
* the configuration option value (float) otherwise. * the configuration option value (float) otherwise.
*/ */
public function get_float($varname) public function get_float($varname)
@ -121,6 +123,7 @@ class phpbb_php_ini
* *
* @param string $varname The configuration option name. * @param string $varname The configuration option name.
* @return bool|int|float False if configuration option does not exist, * @return bool|int|float False if configuration option does not exist,
* false if configuration option value is not well-formed,
* the configuration option value otherwise. * the configuration option value otherwise.
*/ */
public function get_bytes($varname) public function get_bytes($varname)