stas Sun, 05 Jun 2011 08:59:24 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=311824
Log:
This method doesn't seem to be very useful without scalar types, so reverting
it too
Changed paths:
U php/php-src/branches/PHP_5_4/ext/reflection/php_reflection.c
U php/php-src/trunk/ext/reflection/php_reflection.c
Modified: php/php-src/branches/PHP_5_4/ext/reflection/php_reflection.c
===================================================================
--- php/php-src/branches/PHP_5_4/ext/reflection/php_reflection.c
2011-06-05 08:56:52 UTC (rev 311823)
+++ php/php-src/branches/PHP_5_4/ext/reflection/php_reflection.c
2011-06-05 08:59:24 UTC (rev 311824)
@@ -2378,26 +2378,6 @@
}
/* }}} */
-/* {{{ proto public string ReflectionParameter::getTypeHint()
- Returns what type hint is defined for this parameter */
-ZEND_METHOD(reflection_parameter, getTypeHint)
-{
- reflection_object *intern;
- parameter_reference *param;
-
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
- GET_REFLECTION_OBJECT_PTR(param);
-
- if (!param->arg_info->type_hint) {
- RETURN_FALSE;
- }
-
- RETURN_STRING(zend_get_type_by_const(param->arg_info->type_hint), 1);
-}
-/* }}} */
-
/* {{{ proto public bool ReflectionParameter::allowsNull()
Returns whether NULL is allowed as this parameters's value */
ZEND_METHOD(reflection_parameter, allowsNull)
@@ -5837,7 +5817,6 @@
ZEND_ME(reflection_parameter, getDeclaringClass,
arginfo_reflection__void, 0)
ZEND_ME(reflection_parameter, getClass, arginfo_reflection__void, 0)
ZEND_ME(reflection_parameter, isArray, arginfo_reflection__void, 0)
- ZEND_ME(reflection_parameter, getTypeHint, arginfo_reflection__void, 0)
ZEND_ME(reflection_parameter, allowsNull, arginfo_reflection__void, 0)
ZEND_ME(reflection_parameter, getPosition, arginfo_reflection__void, 0)
ZEND_ME(reflection_parameter, isOptional, arginfo_reflection__void, 0)
Modified: php/php-src/trunk/ext/reflection/php_reflection.c
===================================================================
--- php/php-src/trunk/ext/reflection/php_reflection.c 2011-06-05 08:56:52 UTC
(rev 311823)
+++ php/php-src/trunk/ext/reflection/php_reflection.c 2011-06-05 08:59:24 UTC
(rev 311824)
@@ -2378,26 +2378,6 @@
}
/* }}} */
-/* {{{ proto public string ReflectionParameter::getTypeHint()
- Returns what type hint is defined for this parameter */
-ZEND_METHOD(reflection_parameter, getTypeHint)
-{
- reflection_object *intern;
- parameter_reference *param;
-
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
- GET_REFLECTION_OBJECT_PTR(param);
-
- if (!param->arg_info->type_hint) {
- RETURN_FALSE;
- }
-
- RETURN_STRING(zend_get_type_by_const(param->arg_info->type_hint), 1);
-}
-/* }}} */
-
/* {{{ proto public bool ReflectionParameter::allowsNull()
Returns whether NULL is allowed as this parameters's value */
ZEND_METHOD(reflection_parameter, allowsNull)
@@ -5837,7 +5817,6 @@
ZEND_ME(reflection_parameter, getDeclaringClass,
arginfo_reflection__void, 0)
ZEND_ME(reflection_parameter, getClass, arginfo_reflection__void, 0)
ZEND_ME(reflection_parameter, isArray, arginfo_reflection__void, 0)
- ZEND_ME(reflection_parameter, getTypeHint, arginfo_reflection__void, 0)
ZEND_ME(reflection_parameter, allowsNull, arginfo_reflection__void, 0)
ZEND_ME(reflection_parameter, getPosition, arginfo_reflection__void, 0)
ZEND_ME(reflection_parameter, isOptional, arginfo_reflection__void, 0)
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php