Re: [PHP4BETA] cvs: php4 / php.h /ext/standard/ basic_functions.c crypt.c datetime.c dl.h dns.c file.c microtime.c php_crypt.h
[email protected] (Hartmut Holzgraefe)
| Newsgroups | php.version4 |
|---|---|
| Organization | SIX Offene Systeme GmbH |
| Message-ID | <[email protected]> |
Andrei Zmievski wrote:
> Eh, that's a big ugly... Let's find another solution.
ok, how about this one?
have a new function like
PHP_FUNCTION(warn_not_available)
{
php_error(E_WARNING, "%s() is not supported in this PHP
build",get_active_function_name());
RETURN_FALSE;
}
and function_entries like
/* functions from crypt.c */
#ifdef HAVE_CRYPT
PHP_FE(crypt, NULL)
#else
PHP_FALIAS(crypt, warn_not_available, NULL)
#endif
--
Hartmut Holzgraefe [email protected] http://www.six.de