From 35529e1964d2317d6b34d2230ff3d20f29d27cbb Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sat, 6 Sep 2003 13:02:16 +0000 Subject: [PATCH] Fix logic --- Zend/zend_reflection_api.c | 4 ++-- ext/reflection/php_reflection.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Zend/zend_reflection_api.c b/Zend/zend_reflection_api.c index e1554446f1d..6d2b6de3c2b 100644 --- a/Zend/zend_reflection_api.c +++ b/Zend/zend_reflection_api.c @@ -1752,11 +1752,11 @@ void reflection_class_object_ctor(INTERNAL_FUNCTION_PARAMETERS, int is_object) zend_class_entry **ce; if (is_object) { - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &argument) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "o", &argument) == FAILURE) { return; } } else { - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "o", &argument) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &argument) == FAILURE) { return; } } diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index e1554446f1d..6d2b6de3c2b 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -1752,11 +1752,11 @@ void reflection_class_object_ctor(INTERNAL_FUNCTION_PARAMETERS, int is_object) zend_class_entry **ce; if (is_object) { - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &argument) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "o", &argument) == FAILURE) { return; } } else { - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "o", &argument) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &argument) == FAILURE) { return; } }