mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
- Get rid of stuff which is already done in php.h
- More can probably be removed as the code doesn't use lots of sys calls.
This commit is contained in:
parent
4b243ebeeb
commit
b510fcf96e
@ -18,7 +18,6 @@
|
||||
|
||||
#include "php.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
@ -36,12 +35,6 @@
|
||||
#include <netdb.h>
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
#if HAVE_PWD_H
|
||||
#ifdef PHP_WIN32
|
||||
#include "win32/pwd.h"
|
||||
#else
|
||||
#include <pwd.h>
|
||||
#endif
|
||||
#endif
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
@ -88,18 +81,6 @@
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifndef MAXPATHLEN
|
||||
# ifdef PATH_MAX
|
||||
# define MAXPATHLEN PATH_MAX
|
||||
# else
|
||||
# define MAXPATHLEN 255
|
||||
# endif
|
||||
#endif
|
||||
|
||||
static FILE *php_do_open_temporary_file(char *path, const char *pfx, char **opened_path_p)
|
||||
{
|
||||
char *trailing_slash;
|
||||
|
Loading…
Reference in New Issue
Block a user