@@ -3496,7 +3496,7 @@ ZEND_METHOD(ReflectionFunctionAbstract, inNamespace)
3496
3496
3497
3497
zend_string * name = fptr -> common .function_name ;
3498
3498
const char * backslash = zend_memrchr (ZSTR_VAL (name ), '\\' , ZSTR_LEN (name ));
3499
- RETURN_BOOL (backslash && backslash > ZSTR_VAL ( name ) );
3499
+ RETURN_BOOL (backslash );
3500
3500
}
3501
3501
/* }}} */
3502
3502
@@ -3514,7 +3514,7 @@ ZEND_METHOD(ReflectionFunctionAbstract, getNamespaceName)
3514
3514
3515
3515
zend_string * name = fptr -> common .function_name ;
3516
3516
const char * backslash = zend_memrchr (ZSTR_VAL (name ), '\\' , ZSTR_LEN (name ));
3517
- if (backslash && backslash > ZSTR_VAL ( name ) ) {
3517
+ if (backslash ) {
3518
3518
RETURN_STRINGL (ZSTR_VAL (name ), backslash - ZSTR_VAL (name ));
3519
3519
}
3520
3520
RETURN_EMPTY_STRING ();
@@ -3535,7 +3535,7 @@ ZEND_METHOD(ReflectionFunctionAbstract, getShortName)
3535
3535
3536
3536
zend_string * name = fptr -> common .function_name ;
3537
3537
const char * backslash = zend_memrchr (ZSTR_VAL (name ), '\\' , ZSTR_LEN (name ));
3538
- if (backslash && backslash > ZSTR_VAL ( name ) ) {
3538
+ if (backslash ) {
3539
3539
RETURN_STRINGL (backslash + 1 , ZSTR_LEN (name ) - (backslash - ZSTR_VAL (name ) + 1 ));
3540
3540
}
3541
3541
RETURN_STR_COPY (name );
@@ -5363,7 +5363,7 @@ ZEND_METHOD(ReflectionClass, inNamespace)
5363
5363
5364
5364
zend_string * name = ce -> name ;
5365
5365
const char * backslash = zend_memrchr (ZSTR_VAL (name ), '\\' , ZSTR_LEN (name ));
5366
- RETURN_BOOL (backslash && backslash > ZSTR_VAL ( name ) );
5366
+ RETURN_BOOL (backslash );
5367
5367
}
5368
5368
/* }}} */
5369
5369
@@ -5381,7 +5381,7 @@ ZEND_METHOD(ReflectionClass, getNamespaceName)
5381
5381
5382
5382
zend_string * name = ce -> name ;
5383
5383
const char * backslash = zend_memrchr (ZSTR_VAL (name ), '\\' , ZSTR_LEN (name ));
5384
- if (backslash && backslash > ZSTR_VAL ( name ) ) {
5384
+ if (backslash ) {
5385
5385
RETURN_STRINGL (ZSTR_VAL (name ), backslash - ZSTR_VAL (name ));
5386
5386
}
5387
5387
RETURN_EMPTY_STRING ();
@@ -5402,7 +5402,7 @@ ZEND_METHOD(ReflectionClass, getShortName)
5402
5402
5403
5403
zend_string * name = ce -> name ;
5404
5404
const char * backslash = zend_memrchr (ZSTR_VAL (name ), '\\' , ZSTR_LEN (name ));
5405
- if (backslash && backslash > ZSTR_VAL ( name ) ) {
5405
+ if (backslash ) {
5406
5406
RETURN_STRINGL (backslash + 1 , ZSTR_LEN (name ) - (backslash - ZSTR_VAL (name ) + 1 ));
5407
5407
}
5408
5408
RETURN_STR_COPY (name );
@@ -5667,7 +5667,7 @@ ZEND_METHOD(ReflectionProperty, setValue)
5667
5667
}
5668
5668
/* }}} */
5669
5669
5670
- /* {{{ Returns this property's value */
5670
+ /* {{{ Returns true if property was initialized */
5671
5671
ZEND_METHOD (ReflectionProperty , isInitialized )
5672
5672
{
5673
5673
reflection_object * intern ;
@@ -6499,7 +6499,7 @@ ZEND_METHOD(ReflectionAttribute, __toString)
6499
6499
}
6500
6500
/* }}} */
6501
6501
6502
- /* {{{ * Returns the name of the attribute */
6502
+ /* {{{ Returns the name of the attribute */
6503
6503
ZEND_METHOD (ReflectionAttribute , getName )
6504
6504
{
6505
6505
reflection_object * intern ;
@@ -6514,7 +6514,7 @@ ZEND_METHOD(ReflectionAttribute, getName)
6514
6514
}
6515
6515
/* }}} */
6516
6516
6517
- /* {{{ * Returns the target of the attribute */
6517
+ /* {{{ Returns the target of the attribute */
6518
6518
ZEND_METHOD (ReflectionAttribute , getTarget )
6519
6519
{
6520
6520
reflection_object * intern ;
@@ -6529,7 +6529,7 @@ ZEND_METHOD(ReflectionAttribute, getTarget)
6529
6529
}
6530
6530
/* }}} */
6531
6531
6532
- /* {{{ * Returns true if the attribute is repeated */
6532
+ /* {{{ Returns true if the attribute is repeated */
6533
6533
ZEND_METHOD (ReflectionAttribute , isRepeated )
6534
6534
{
6535
6535
reflection_object * intern ;
@@ -6544,7 +6544,7 @@ ZEND_METHOD(ReflectionAttribute, isRepeated)
6544
6544
}
6545
6545
/* }}} */
6546
6546
6547
- /* {{{ * Returns the arguments passed to the attribute */
6547
+ /* {{{ Returns the arguments passed to the attribute */
6548
6548
ZEND_METHOD (ReflectionAttribute , getArguments )
6549
6549
{
6550
6550
reflection_object * intern ;
@@ -6661,7 +6661,7 @@ static void attribute_ctor_cleanup(
6661
6661
}
6662
6662
/* }}} */
6663
6663
6664
- /* {{{ * Returns the attribute as an object */
6664
+ /* {{{ Returns the attribute as an object */
6665
6665
ZEND_METHOD (ReflectionAttribute , newInstance )
6666
6666
{
6667
6667
reflection_object * intern ;
0 commit comments