From 7f5b9cf91a57d46349e62fc08ebf7369a3c3e222 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Wed, 13 Aug 2008 08:08:30 +0000 Subject: [PATCH] fix compile warnings (patch by Phil Oleson) --- ext/pspell/pspell.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/pspell/pspell.c b/ext/pspell/pspell.c index dc607a0d12..0de4c2a616 100644 --- a/ext/pspell/pspell.c +++ b/ext/pspell/pspell.c @@ -374,7 +374,7 @@ static PHP_FUNCTION(pspell_new) if(pspell_error_number(ret) != 0){ php_error_docref(NULL TSRMLS_CC, E_WARNING, "PSPELL couldn't open the dictionary. reason: %s", pspell_error_message(ret)); - delete_pspell_manager(ret); + delete_pspell_can_have_error(ret); RETURN_FALSE; } @@ -492,7 +492,7 @@ static PHP_FUNCTION(pspell_new_personal) if(pspell_error_number(ret) != 0){ php_error_docref(NULL TSRMLS_CC, E_WARNING, "PSPELL couldn't open the dictionary. reason: %s", pspell_error_message(ret)); - delete_pspell_manager(ret); + delete_pspell_can_have_error(ret); RETURN_FALSE; } @@ -526,7 +526,7 @@ static PHP_FUNCTION(pspell_new_config) if(pspell_error_number(ret) != 0){ php_error_docref(NULL TSRMLS_CC, E_WARNING, "PSPELL couldn't open the dictionary. reason: %s", pspell_error_message(ret)); - delete_pspell_manager(ret); + delete_pspell_can_have_error(ret); RETURN_FALSE; } -- 2.50.1