]> granicus.if.org Git - php/commitdiff
MFH: fix compile warnings (patch by Phil Oleson)
authorAntony Dovgal <tony2001@php.net>
Wed, 13 Aug 2008 08:09:55 +0000 (08:09 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 13 Aug 2008 08:09:55 +0000 (08:09 +0000)
ext/pspell/pspell.c

index ca08d16d3fb04b1b973a5a611b8c959db6546d23..4e167ffccf42d1feadbb875aa9612cf61f9995fa 100644 (file)
@@ -251,7 +251,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;
        }
        
@@ -374,7 +374,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;
        }
        
@@ -408,7 +408,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;
        }