Permalink
Browse files

added (recursive)callbackfilteriterator to spl_classes() (bug #55287)

  • Loading branch information...
1 parent 741abeb commit 9159e3d2460be80e47e408400fc77ae15c4f48f8 @salathe salathe committed Jul 27, 2011
Showing with 6 additions and 0 deletions.
  1. +2 −0 NEWS
  2. +2 −0 ext/spl/php_spl.c
  3. +2 −0 ext/spl/spl_iterators.h
View
2 NEWS
@@ -25,6 +25,8 @@
- SPL extension:
. Added missing class_uses(..) as pointed out by #55266 (Stefan)
+ . Fixed bug #55287 (spl_classes() not includes CallbackFilter classes)
+ (sasezaki at gmail dot com, salathe)
14 Jul 2011, PHP 5.4.0 Alpha 2
View
@@ -205,6 +205,7 @@ PHP_FUNCTION(class_uses)
SPL_ADD_CLASS(BadFunctionCallException, z_list, sub, allow, ce_flags); \
SPL_ADD_CLASS(BadMethodCallException, z_list, sub, allow, ce_flags); \
SPL_ADD_CLASS(CachingIterator, z_list, sub, allow, ce_flags); \
+ SPL_ADD_CLASS(CallbackFilterIterator, z_list, sub, allow, ce_flags); \
SPL_ADD_CLASS(Countable, z_list, sub, allow, ce_flags); \
SPL_ADD_CLASS(DirectoryIterator, z_list, sub, allow, ce_flags); \
SPL_ADD_CLASS(DomainException, z_list, sub, allow, ce_flags); \
@@ -228,6 +229,7 @@ PHP_FUNCTION(class_uses)
SPL_ADD_CLASS(RangeException, z_list, sub, allow, ce_flags); \
SPL_ADD_CLASS(RecursiveArrayIterator, z_list, sub, allow, ce_flags); \
SPL_ADD_CLASS(RecursiveCachingIterator, z_list, sub, allow, ce_flags); \
+ SPL_ADD_CLASS(RecursiveCallbackFilterIterator, z_list, sub, allow, ce_flags); \
SPL_ADD_CLASS(RecursiveDirectoryIterator, z_list, sub, allow, ce_flags); \
SPL_ADD_CLASS(RecursiveFilterIterator, z_list, sub, allow, ce_flags); \
SPL_ADD_CLASS(RecursiveIterator, z_list, sub, allow, ce_flags); \
View
@@ -52,6 +52,8 @@ extern PHPAPI zend_class_entry *spl_ce_AppendIterator;
extern PHPAPI zend_class_entry *spl_ce_RegexIterator;
extern PHPAPI zend_class_entry *spl_ce_RecursiveRegexIterator;
extern PHPAPI zend_class_entry *spl_ce_Countable;
+extern PHPAPI zend_class_entry *spl_ce_CallbackFilterIterator;
+extern PHPAPI zend_class_entry *spl_ce_RecursiveCallbackFilterIterator;
PHP_MINIT_FUNCTION(spl_iterators);

0 comments on commit 9159e3d

Please sign in to comment.