]> granicus.if.org Git - php/commitdiff
- Fix build
authorMarcus Boerger <helly@php.net>
Sat, 2 Feb 2008 23:25:43 +0000 (23:25 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 2 Feb 2008 23:25:43 +0000 (23:25 +0000)
main/output.c

index ea2ddf0015af358a2a5be95eb7050acde5e9cc7d..774649d018bac1ab7dae8ff94ad800432c710859 100644 (file)
@@ -537,12 +537,13 @@ PHPAPI php_output_handler *php_output_handler_create_user(zval *output_handler,
                default:
                        user = ecalloc(1, sizeof(php_output_handler_user_func_t));
                        MAKE_STD_ZVAL(handler_name);
-                       if (SUCCESS == zend_fcall_info_init(output_handler, &user->fci, &user->fcc, handler_name TSRMLS_CC)) {
+                       if (SUCCESS == zend_fcall_info_init(output_handler, 0, &user->fci, &user->fcc, handler_name, NULL TSRMLS_CC)) {
                                handler = php_output_handler_init(handler_name, chunk_size, (flags & ~0xf) | PHP_OUTPUT_HANDLER_USER);
                                Z_ADDREF_P(output_handler);
                                user->zoh = output_handler;
                                handler->func.user = user;
                        } else {
+                               /* TODO(helly) log the rror? */
                                efree(user);
                        }
                        zval_ptr_dtor(&handler_name);