Some functions are system-dependent in that if they're not detected at
compile time, they won't be included in PHP. Currently the
documentation does not tell the user any information about this type
of function availability and could cause some confusion when a user
tries to use a function and it says "Call to undefined function".

Opinions of the proposed entity?:

<!ENTITY note.func.sysdep '<note><para>This function is system-dependent
and may not be available in your copy of PHP. Use
<function>function_exists</function> to be certain.</para></note>'>

Looking at php-src/ext/standard/basic_functions.c for example, these
functions may or may not be available in your copy of PHP, depending
on various factors:

time_nanosleep()       strftime()
gmstrftime()           strcoll()
money_format()         nl_langinfo()
readlink()             linkinfo()
symlink()              link()
proc_open()            proc_close()
proc_terminate()       proc_get_status()
proc_nice()            getservbyname()
getservbyport()        getprotobyname()
getprotobynumber()     asinh()
aconh()                atanh()
hypot()                inet_ntop()
inet_pton()            putenv()
getopt()               microtime()
gettimeofday()         stream_set_timeout()
realpath()             fnmatch()
crypt()                chroot()
glob()                 touch()
openlog()              syslog()
closelog()             define_syslog_variables()
ftok()

Dave

Reply via email to