diff options
| author | Dmitry Stogov <dmitry@zend.com> | 2014-03-06 13:32:26 +0400 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@zend.com> | 2014-03-06 13:32:26 +0400 |
| commit | 9ae9460bd09b6216cad14c0130b0951626d8b671 (patch) | |
| tree | 33efc6c3938eb72111a98a45fd8f5cbd73867c51 | |
| parent | 9727b47418afe42978df898f8319d6512e473e04 (diff) | |
| download | php-git-9ae9460bd09b6216cad14c0130b0951626d8b671.tar.gz | |
Fixed refcounting
| -rw-r--r-- | main/output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/output.c b/main/output.c index 8e98e3c54f..6504954593 100644 --- a/main/output.c +++ b/main/output.c @@ -495,7 +495,7 @@ PHPAPI php_output_handler *php_output_handler_create_user(zval *output_handler, user = ecalloc(1, sizeof(php_output_handler_user_func_t)); if (SUCCESS == zend_fcall_info_init(output_handler, 0, &user->fci, &user->fcc, &handler_name, &error TSRMLS_CC)) { handler = php_output_handler_init(handler_name->val, handler_name->len, chunk_size, (flags & ~0xf) | PHP_OUTPUT_HANDLER_USER TSRMLS_CC); - Z_ADDREF_P(output_handler); + if (Z_REFCOUNTED_P(output_handler)) Z_ADDREF_P(output_handler); user->zoh = output_handler; handler->func.user = user; } else { |
