mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
- Remove #ifdefs around ftok function so that it is also available when
none of the IPC extensions are enabled.
This commit is contained in:
parent
12642146c0
commit
c5a73b31f6
3 changed files with 0 additions and 10 deletions
|
@ -832,9 +832,7 @@ function_entry basic_functions[] = {
|
||||||
PHP_FE(version_compare, NULL)
|
PHP_FE(version_compare, NULL)
|
||||||
|
|
||||||
/* functions from ftok.c*/
|
/* functions from ftok.c*/
|
||||||
#if HAVE_SYSVSEM || HAVE_SYSVSHM || HAVE_SHMOP
|
|
||||||
PHP_FE(ftok, NULL)
|
PHP_FE(ftok, NULL)
|
||||||
#endif
|
|
||||||
|
|
||||||
PHP_FE(str_rot13, NULL)
|
PHP_FE(str_rot13, NULL)
|
||||||
|
|
||||||
|
|
|
@ -20,8 +20,6 @@
|
||||||
|
|
||||||
#include "php.h"
|
#include "php.h"
|
||||||
|
|
||||||
#if HAVE_SYSVSEM || HAVE_SYSVSHM || HAVE_SHMOP
|
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/ipc.h>
|
#include <sys/ipc.h>
|
||||||
|
|
||||||
|
@ -56,8 +54,6 @@ PHP_FUNCTION(ftok)
|
||||||
}
|
}
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Local variables:
|
* Local variables:
|
||||||
* tab-width: 4
|
* tab-width: 4
|
||||||
|
|
|
@ -21,10 +21,6 @@
|
||||||
#ifndef PHP_FTOK_H
|
#ifndef PHP_FTOK_H
|
||||||
#define PHP_FTOK_H
|
#define PHP_FTOK_H
|
||||||
|
|
||||||
#if HAVE_SYSVSEM || HAVE_SYSVSHM || HAVE_SHMOP
|
|
||||||
|
|
||||||
PHP_FUNCTION(ftok);
|
PHP_FUNCTION(ftok);
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* PHP_FTOK_H */
|
#endif /* PHP_FTOK_H */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue