# ini_get() changes in PHP 5

- Thread: https://externals.io/message/10953
- Original archive: https://news-web.php.net/php.internals/10953
- Started by Nuno Lopes on 2004-07-07T19:00:10+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #10953 — Nuno Lopes — 2004-07-07T19:00:10+00:00

URL: https://externals.io/message/10953#10953

Hello,

A user have reported a bug in the documentation about `ini_get()`.

Check this:
<?
// if register_globals is off
var_dump(ini_get('register_globals'));
?>

outputs:
string(1) "0" in PHP 4
-and-
string(0) "" in PHP 5


I think the issue must be clarified, as if it is a a feature it is a
backward incompatible change and must be documented.


Nuno

---

## #10954 — Red Wingate — 2004-07-07T19:21:45+00:00

URL: https://externals.io/message/10953#10954 · In reply to: #10953

i experienced this using PHP4 ( guess it is 4.2.x ) in our local
production enviroment and with one of our clients servers ( 4.3.2 )

  -- red

Nuno Lopes wrote:
> Hello,
> 
> A user have reported a bug in the documentation about `ini_get()`.
> 
> Check this:
> <?
> // if register_globals is off
> var_dump(ini_get('register_globals'));
> ?>
> 
> outputs:
> string(1) "0" in PHP 4
> -and-
> string(0) "" in PHP 5
> 
> 
> I think the issue must be clarified, as if it is a a feature it is a
> backward incompatible change and must be documented.
> 
> 
> Nuno
