thetaphi Sun Jan 11 13:39:01 2009 UTC
Modified files:
/php-src/sapi/nsapi nsapi.c
Log:
add sanity check for time_t size of win32
http://cvs.php.net/viewvc.cgi/php-src/sapi/nsapi/nsapi.c?r1=1.101&r2=1.102&diff_format=u
Index: php-src/sapi/nsapi/nsapi.c
diff -u php-src/sapi/nsapi/nsapi.c:1.101 php-src/sapi/nsapi/nsapi.c:1.102
--- php-src/sapi/nsapi/nsapi.c:1.101 Tue Jan 6 13:45:30 2009
+++ php-src/sapi/nsapi/nsapi.c Sun Jan 11 13:39:01 2009
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: nsapi.c,v 1.101 2009/01/06 13:45:30 thetaphi Exp $ */
+/* $Id: nsapi.c,v 1.102 2009/01/11 13:39:01 thetaphi Exp $ */
/*
* PHP includes
@@ -55,7 +55,14 @@
#define XP_UNIX
#endif
#endif
-
+
+/*
+ * For windows do some sanity checks, because time_t must be 32bit for NSAPI
on win32
+ */
+#if defined(PHP_WIN32) && !defined(_WIN64) && sizeof(time_t)!=4
+#error "NSAPI module needs time_t to have a size of 32 bits on win32"
+#endif
+
/*
* NSAPI includes
*/
@@ -307,7 +314,7 @@
PHP_MINFO_FUNCTION(nsapi)
{
php_info_print_table_start();
- php_info_print_table_row(2, "NSAPI Module Revision", "$Revision: 1.101
$");
+ php_info_print_table_row(2, "NSAPI Module Revision", "$Revision: 1.102
$");
php_info_print_table_row(2, "Server Software", system_version());
php_info_print_table_row(2, "Sub-requests with nsapi_virtual()",
(nsapi_servact_service)?((zend_ini_long("zlib.output_compression",
sizeof("zlib.output_compression"), 0))?"not supported with
zlib.output_compression":"enabled"):"not supported on this platform" );
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php