* Zeev
*/
-#if WIN32|WINNT
+#ifdef PHP_WIN32
#define _WIN32_DCOM
#include "php_COM.h"
#include "zend_compile.h"
#include "php_ini.h"
+#include "php_reentrancy.h"
#include "objbase.h"
#include "olestd.h"
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;
#include <locale.h>
#endif
#include "zend.h"
+#include "zend_extensions.h"
#include "php_ini.h"
#include "php_globals.h"
#include "main.h"
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);