Browse Source

Proper casts

PHP-4.0.5
Sascha Schumann 27 years ago
parent
commit
6caf633cf7
  1. 2
      ext/standard/var.c
  2. 2
      sapi/cgi/cgi_main.c

2
ext/standard/var.c

@ -88,7 +88,7 @@ void php_var_dump(pval **struc, int level)
myht = HASH_OF(*struc);
php_printf("%sobject(%s)(%d) {\n", COMMON, (*struc)->value.obj.ce->name, zend_hash_num_elements(myht));
head_done:
zend_hash_apply_with_arguments(myht, php_array_element_dump, 1, level);
zend_hash_apply_with_arguments(myht, (ZEND_STD_HASH_APPLIER) php_array_element_dump, 1, level);
if (level>1) {
php_printf("%*c\n", level-1, ' ');
}

2
sapi/cgi/cgi_main.c

@ -598,7 +598,7 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
file_handle.handle.fp = stdin;
/* This actually destructs the elements of the list - ugly hack */
zend_llist_apply(&global_vars, php_register_command_line_global_vars);
zend_llist_apply(&global_vars, (llist_apply_func_t) php_register_command_line_global_vars);
zend_llist_destroy(&global_vars);
if (!cgi) {

Loading…
Cancel
Save