mirror of
https://github.com/php/php-src.git
synced 2026-04-21 06:51:18 +02:00
Remove redundant check in SplObjectStorage->count
This commit is contained in:
@@ -507,15 +507,7 @@ PHP_METHOD(SplObjectStorage, count)
|
||||
}
|
||||
|
||||
if (mode == COUNT_RECURSIVE) {
|
||||
zend_long ret;
|
||||
|
||||
if (mode != COUNT_RECURSIVE) {
|
||||
ret = zend_hash_num_elements(&intern->storage);
|
||||
} else {
|
||||
ret = php_count_recursive(&intern->storage);
|
||||
}
|
||||
|
||||
RETURN_LONG(ret);
|
||||
RETURN_LONG(php_count_recursive(&intern->storage));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user