Check required extension with extension_loaded() #33

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@sotarok
Contributor
sotarok commented Jul 11, 2012

extension_loaded() is a function for check if the extension loaded and a little bit faster than function_exists().

@sotarok sotarok Fix: check required extension with extension_loaded()
- extension_loaded() is a function for check if the extension loaded and a little bit faster than function_exists().
345f80e
@scottmac
Contributor

It's the same operation, it looks up a hashtable inside PHP.

either module registry or function registry. Ideally function_exists() is better since it takes into account functions disabled with the disabled_functions ini entry.

@scottmac scottmac closed this Aug 10, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment