From 44c8927daf1d5ffc4603901a3d17db4f9df1729f Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Tue, 14 Jan 2003 19:59:48 +0000 Subject: [PATCH] Fixed typos. --- ext/cpdf/cpdf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/cpdf/cpdf.c b/ext/cpdf/cpdf.c index fe720d56c6..7041c151bf 100644 --- a/ext/cpdf/cpdf.c +++ b/ext/cpdf/cpdf.c @@ -238,9 +238,8 @@ PHP_MSHUTDOWN_FUNCTION(cpdf) PHP_FUNCTION(cpdf_global_set_document_limits) { zval **argv[5]; - int argc; - if (ZEND_NUM_ARGS() != 5 || (zend_get_parameters_array_ex(argc, argv) == FAILURE)) { + if (ZEND_NUM_ARGS() != 5 || (zend_get_parameters_array_ex(5, argv) == FAILURE)) { WRONG_PARAM_COUNT; } @@ -883,6 +882,7 @@ PHP_FUNCTION(cpdf_set_text_matrix) CPDF_FETCH_CPDFDOC(arg1); convert_to_array_ex(arg2); + matrix = Z_ARRVAL_P(arg2); if(zend_hash_num_elements(matrix) != 6) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Text matrix must have 6 elements"); -- 2.50.1