mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
if a module provides a function it should also do so if the function
is not functional due to configure findings the function should offer a meaningful warning if it is not supported instead of just beeing undefined i had already changed this in 'gd', now this is doing it for 'standard'
This commit is contained in:
parent
9bfd5e5e55
commit
69d1e788c0
9 changed files with 49 additions and 27 deletions
|
@ -366,6 +366,12 @@ PHPAPI int cfg_get_string(char *varname, char **result);
|
|||
#define XtOffsetOf(s_type,field) XtOffset(s_type*,field)
|
||||
#endif
|
||||
|
||||
|
||||
#define PHP_NOT_IN_THIS_BUILD { \
|
||||
php_error(E_WARNING, "%s: not supported in this PHP build",get_active_function_name()); \
|
||||
RETURN_FALSE; \
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue