summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2008-10-06 17:57:32 +0000
committerIlia Alshanetsky <iliaa@php.net>2008-10-06 17:57:32 +0000
commit96d199d1b10b2352d315e37072db483019db52e7 (patch)
tree32ff2e8cf961ac60718ce5a07a6058719fa973a9
parent1f150fa10ce20a164b86d75992749463cb6fa2d9 (diff)
downloadphp-git-96d199d1b10b2352d315e37072db483019db52e7.tar.gz
Removed deprecated usage of zend_get_parameters_ex()
-rw-r--r--ext/gd/gd.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index f3d5498cfd..8d5c2c7c70 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -4165,20 +4165,18 @@ PHP_FUNCTION(imagepsloadfont)
/* The function in t1lib which this function uses seem to be buggy...
PHP_FUNCTION(imagepscopyfont)
{
- zval **fnt;
int l_ind, type;
gd_ps_font *nf_ind, *of_ind;
+ long fnt;
- if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &fnt) == FAILURE) {
- ZEND_WRONG_PARAM_COUNT();
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &fnt) == FAILURE) {
+ return;
}
- convert_to_long_ex(fnt);
-
- of_ind = zend_list_find(Z_LVAL_PP(fnt), &type);
+ of_ind = zend_list_find(fnt, &type);
if (type != le_ps_font) {
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "%ld is not a Type 1 font index", Z_LVAL_PP(fnt));
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "%ld is not a Type 1 font index", fnt);
RETURN_FALSE;
}