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
| From: | Andrei Zmievski | Date: | Fri, 26 May 2000 17:42:27 +0000 |
| Subject: | 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 | ||
| References: | 1 2 3 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-15810@lists.php.net to get a copy of this message | ||
On Fri, 26 May 2000, Hartmut Holzgraefe wrote:
> 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
That's a better idea. But then warn_not_available() becomes exposed to
user-space...
-Andrei
Programming X-Windows is like trying to find
the square root of pi using roman numerals.
- Unknown