Re: How to detect GD in source code.

From: Date: Fri, 28 Jan 2005 23:51:46 +0000
Subject: Re: How to detect GD in source code.
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-14451@lists.php.net to get a copy of this message
> I've been writing a module, it is dependent on some GD functions, how > can I detect that GD has been installed PHP native? > Taking a page out of Zend/zend_builtin_functions and the source code for the extension_loaded() userspace function: int gd_is_loaded = zend_hash_exists(&module_registry, "gd", sizeof("gd")); > Anything I can add to aclocal.m4 and/or configure.ac would be greatly > appreciated. > You could adapt the stuff in ext/gd/config.m4 to look for and link libgd yourself... -Sara

« previous php.internals (#14451) next »