Browse Source

MFH: fix compile warnings (patch by Phil Oleson)

PHP-5.2.1RC1
Antony Dovgal 18 years ago
parent
commit
02f8e3770d
  1. 6
      ext/pspell/pspell.c

6
ext/pspell/pspell.c

@ -251,7 +251,7 @@ static PHP_FUNCTION(pspell_new)
if(pspell_error_number(ret) != 0){ 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)); 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; RETURN_FALSE;
} }
@ -374,7 +374,7 @@ static PHP_FUNCTION(pspell_new_personal)
if(pspell_error_number(ret) != 0){ 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)); 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; RETURN_FALSE;
} }
@ -408,7 +408,7 @@ static PHP_FUNCTION(pspell_new_config)
if(pspell_error_number(ret) != 0){ 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)); 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; RETURN_FALSE;
} }

Loading…
Cancel
Save