]> granicus.if.org Git - php/commitdiff
- Get windows version to compile again. No biggy if array_map is not #if 0'd
authorAndi Gutmans <andi@php.net>
Sat, 16 Oct 1999 10:14:47 +0000 (10:14 +0000)
committerAndi Gutmans <andi@php.net>
Sat, 16 Oct 1999 10:14:47 +0000 (10:14 +0000)
  out even if it doesn't work.

ext/standard/basic_functions.c
ext/standard/basic_functions.h
main/mergesort.c
php4dllts.dsp
php4ts.dsp
sapi/cgi/cgi_main.c

index 34033711d4a6886d427a14f0583cc88b3c4c790a..8c400933ff9bbc92269943eee0228d93ac7ac796 100644 (file)
@@ -3143,7 +3143,6 @@ PHP_FUNCTION(array_reverse)
 /* }}} */
 
 
-#if 0
 /* {{{ proto array array_map(array input, string value_exp [, string key_exp] */
 PHP_FUNCTION(array_map)
 {
@@ -3176,7 +3175,6 @@ PHP_FUNCTION(array_map)
                zend_hash_move_forward((*input)->value.ht);
        }               
 }
-#endif
 
 /*
  * Local variables:
index 3b266a99e0e759a42adbb294f95dc5cb16680037..a01b35aa90e10c31f8325cbdb50ea5f3c65ce91a 100644 (file)
@@ -60,6 +60,7 @@ PHP_FUNCTION(usort);
 PHP_FUNCTION(uasort);
 PHP_FUNCTION(uksort);
 PHP_FUNCTION(array_walk);
+PHP_FUNCTION(array_map);
 PHP_FUNCTION(count);
 PHP_FUNCTION(flush);
 PHP_FUNCTION(end);
index e7db8ec98f23d38b0abcba4bc44aa41882f2c2ed..0cb10291263d989c2b9603a1860d82c3260790b3 100644 (file)
@@ -58,6 +58,10 @@ static char sccsid[] = "@(#)merge.c  8.2 (Berkeley) 2/14/94";
 #include <stdlib.h>
 #include <string.h>
 
+#if (WINNT|WIN32)
+#include <winsock.h> /* Includes definition for u_char */
+#endif
+
 static void setup (u_char *, u_char *, size_t, size_t, int (*)());
 static void insertionsort (u_char *, size_t, size_t, int (*)());
 
index 012f358640b8c06182ce99598bbef340515398e2..f3fba74bd54da169d1437440966dba9f6e776e79 100644 (file)
@@ -123,6 +123,10 @@ SOURCE=.\main.c
 # End Source File\r
 # Begin Source File\r
 \r
+SOURCE=.\mergesort.c\r
+# End Source File\r
+# Begin Source File\r
+\r
 SOURCE=.\output.c\r
 # End Source File\r
 # Begin Source File\r
index 267922c8010ce7eca9bac4d5072b3f21ee717622..4634e85c23abaa9004feaa2a21ff1f51a21444f8 100644 (file)
@@ -42,7 +42,7 @@ RSC=rc.exe
 # PROP Ignore_Export_Lib 0\r
 # PROP Target_Dir ""\r
 # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c\r
-# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I "regex" /I "..\bindlib_w32" /I "libzend" /I "tsrm" /D "NDEBUG" /D "MSVC5" /D "_CONSOLE" /D "ZTS" /D "WIN32" /D "_MBCS" /D ZEND_DEBUG=0 /Fr /FD /c\r
+# ADD CPP /nologo /MT /W3 /GX /Od /I "." /I "regex" /I "..\bindlib_w32" /I "libzend" /I "tsrm" /D "NDEBUG" /D "MSVC5" /D "_CONSOLE" /D "ZTS" /D "WIN32" /D "_MBCS" /D ZEND_DEBUG=0 /Fr /FD /c\r
 # SUBTRACT CPP /YX /Yc /Yu\r
 # ADD BASE RSC /l 0x409 /d "NDEBUG"\r
 # ADD RSC /l 0x409 /d "NDEBUG"\r
@@ -67,7 +67,7 @@ LINK32=link.exe
 # PROP Ignore_Export_Lib 0\r
 # PROP Target_Dir ""\r
 # ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c\r
-# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "." /I "regex" /I "..\bindlib_w32" /I "libzend" /I "tsrm" /D "DEBUG" /D "_DEBUG" /D "MSVC5" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "ZTS" /D ZEND_DEBUG=1 /FR /FD /c\r
+# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "." /I "regex" /I "..\bindlib_w32" /I "libzend" /I "tsrm" /D "DEBUG" /D "_DEBUG" /D "MSVC5" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "ZTS" /D ZEND_DEBUG=1 /FR /FD /c\r
 # SUBTRACT CPP /YX\r
 # ADD BASE RSC /l 0x409 /d "_DEBUG"\r
 # ADD RSC /l 0x409 /i "c:\include" /d "_DEBUG"\r
index 4a165b80c553ff01ac5263a729c11ee4d1a22e69..2346cfab8d3b01e4a35d28fc1bf99e7c96aeca37 100644 (file)
@@ -453,6 +453,7 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
                php_module_shutdown();
                return FAILURE;
        } else if (file_handle.handle.fp && file_handle.handle.fp!=stdin) {
+#if !(WIN32|WINNT)
                /* #!php support */
                c = fgetc(file_handle.handle.fp);
                if (c == '#') {
@@ -463,6 +464,7 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
                } else {
                        rewind(file_handle.handle.fp);
                }
+#endif
        }
 
        switch (behavior) {