return 0;
for (n=0; n<6; n++)
- ipbox.c[n] = b[n];
+ ipbox.c[n] = (unsigned char) b[n];
memset(&ftp->pasvaddr, 0, sizeof(ftp->pasvaddr));
ftp->pasvaddr.sin_family = AF_INET;
WRONG_PARAM_COUNT;
}
convert_to_long(arg2);
- port = arg2->value.lval;
+ port = (short) arg2->value.lval;
break;
default:
WRONG_PARAM_COUNT;
args[0] = (pval **) f->pData;
args[1] = (pval **) s->pData;
- if (call_user_function_ex(CG(function_table), NULL, *BG(user_compare_func_name), &retval_ptr, 2, args, 0)==SUCCESS
+ if (call_user_function_ex(CG(function_table), NULL, *BG(user_compare_func_name), &retval_ptr, 2, args, 0, NULL)==SUCCESS
&& retval_ptr) {
long retval;
/* Call the userland function */
if (call_user_function_ex(CG(function_table), NULL, *BG(array_walk_func_name),
- &retval_ptr, userdata ? 3 : 2, args, 0) == SUCCESS) {
+ &retval_ptr, userdata ? 3 : 2, args, 0, NULL) == SUCCESS) {
zval_ptr_dtor(&retval_ptr);
} else
RETURN_FALSE;
}
SEPARATE_ZVAL(params[0]);
- if (call_user_function_ex(CG(function_table), NULL, *params[0], &retval_ptr, arg_count-1, params+1, 1)==SUCCESS
+ if (call_user_function_ex(CG(function_table), NULL, *params[0], &retval_ptr, arg_count-1, params+1, 1, NULL)==SUCCESS
&& retval_ptr) {
COPY_PZVAL_TO_ZVAL(*return_value, retval_ptr);
} else {
SEPARATE_ZVAL(params[0]);
SEPARATE_ZVAL(params[1]);
convert_to_string(*params[0]);
- if (call_user_function_ex(CG(function_table), *params[1], *params[0], &retval_ptr, arg_count-2, params+2, 1)==SUCCESS
+ if (call_user_function_ex(CG(function_table), *params[1], *params[0], &retval_ptr, arg_count-2, params+2, 1, NULL)==SUCCESS
&& retval_ptr) {
COPY_PZVAL_TO_ZVAL(*return_value, retval_ptr);
} else {
time_t get_date (const char *p, const time_t *now);
-extern struct tm *gmtime ();
-extern struct tm *localtime ();
-extern time_t mktime ();
+#ifndef PHP_WIN32
+extern struct tm *gmtime();
+extern struct tm *localtime();
+extern time_t mktime();
+#endif
/* Month and day table. */
static TABLE const MonthDayTable[] = {
cat = LC_COLLATE;
else if (!strcasecmp ("LC_CTYPE", category->value.str.val))
cat = LC_CTYPE;
-#ifndef PHP_WIN32
+#ifdef LC_MESSAGES
else if (!strcasecmp ("LC_MESSAGES", category->value.str.val))
cat = LC_MESSAGES;
#endif
MAKE_STD_ZVAL(fname);
ZVAL_STRING(fname,"__sleep",1);
- res = call_user_function_ex(CG(function_table), *struc, fname, &retval_ptr, 0, 0, 1);
+ res = call_user_function_ex(CG(function_table), *struc, fname, &retval_ptr, 0, 0, 1, NULL);
if ((res == SUCCESS)) {
if (retval_ptr && HASH_OF(retval_ptr)) {
MAKE_STD_ZVAL(fname);
ZVAL_STRING(fname,"__wakeup",1);
- call_user_function_ex(CG(function_table), *rval, fname, &retval_ptr, 0, 0, 1);
+ call_user_function_ex(CG(function_table), *rval, fname, &retval_ptr, 0, 0, 1, NULL);
zval_dtor(fname);
FREE_ZVAL(fname);
* We try to call __sleep() method on object. It's supposed to return an
* array of property names to be serialized.
*/
- if (call_user_function_ex(CG(function_table), obj, fname, &retval, 0, 0, 1) == SUCCESS) {
+ if (call_user_function_ex(CG(function_table), obj, fname, &retval, 0, 0, 1, NULL) == SUCCESS) {
if (retval && HASH_OF(retval)) {
php_wddx_add_chunk_static(packet, WDDX_STRUCT_S);
sprintf(tmp_buf, WDDX_VAR_S, PHP_CLASS_NAME_VAR);
MAKE_STD_ZVAL(fname);
ZVAL_STRING(fname, "__wakeup", 1);
- call_user_function_ex(NULL, obj, fname, &retval, 0, 0, 0);
+ call_user_function_ex(NULL, obj, fname, &retval, 0, 0, 0, NULL);
zval_dtor(fname);
FREE_ZVAL(fname);