diff options
| author | Tal Peer <tal@php.net> | 2002-09-15 09:58:35 +0000 |
|---|---|---|
| committer | Tal Peer <tal@php.net> | 2002-09-15 09:58:35 +0000 |
| commit | f574e7cffa4f1a6e49df39e199c7475d27c3dd34 (patch) | |
| tree | cc91336d3b2f5d3a6d457edceda5791d3f8a24d4 | |
| parent | cd4261a723b01b9059e4e04a84515a6e9168d18c (diff) | |
| download | php-git-f574e7cffa4f1a6e49df39e199c7475d27c3dd34.tar.gz | |
* More work on returning errors properly and freeing resources
| -rwxr-xr-x | ext/fribidi/fribidi.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ext/fribidi/fribidi.c b/ext/fribidi/fribidi.c index 122e54f4e8..fc78f5315e 100755 --- a/ext/fribidi/fribidi.c +++ b/ext/fribidi/fribidi.c @@ -12,7 +12,8 @@ | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ - | Author: Onn Ben-Zvi <onn@zend.com>, onnb@mercury.co.il | + | Authors: Onn Ben-Zvi <onnb@mercury.co.il> | + | Tal Peer <tal@php.net> +----------------------------------------------------------------------+ */ @@ -236,7 +237,14 @@ PHP_FUNCTION(fribidi_log2vis) fribidi_unicode_to_isiri_3342(u_visual_str, len , outString); break; default: - zend_error(E_ERROR,"unknown character set %d<br />", Z_LVAL_PP(parameter3)); + php_error_docref(NULL TSRMLS_CC, E_ERROR, "Unknown charset"); + efree(u_logical_str); + efree(u_visual_str); + efree(position_L_to_V_list); + efree(position_V_to_L_list); + efree(embedding_level_list); + efree(outString); + RETURN_FALSE; } |
