Dear friends!

In my "php.ini", Settings are as below

extension=php_java.dll
;extension=php_json.dll

but "php -m " display
java
json

but "print phpinfo();" display
java not enabled.
json enabled.

but "print_r(get_loaded_extensions());" display
[5] =>json
and java is absent in this array!

Php Code :
if (extension_loaded('java')) print '<br/>Java is loaded.';
else print '<br/>Java is not loaded.';
if (extension_loaded('json')) print '<br/>Json is loaded.';
else print '<br/>Json is not loaded.';
Says :
Java is not loaded.
Json is loaded.

So can someone tell me which one is saying the truth .
I need both Java and Json to be active for use in PHP.
I am using Windows XP.

Thanks in Advance!