Bug #62103 [NEW]: get_declared_classes and get_declared_interfaces and get_defined_functions bug!
| From: | yyb8 at vip dot qq dot com | Date: | Tue, 22 May 2012 04:09:39 +0000 |
| Subject: | Bug #62103 [NEW]: get_declared_classes and get_declared_interfaces and get_defined_functions bug! | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-170654@lists.php.net to get a copy of this message | ||
From:
Operating system: windows 2003
PHP version: 5.3.13
Package: Unknown/Other Function
Bug Type: Bug
Bug description:get_declared_classes and get_declared_interfaces and get_defined_functions bug!
Description:
------------
get_declared_classes() and get_declared_interfaces() print every item
twice!!!
at windows 2003 and iis fastcgi!
and get_defined_functions() is print every item twice too with unreadable
codes(error code).
Test script:
---------------
$f = get_defined_functions();
echo '<pre>';
print_r($f['internal']);
print_r(get_declared_classes());
print_r(get_declared_interfaces());
Expected result:
----------------
Array
(
[0] => Traversable
[1] => IteratorAggregate
[2] => Iterator
[3] => ArrayAccess
[4] => Serializable
[5] => RecursiveIterator
[6] => OuterIterator
[7] => Countable
[8] => SeekableIterator
[9] => SplObserver
[10] => SplSubject
[11] => Reflector
)
Actual result:
--------------
Array
(
[0] => Traversable
[1] => IteratorAggregate
[2] => Iterator
[3] => ArrayAccess
[4] => Serializable
[5] => RecursiveIterator
[6] => OuterIterator
[7] => Countable
[8] => SeekableIterator
[9] => SplObserver
[10] => SplSubject
[11] => Reflector
[12] => Reflector
[13] => SplSubject
[14] => SplObserver
[15] => SeekableIterator
[16] => Countable
[17] => OuterIterator
[18] => RecursiveIterator
[19] => Serializable
[20] => ArrayAccess
[21] => Iterator
[22] => IteratorAggregate
[23] => Traversable
)
--
Edit bug report at https://bugs.php.net/bug.php?id=62103&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62103&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62103&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62103&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=62103&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62103&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=62103&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=62103&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=62103&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=62103&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=62103&r=support
Expected behavior: https://bugs.php.net/fix.php?id=62103&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=62103&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=62103&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=62103&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62103&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=62103&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=62103&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=62103&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=62103&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=62103&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=62103&r=mysqlcfg