php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #48761
Patch win2k-winsock2-fix revision 2012-06-04 14:18 UTC by ricardo12458 at hotmail dot com
revision 2012-06-04 14:13 UTC by ricardo12458 at hotmail dot com

Patch win2k-winsock2-fix for Reproducible crash Bug #48761

Patch version 2012-06-04 14:18 UTC

Return to Bug #48761 | Download this patch
Patch Revisions:

Developer: ricardo12458@hotmail.com

#if _MSC_VER >= 1500
# include <In6addr.h>
#endif
#include <Ws2tcpip.h>
#include <Wspiapi.h> // include this line for windows 2000 servers

/*
 * In order for Windows 2000 to use PHP 5.3.x+, you need to 
 * include the above line. This adds the WinSock2 functions inline.
 * Including this file does not affect the way PHP works 
 * in Windows XP/VISTA/7/Server 2003/2008/2012.
 * 
 * Patch contributed by Ricardo Villegas
 * ricardo12458 [at] hotmail [dot] [com]
 * 
 * If you want to try it out, I suggest you
 * download a copy from http://php.ricardo12458.co.cc.
 * It's a snapshot build from: http://windows.php.net/downloads/releases/php-5.4.3-src.zip
 * 
 */

#if (_WIN32_WINNT < 0x0600)
PHPAPI int inet_pton(int af, const char* src, void* dst);
PHPAPI const char* inet_ntop(int af, const void* src, char* dst, size_t size);
PHPAPI int inet_aton(const char *cp, struct in_addr *inp);
#endif
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC