switch(arg_count) {
case 5:
convert_to_double(args[4]);
- conv = (unsigned long) args[4]->value.dval * 1000000.0;
+ conv = (unsigned long) (args[4]->value.dval * 1000000.0);
timeout.tv_sec = conv / 1000000;
timeout.tv_usec = conv % 1000000;
/* fall-through */
# include "php_config.h"
#endif
+#if WIN32||WINNT
+#include <malloc.h>
+#endif
+
#include <stdio.h>
#include <sys/types.h>
#include <time.h>
#include <alloca.h>
#endif
-#ifndef HAVE_TM_ZONE
-#ifndef _TIMEZONE
+#if WIN32||WINNT
+#include <time.h>
+#else
+# if !defined(HAVE_TM_ZONE) && !defined(_TIMEZONE)
extern time_t timezone;
-#endif
+# endif
#endif
#define yylhs date_yylhs
sapi_globals_struct *sapi_globals = ts_resource(sapi_globals_id);
#endif
#if (WIN32|WINNT) && !(USE_SAPI)
- WORD wVersionRequested;
+ WORD wVersionRequested = MAKEWORD(2, 0);
WSADATA wsaData;
-
- wVersionRequested = MAKEWORD(2, 0);
#endif
+ ELS_FETCH();
SG(server_context) = NULL;
SG(request_info).request_method = NULL;
return SUCCESS;
}
+ EG(error_reporting) = E_ALL & ~E_NOTICE;
+
sapi_module = *sf;
zend_output_startup();
# End Source File\r
# Begin Source File\r
\r
+SOURCE=.\ext\standard\parsedate.c\r
+# End Source File\r
+# Begin Source File\r
+\r
SOURCE=.\ext\pcre\php_pcre.c\r
# End Source File\r
# Begin Source File\r
\r
!ENDIF \r
\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\parsedate.y\r
+\r
+!IF "$(CFG)" == "php4dll - Win32 Debug"\r
+\r
+# Begin Custom Build\r
+InputPath=.\ext\standard\parsedate.y\r
+\r
+"ext\standard\parsedate.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+ cd ext\standard \r
+ bison --output=parsedate.c -v -d -S "C:\Program Files\Cygnus\share\bison.simple" parsedate.y \r
+ \r
+# End Custom Build\r
+\r
+!ELSEIF "$(CFG)" == "php4dll - Win32 Release"\r
+\r
+!ENDIF \r
+\r
# End Source File\r
# End Group\r
# Begin Group "Scanners"\r
# End Source File\r
# Begin Source File\r
\r
+SOURCE=.\ext\standard\parsedate.c\r
+# End Source File\r
+# Begin Source File\r
+\r
SOURCE=.\ext\pcre\php_pcre.c\r
# End Source File\r
# Begin Source File\r
\r
!ENDIF \r
\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\parsedate.y\r
+\r
+!IF "$(CFG)" == "php4dllts - Win32 Debug_TS"\r
+\r
+# Begin Custom Build\r
+InputPath=.\ext\standard\parsedate.y\r
+\r
+"ext\standard\parsedate.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+ cd ext\standard \r
+ bison --output=parsedate.c -v -d -S "C:\Program Files\Cygnus\share\bison.simple" parsedate.y \r
+ \r
+# End Custom Build\r
+\r
+!ELSEIF "$(CFG)" == "php4dllts - Win32 Release_TS"\r
+\r
+!ENDIF \r
+\r
# End Source File\r
# End Group\r
# Begin Group "Scanners"\r