Bug #52715 [Com]: Err in get_loaded_extensions() with true argument

From: Date: Mon, 30 Aug 2010 14:42:47 +0000
Subject: Bug #52715 [Com]: Err in get_loaded_extensions() with true argument
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-4954@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 Comment by: Satya61229 at gmail dot com Reported by: satya61229 at gmail dot com Summary: Err in get_loaded_extensions() with true argument Status: Assigned Type: Bug Package: Documentation problem Operating System: WinXP PHP Version: 5.3SVN-2010-08-27 (snap) Assigned To: kalle Block user comment: N New Comment: Actually I have point to get confused. On my home laptop, I have xDebug loaded. but I could not make difference because of get_loaded_extensions(); is listing xDebug with other extensions, whereas I expect it should not come in this list. Because default value is false. get_loaded_extensions(true); is only listing zend extension. In my case output is xDebug. Which is right. Now, I need to check if xDebug extension comes in both category for a reason! Previous Comments: ------------------------------------------------------------------------ [2010-08-30 16:24:54] Satya61229 at gmail dot com Thanks johannes @php.net. You are right. Sorry to trouble you all. ------------------------------------------------------------------------ [2010-08-30 12:47:47] johannes@php.net 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. ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=52715 -- Edit this bug report at http://bugs.php.net/bug.php?id=52715&edit=1

« previous php.doc.bugs (#4954) next »