Bug #52715 [Wfx->Opn]: Err in get_loaded_extensions() with true argument
| From: | johannes@php.net | Date: | Mon, 30 Aug 2010 10:47:47 +0000 |
| Subject: | Bug #52715 [Wfx->Opn]: Err in get_loaded_extensions() with true argument | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-4952@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52715&edit=1
ID: 52715
Updated by: johannes@php.net
Reported by: satya61229 at gmail dot com
Summary: Err in get_loaded_extensions() with true argument
-Status: Wont fix
+Status: Open
Type: Bug
-Package: PHP options/info functions
+Package: Documentation problem
Operating System: WinXP
PHP Version: 5.3SVN-2010-08-27 (snap)
Assigned To: kalle
Block user comment: N
New Comment:
I assume you are confused by the term "Zend Extension". A Zend Extension
is a special module which effects the core engine, like a debugger or
such. Most likely you don't have such an extension enabled.
Making this a doc issue as the documentation isn't clear about the fact
that, get_loaded_extensions(true) lists Zend exts only.
Previous Comments:
------------------------------------------------------------------------
[2010-08-30 11:50:05] satya61229 at gmail dot com
Why to merge the array returned by get_loaded_extensions(true), if it
returns nothing. get_loaded_extensions(true) returned me empty array on
both WinXP and Win7. And if I follow your solution, how to get Zend
extensions only as discussed in manual?
------------------------------------------------------------------------
[2010-08-30 11:01:43] pajoye@php.net
Won't fix is the correct status.
------------------------------------------------------------------------
[2010-08-30 10:41:35] kalle@php.net
Simply do:
$extensions = array_merge(get_loaded_extensions(),
get_loaded_extensions(true));
Its most likely we will never add such an option to get both when it can
be done that easily in userland PHP code.
------------------------------------------------------------------------
[2010-08-27 08:55:55] satya61229 at gmail dot com
Corrected the Package name
------------------------------------------------------------------------
[2010-08-27 08:47:48] satya61229 at gmail dot com
Description:
------------
I got to know that get_loaded_extensions() has FALSE value as default
argument. So, I got that I can use TRUE also to list Zend extensions.
But for this value, it returns empty array. I tried this function on
Win 7 OS also and result is same.
Test script:
---------------
$loaded = get_loaded_extensions(true);
Expected result:
----------------
List of extensions loaded with the zend extension included.
Actual result:
--------------
Empty array
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52715&edit=1