|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-12-05 10:08 UTC] jani@php.net
[2007-12-05 10:58 UTC] tsumai at kagoya dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 02:00:01 2025 UTC |
Description: ------------ The following message is generated when a PHP file is viewed: (it is run by libphp5.so module for Apache 1.3.37) Fatal error: Call to undefined function getmxrr() in /home/testuser/public_html/test.php on line 2 The content of the file test.php is as follows: <? getmxrr('example.com', $a); echo $a[0]; ?> The following patch works well in my environment: diff -urN php-5.2.5.orig/ext/standard/basic_functions.c php-5.2.5/ext/standard/basic_functions.c --- php-5.2.5.orig/ext/standard/basic_functions.c 2007-10-22 16:37:20.000000000 +0900 +++ php-5.2.5/ext/standard/basic_functions.c 2007-12-05 17:39:35.000000000 +0900 @@ -20,6 +20,11 @@ /* $Id: basic_functions.c,v 1.725.2.31.2.66 2007/10/22 07:37:20 dmitry Exp $ */ #include "php.h" +#ifdef PHP_WIN32 +#include "config.w32.h" +#else +#include <php_config.h> +#endif #include "php_streams.h" #include "php_main.h" #include "php_globals.h" diff -urN php-5.2.5.orig/ext/standard/dns.c php-5.2.5/ext/standard/dns.c --- php-5.2.5.orig/ext/standard/dns.c 2007-06-26 20:04:55.000000000 +0900 +++ php-5.2.5/ext/standard/dns.c 2007-12-05 17:33:10.000000000 +0900 @@ -22,6 +22,11 @@ /* {{{ includes */ #include "php.h" +#ifdef PHP_WIN32 +#include "config.w32.h" +#else +#include <php_config.h> +#endif #if HAVE_SYS_SOCKET_H #include <sys/socket.h>