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

From: Date: Mon, 30 Aug 2010 09:50:06 +0000
Subject: Bug #52715 [Com]: Err in get_loaded_extensions() with true argument
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-153916@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: Wont fix Type: Bug Package: PHP options/info functions Operating System: WinXP PHP Version: 5.3SVN-2010-08-27 (snap) Assigned To: kalle Block user comment: N New Comment: 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? Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#153916) next »