]> granicus.if.org Git - php/commitdiff
MFH register_shutdown_function fix
authorSascha Schumann <sas@php.net>
Tue, 1 Apr 2003 10:03:19 +0000 (10:03 +0000)
committerSascha Schumann <sas@php.net>
Tue, 1 Apr 2003 10:03:19 +0000 (10:03 +0000)
ext/standard/basic_functions.c

index da6acc18c707e65d1bb95b87e44517c14e818ca3..00a2218c2b047474a52365165b9fbdad9369c528 100644 (file)
@@ -2112,6 +2112,7 @@ PHP_FUNCTION(register_shutdown_function)
        if (zend_get_parameters_array(ht, shutdown_function_entry.arg_count, shutdown_function_entry.arguments) == FAILURE) {
                RETURN_FALSE;
        }
+       convert_to_string(shutdown_function_entry.arguments[0]);
        if (!BG(user_shutdown_function_names)) {
                ALLOC_HASHTABLE(BG(user_shutdown_function_names));
                zend_hash_init(BG(user_shutdown_function_names), 0, NULL, (void (*)(void *)) user_shutdown_function_dtor, 0);