cvs: /php4/ext/com COM.c /php4/sapi/cgi cgi_main.c
| From: | Andi Gutmans | Date: | Fri, 05 May 2000 07:18:49 +0000 |
| Subject: | cvs: /php4/ext/com COM.c /php4/sapi/cgi cgi_main.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-14508@lists.php.net to get a copy of this message | ||
andi Fri May 5 00:18:49 2000 EDT
Modified files:
/php4/ext/com COM.c
/php4/sapi/cgi cgi_main.c
Log:
- Make Windows compile again.
Index: php4/ext/com/COM.c
diff -u php4/ext/com/COM.c:1.30 php4/ext/com/COM.c:1.31
--- php4/ext/com/COM.c:1.30 Sat Apr 15 07:19:58 2000
+++ php4/ext/com/COM.c Fri May 5 00:18:48 2000
@@ -33,7 +33,7 @@
* Zeev
*/
-#if WIN32|WINNT
+#ifdef PHP_WIN32
#define _WIN32_DCOM
@@ -41,6 +41,7 @@
#include "php_COM.h"
#include "zend_compile.h"
#include "php_ini.h"
+#include "php_reentrancy.h"
#include "objbase.h"
#include "olestd.h"
@@ -182,9 +183,9 @@
if (typelib_name_buffer[0]==';') {
continue;
}
- typelib_name = strtok_r(typelib_name_buffer, "\r\n", &strtok_buf); /* get rid of
newlines */
- typelib_name = strtok_r(typelib_name, "#", &strtok_buf);
- modifier = strtok_r(NULL, "#", &strtok_buf);
+ typelib_name = php_strtok_r(typelib_name_buffer, "\r\n", &strtok_buf); /* get rid
of newlines */
+ typelib_name = php_strtok_r(typelib_name, "#", &strtok_buf);
+ modifier = php_strtok_r(NULL, "#", &strtok_buf);
if (modifier) {
if (!strcmp(modifier, "cis") || !strcmp(modifier, "case_insensitive")) {
mode &= ~CONST_CS;
Index: php4/sapi/cgi/cgi_main.c
diff -u php4/sapi/cgi/cgi_main.c:1.40 php4/sapi/cgi/cgi_main.c:1.41
--- php4/sapi/cgi/cgi_main.c:1.40 Thu May 4 06:42:21 2000
+++ php4/sapi/cgi/cgi_main.c Fri May 5 00:18:48 2000
@@ -47,6 +47,7 @@
#include <locale.h>
#endif
#include "zend.h"
+#include "zend_extensions.h"
#include "php_ini.h"
#include "php_globals.h"
#include "main.h"
@@ -317,13 +318,15 @@
void php_register_command_line_global_vars(char **arg)
{
char *var, *val;
+ ELS_FETCH();
+ PLS_FETCH();
var = *arg;
val = strchr(var, '=');
if (!val) {
printf("No value specified for variable '%s'\n", var);
} else {
- *val++ = NULL;
+ *val++ = '\0';
php_register_variable(var, val, NULL ELS_CC PLS_CC);
}
efree(*arg);